From f9741140e579b74cd66c1ffe84cbf53f4d3b74d1 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Mon, 4 Apr 2022 19:41:41 -0700 Subject: [PATCH 01/73] Compiling but not starting in tomcat --- Dockerfile-multistage | 4 +- pom.xml | 6 +-- .../service/ACASAuthenticationProvider.java | 8 +-- .../DatabaseAuthenticationProvider.java | 8 +-- ...plicationConversionServiceFactoryBean.java | 6 --- .../labseer/web/AuthorController.java | 22 +------- .../labseer/web/ChangePasswordController.java | 7 --- .../labseer/web/ChangePasswordValidator.java | 1 - .../labseer/web/ForgotPasswordController.java | 8 +-- .../labseer/web/SignUpController.java | 9 +--- .../spring/applicationContext-security.xml | 6 +-- ...cationContext-security.xml_AUTH_PROPERTIES | 6 +-- .../applicationContext-security.xml_LDAP | 5 +- .../META-INF/spring/applicationContext.xml | 2 +- .../WEB-INF/spring/webmvc-config-test.xml | 2 +- .../webapp/WEB-INF/spring/webmvc-config.xml | 2 +- .../api/ApiAnalysisGroupControllerTest.java | 54 +++---------------- .../api/ApiDDictValueControllerTest.java | 26 ++------- 18 files changed, 40 insertions(+), 142 deletions(-) diff --git a/Dockerfile-multistage b/Dockerfile-multistage index 6e84a739c..d9aac1539 100644 --- a/Dockerfile-multistage +++ b/Dockerfile-multistage @@ -14,6 +14,7 @@ FROM dependencies as bbchem FROM dependencies as indigo FROM ${CHEMISTRY_PACKAGE} as compile +COPY .m2 /root/.m2 ADD pom.xml /src/pom.xml WORKDIR /src RUN mvn dependency:resolve -P ${CHEMISTRY_PACKAGE} @@ -35,7 +36,8 @@ RUN curl -fsSL https://deb.nodesource.com/setup_$NODE_VERSION | bash - && \ ENV NODE_PATH /usr/lib/node_modules # Add runner user so we don't run as root -RUN useradd -u 1000 -ms /bin/bash runner +RUN useradd -u 1000 -ms /bin/bash runner && \ + chown -R runner:runner /usr/local/tomcat/ # Allow certificates to be added by runner RUN chgrp runner /usr/local/openjdk-8/lib/security/cacerts && \ diff --git a/pom.xml b/pom.xml index c04def2c5..86f1a3c9f 100644 --- a/pom.xml +++ b/pom.xml @@ -39,10 +39,10 @@ along with this program. If not, see .]]> ${maven.build.timestamp} 1.3.2.RELEASE 1.7.5 - 2.16.0 - 3.2.11.RELEASE + 2.17.2 + 5.3.18 3.4.3 - 3.2.5.RELEASE + 5.6.2 1.5.13 16.4.25.0 2021.03.5-release diff --git a/src/main/java/com/labsynch/labseer/service/ACASAuthenticationProvider.java b/src/main/java/com/labsynch/labseer/service/ACASAuthenticationProvider.java index 9c92659a9..516a07113 100755 --- a/src/main/java/com/labsynch/labseer/service/ACASAuthenticationProvider.java +++ b/src/main/java/com/labsynch/labseer/service/ACASAuthenticationProvider.java @@ -26,10 +26,10 @@ import org.springframework.security.authentication.DisabledException; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider; -import org.springframework.security.authentication.encoding.MessageDigestPasswordEncoder; +import org.springframework.security.crypto.password.MessageDigestPasswordEncoder; import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.GrantedAuthority; -import org.springframework.security.core.authority.GrantedAuthorityImpl; +import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -148,7 +148,7 @@ protected UserDetails retrieveUser(String username, throw new BadCredentialsException("Invalid password"); } // authorize admin - authorities.add(new GrantedAuthorityImpl("ROLE_ADMIN")); + authorities.add(new SimpleGrantedAuthority("ROLE_ADMIN")); } else { @@ -171,7 +171,7 @@ protected UserDetails retrieveUser(String username, TypedQuery roleQuery=AuthorRole.findAuthorRolesByUserEntry(targetUser); List userRoles = roleQuery.getResultList(); for(AuthorRole userRole:userRoles){ - authorities.add(new GrantedAuthorityImpl(userRole.getRoleEntry().getRoleName())); + authorities.add(new SimpleGrantedAuthority(userRole.getRoleEntry().getRoleName())); } enabled = targetUser.getEnabled(); if (!enabled) { diff --git a/src/main/java/com/labsynch/labseer/service/DatabaseAuthenticationProvider.java b/src/main/java/com/labsynch/labseer/service/DatabaseAuthenticationProvider.java index ddba40d85..d4de0c4a8 100755 --- a/src/main/java/com/labsynch/labseer/service/DatabaseAuthenticationProvider.java +++ b/src/main/java/com/labsynch/labseer/service/DatabaseAuthenticationProvider.java @@ -23,10 +23,10 @@ import org.springframework.security.authentication.BadCredentialsException; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider; -import org.springframework.security.authentication.encoding.MessageDigestPasswordEncoder; +import org.springframework.security.crypto.password.MessageDigestPasswordEncoder; import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.GrantedAuthority; -import org.springframework.security.core.authority.GrantedAuthorityImpl; +import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -123,7 +123,7 @@ protected UserDetails retrieveUser(String username, throw new BadCredentialsException("Invalid password"); } // authorize admin - authorities.add(new GrantedAuthorityImpl("ROLE_ADMIN")); + authorities.add(new SimpleGrantedAuthority("ROLE_ADMIN")); } else { try { TypedQuery query= Author.findAuthorsByUserName(username); @@ -161,7 +161,7 @@ protected UserDetails retrieveUser(String username, TypedQuery roleQuery=AuthorRole.findAuthorRolesByUserEntry(targetUser); List userRoles = roleQuery.getResultList(); for(AuthorRole userRole:userRoles){ - authorities.add(new GrantedAuthorityImpl(userRole.getRoleEntry().getRoleName())); + authorities.add(new SimpleGrantedAuthority(userRole.getRoleEntry().getRoleName())); } } catch (EmptyResultDataAccessException e) { throw new BadCredentialsException("Invalid user"); diff --git a/src/main/java/com/labsynch/labseer/web/ApplicationConversionServiceFactoryBean.java b/src/main/java/com/labsynch/labseer/web/ApplicationConversionServiceFactoryBean.java index 8272d0189..439baf185 100755 --- a/src/main/java/com/labsynch/labseer/web/ApplicationConversionServiceFactoryBean.java +++ b/src/main/java/com/labsynch/labseer/web/ApplicationConversionServiceFactoryBean.java @@ -121,12 +121,6 @@ @Transactional public class ApplicationConversionServiceFactoryBean extends FormattingConversionServiceFactoryBean { - @Override - protected void installFormatters(FormatterRegistry registry) { - super.installFormatters(registry); - // Register application converters and formatters - } - public Converter getAnalysisGroupToStringConverter() { return new org.springframework.core.convert.converter.Converter() { public String convert(AnalysisGroup analysisGroup) { diff --git a/src/main/java/com/labsynch/labseer/web/AuthorController.java b/src/main/java/com/labsynch/labseer/web/AuthorController.java index c68d2c94b..e4bff42d2 100755 --- a/src/main/java/com/labsynch/labseer/web/AuthorController.java +++ b/src/main/java/com/labsynch/labseer/web/AuthorController.java @@ -1,32 +1,12 @@ package com.labsynch.labseer.web; import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.dto.AuthorNameDTO; -import com.labsynch.labseer.utils.PropertiesFileService; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.util.Date; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; + import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.security.authentication.encoding.MessageDigestPasswordEncoder; import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; @RooWebJson(jsonObject = Author.class) @Controller diff --git a/src/main/java/com/labsynch/labseer/web/ChangePasswordController.java b/src/main/java/com/labsynch/labseer/web/ChangePasswordController.java index 1eb22546b..d7545f907 100755 --- a/src/main/java/com/labsynch/labseer/web/ChangePasswordController.java +++ b/src/main/java/com/labsynch/labseer/web/ChangePasswordController.java @@ -8,7 +8,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.authentication.encoding.MessageDigestPasswordEncoder; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.stereotype.Controller; @@ -31,9 +30,6 @@ public class ChangePasswordController { @Autowired private ChangePasswordValidator validator; - @Autowired - private MessageDigestPasswordEncoder messageDigestPasswordEncoder; - @ModelAttribute("changePasswordForm") public ChangePasswordForm formBackingObject() { return new ChangePasswordForm(); @@ -66,9 +62,6 @@ public String update( .findAuthorsByUserName(userDetails.getUsername()); Author person = (Author) query.getSingleResult(); -// messageDigestPasswordEncoder.setEncodeHashAsBase64(true); -// person.setPassword(messageDigestPasswordEncoder.encodePassword(newPassword, null)); - String encryptedPassword = null; try { diff --git a/src/main/java/com/labsynch/labseer/web/ChangePasswordValidator.java b/src/main/java/com/labsynch/labseer/web/ChangePasswordValidator.java index 05a7357be..b150b1538 100755 --- a/src/main/java/com/labsynch/labseer/web/ChangePasswordValidator.java +++ b/src/main/java/com/labsynch/labseer/web/ChangePasswordValidator.java @@ -13,7 +13,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.authentication.encoding.MessageDigestPasswordEncoder; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.stereotype.Service; diff --git a/src/main/java/com/labsynch/labseer/web/ForgotPasswordController.java b/src/main/java/com/labsynch/labseer/web/ForgotPasswordController.java index 7a80da356..697a81def 100755 --- a/src/main/java/com/labsynch/labseer/web/ForgotPasswordController.java +++ b/src/main/java/com/labsynch/labseer/web/ForgotPasswordController.java @@ -9,7 +9,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.mail.MailSender; import org.springframework.mail.SimpleMailMessage; -import org.springframework.security.authentication.encoding.MessageDigestPasswordEncoder; import org.springframework.stereotype.Controller; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.ModelAttribute; @@ -32,9 +31,6 @@ public class ForgotPasswordController { @Autowired private PropertiesUtilService propertiesUtilService; - @Autowired - private MessageDigestPasswordEncoder messageDigestPasswordEncoder; - @ModelAttribute("forgotpasswordForm") public ForgotPasswordForm formBackingObject() { return new ForgotPasswordForm(); @@ -59,9 +55,7 @@ public String update(@ModelAttribute("forgotpasswordForm") ForgotPasswordForm fo if(null!=userQuery && userQuery.getMaxResults()>0){ Author User = userQuery.getSingleResult(); Random random = new Random(System.currentTimeMillis()); - String newPassword = "pass"+random.nextLong(); -// User.setPassword(messageDigestPasswordEncoder.encodePassword(newPassword, null)); - + String newPassword = "pass"+random.nextLong(); String encryptedPassword = null; try { diff --git a/src/main/java/com/labsynch/labseer/web/SignUpController.java b/src/main/java/com/labsynch/labseer/web/SignUpController.java index 0cc40b18e..40af4a7a6 100755 --- a/src/main/java/com/labsynch/labseer/web/SignUpController.java +++ b/src/main/java/com/labsynch/labseer/web/SignUpController.java @@ -14,7 +14,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.mail.MailSender; import org.springframework.mail.SimpleMailMessage; -import org.springframework.security.authentication.encoding.MessageDigestPasswordEncoder; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.validation.BindingResult; @@ -51,9 +50,6 @@ public class SignUpController { private transient SimpleMailMessage simpleMailMessage; - @Autowired - private MessageDigestPasswordEncoder messageDigestPasswordEncoder; - @ModelAttribute("Author") public UserRegistrationForm formBackingObject() { return new UserRegistrationForm(); @@ -102,10 +98,7 @@ public String create(@Valid UserRegistrationForm userRegistration, BindingResult author.setFirstName(userRegistration.getFirstName()); author.setLastName(userRegistration.getLastName()); author.setUserName(userRegistration.getUserName()); - -// messageDigestPasswordEncoder.setEncodeHashAsBase64(true); -// author.setPassword(messageDigestPasswordEncoder.encodePassword(userRegistration.getPassword(), null)); - + String encryptedPassword = null; try { encryptedPassword = DatabaseAuthenticationProvider.getBase64ShaHash(userRegistration.getPassword()); diff --git a/src/main/resources/META-INF/spring/applicationContext-security.xml b/src/main/resources/META-INF/spring/applicationContext-security.xml index 26c63f227..175bb8bea 100755 --- a/src/main/resources/META-INF/spring/applicationContext-security.xml +++ b/src/main/resources/META-INF/spring/applicationContext-security.xml @@ -2,8 +2,8 @@ + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-5.6.xsd"> @@ -46,7 +46,7 @@ --> diff --git a/src/main/resources/META-INF/spring/applicationContext-security.xml_AUTH_PROPERTIES b/src/main/resources/META-INF/spring/applicationContext-security.xml_AUTH_PROPERTIES index 861e81223..0732f7320 100755 --- a/src/main/resources/META-INF/spring/applicationContext-security.xml_AUTH_PROPERTIES +++ b/src/main/resources/META-INF/spring/applicationContext-security.xml_AUTH_PROPERTIES @@ -1,8 +1,8 @@ + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-5.6.xsd"> @@ -46,7 +46,7 @@ --> diff --git a/src/main/resources/META-INF/spring/applicationContext-security.xml_LDAP b/src/main/resources/META-INF/spring/applicationContext-security.xml_LDAP index 16a016b87..29c91cf3c 100755 --- a/src/main/resources/META-INF/spring/applicationContext-security.xml_LDAP +++ b/src/main/resources/META-INF/spring/applicationContext-security.xml_LDAP @@ -2,7 +2,7 @@ + http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-5.6.xsd"> @@ -52,11 +52,10 @@ - diff --git a/src/main/resources/META-INF/spring/applicationContext.xml b/src/main/resources/META-INF/spring/applicationContext.xml index 325c1d58c..49fca0df9 100644 --- a/src/main/resources/META-INF/spring/applicationContext.xml +++ b/src/main/resources/META-INF/spring/applicationContext.xml @@ -1,5 +1,5 @@ - + diff --git a/src/main/webapp/WEB-INF/spring/webmvc-config.xml b/src/main/webapp/WEB-INF/spring/webmvc-config.xml index c78050480..942a24f90 100755 --- a/src/main/webapp/WEB-INF/spring/webmvc-config.xml +++ b/src/main/webapp/WEB-INF/spring/webmvc-config.xml @@ -1,5 +1,5 @@ - + diff --git a/src/test/java/com/labsynch/labseer/api/ApiAnalysisGroupControllerTest.java b/src/test/java/com/labsynch/labseer/api/ApiAnalysisGroupControllerTest.java index 146df08af..cee91b18c 100644 --- a/src/test/java/com/labsynch/labseer/api/ApiAnalysisGroupControllerTest.java +++ b/src/test/java/com/labsynch/labseer/api/ApiAnalysisGroupControllerTest.java @@ -1,71 +1,31 @@ package com.labsynch.labseer.api; -import java.security.InvalidParameterException; -import java.util.Collection; -import java.util.Iterator; -import java.util.Map; -import java.util.Set; - -import static org.springframework.test.web.ModelAndViewAssert.*; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; -import org.junit.Assert; +import java.util.Collection; + +import com.labsynch.labseer.domain.AnalysisGroup; +import com.labsynch.labseer.service.AnalysisGroupService; + import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.ApplicationContext; -import org.springframework.mock.web.MockHttpServletRequest; +import org.springframework.http.MediaType; import org.springframework.mock.web.MockHttpServletResponse; import org.springframework.test.annotation.Rollback; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.web.WebAppConfiguration; -import org.springframework.ui.Model; -import org.springframework.web.context.WebApplicationContext; -import org.springframework.web.method.HandlerMethod; -import org.springframework.web.servlet.HandlerExecutionChain; -import org.springframework.web.servlet.HandlerMapping; -import org.springframework.web.servlet.ModelAndView; -import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter; -import org.junit.runners.JUnit4; -import org.springframework.mock.staticmock.MockStaticEntityMethods; - -//import com.google.common.collect.Lists; -//import org.apache.http.HttpHeaders; -import org.junit.Before; -import org.junit.Test; -import org.springframework.http.MediaType; -import org.springframework.http.converter.HttpMessageConverter; -import org.springframework.http.converter.json.MappingJacksonHttpMessageConverter; -import org.springframework.mock.web.MockHttpServletRequest; -import org.springframework.mock.web.MockHttpServletResponse; -import org.springframework.test.util.ReflectionTestUtils; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.setup.MockMvcBuilders; import org.springframework.transaction.annotation.Transactional; -import org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter; - -import java.util.List; - -import static org.junit.Assert.assertEquals; -//import static org.mockito.Mockito.mock; -//import static org.mockito.Mockito.when; - - - - - - - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.service.AnalysisGroupService; +import org.springframework.web.context.WebApplicationContext; @RunWith(SpringJUnit4ClassRunner.class) @WebAppConfiguration diff --git a/src/test/java/com/labsynch/labseer/api/ApiDDictValueControllerTest.java b/src/test/java/com/labsynch/labseer/api/ApiDDictValueControllerTest.java index 52296023c..ef3fe9d2a 100644 --- a/src/test/java/com/labsynch/labseer/api/ApiDDictValueControllerTest.java +++ b/src/test/java/com/labsynch/labseer/api/ApiDDictValueControllerTest.java @@ -1,18 +1,15 @@ package com.labsynch.labseer.api; -import java.security.InvalidParameterException; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; + import java.util.ArrayList; import java.util.Collection; -import java.util.Iterator; import java.util.List; -import java.util.Map; -import java.util.Set; -import static org.springframework.test.web.ModelAndViewAssert.*; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import com.labsynch.labseer.dto.CodeTableDTO; import org.junit.Assert; import org.junit.Before; @@ -21,9 +18,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.ApplicationContext; import org.springframework.http.MediaType; -import org.springframework.mock.web.MockHttpServletRequest; import org.springframework.mock.web.MockHttpServletResponse; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @@ -31,18 +26,7 @@ import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.setup.MockMvcBuilders; import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; import org.springframework.web.context.WebApplicationContext; -import org.springframework.web.method.HandlerMethod; -import org.springframework.web.servlet.HandlerExecutionChain; -import org.springframework.web.servlet.HandlerMapping; -import org.springframework.web.servlet.ModelAndView; -import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter; -import org.junit.runners.JUnit4; -import org.springframework.mock.staticmock.MockStaticEntityMethods; - -import com.labsynch.labseer.domain.ProtocolValue; -import com.labsynch.labseer.dto.CodeTableDTO; @RunWith(SpringJUnit4ClassRunner.class) @WebAppConfiguration From 1f385feb837d00cbe70abbb6440264cc2bb41fba Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Mon, 4 Apr 2022 20:45:19 -0700 Subject: [PATCH 02/73] Removing swagger which was brining in old spring-web --- pom.xml | 20 ++++----- .../labseer/api/ApiContainerController.java | 10 ----- .../labseer/api/ApiCurveFitController.java | 4 -- .../labseer/config/SwaggerConfig.java | 44 ------------------- .../AnalysisGroupController_Roo_Controller.aj | 4 +- ...ysisGroupLabelController_Roo_Controller.aj | 4 +- ...ysisGroupStateController_Roo_Controller.aj | 4 +- .../web/AnalysisGroupValueController.java | 5 +-- ...icationSettingController_Roo_Controller.aj | 4 +- .../web/AuthorController_Roo_Controller.aj | 4 +- .../AuthorLabelController_Roo_Controller.aj | 4 +- .../AuthorRoleController_Roo_Controller.aj | 4 +- .../AuthorStateController_Roo_Controller.aj | 4 +- .../AuthorValueController_Roo_Controller.aj | 4 +- .../BulkLoadFileController_Roo_Controller.aj | 4 +- ...lkLoadTemplateController_Roo_Controller.aj | 4 +- ...dRegAppSettingController_Roo_Controller.aj | 4 +- .../web/CodeKindController_Roo_Controller.aj | 4 +- .../CodeOriginController_Roo_Controller.aj | 4 +- .../web/CodeTypeController_Roo_Controller.aj | 4 +- .../web/CompoundController_Roo_Controller.aj | 4 +- .../CompoundTypeController_Roo_Controller.aj | 4 +- .../web/ContainerController_Roo_Controller.aj | 4 +- .../ContainerKindController_Roo_Controller.aj | 4 +- ...ContainerLabelController_Roo_Controller.aj | 4 +- ...ContainerStateController_Roo_Controller.aj | 4 +- .../ContainerTypeController_Roo_Controller.aj | 4 +- ...ContainerValueController_Roo_Controller.aj | 4 +- .../web/CorpNameController_Roo_Controller.aj | 4 +- .../web/CronJobController_Roo_Controller.aj | 4 +- .../web/DDictKindController_Roo_Controller.aj | 4 +- .../web/DDictTypeController_Roo_Controller.aj | 4 +- .../DDictValueController_Roo_Controller.aj | 4 +- .../ExperimentController_Roo_Controller.aj | 4 +- ...ExperimentKindController_Roo_Controller.aj | 4 +- ...xperimentLabelController_Roo_Controller.aj | 4 +- ...xperimentStateController_Roo_Controller.aj | 4 +- ...ExperimentTypeController_Roo_Controller.aj | 4 +- ...xperimentValueController_Roo_Controller.aj | 4 +- .../labseer/web/FileListController.java | 5 +-- .../labseer/web/FileSaveController.java | 5 +-- .../web/FileThingController_Roo_Controller.aj | 4 +- .../web/FileTypeController_Roo_Controller.aj | 4 +- ...nteractionKindController_Roo_Controller.aj | 4 +- ...nteractionTypeController_Roo_Controller.aj | 4 +- .../labseer/web/IsoSaltController.java | 5 +-- .../labseer/web/IsotopeController.java | 5 +-- ...ainerContainerController_Roo_Controller.aj | 4 +- ...ContainerStateController_Roo_Controller.aj | 4 +- ...ContainerValueController_Roo_Controller.aj | 4 +- ...mentExperimentController_Roo_Controller.aj | 4 +- ...xperimentStateController_Roo_Controller.aj | 4 +- ...xperimentValueController_Roo_Controller.aj | 4 +- ...LsThingLsThingController_Roo_Controller.aj | 4 +- ...ngLsThingStateController_Roo_Controller.aj | 4 +- ...ngLsThingValueController_Roo_Controller.aj | 4 +- ...otocolProtocolController_Roo_Controller.aj | 4 +- ...lProtocolStateController_Roo_Controller.aj | 4 +- ...lProtocolValueController_Roo_Controller.aj | 4 +- ...bjectContainerController_Roo_Controller.aj | 4 +- ...ContainerStateController_Roo_Controller.aj | 4 +- ...ContainerValueController_Roo_Controller.aj | 4 +- .../web/LabelKindController_Roo_Controller.aj | 4 +- .../LabelSequenceController_Roo_Controller.aj | 4 +- ...elSequenceRoleController_Roo_Controller.aj | 4 +- .../web/LabelTypeController_Roo_Controller.aj | 4 +- .../web/LotAliasController_Roo_Controller.aj | 4 +- .../LotAliasKindController_Roo_Controller.aj | 4 +- .../LotAliasTypeController_Roo_Controller.aj | 4 +- .../labsynch/labseer/web/LotController.java | 5 +-- .../LsInteractionController_Roo_Controller.aj | 4 +- .../labseer/web/LsRoleController.java | 5 +-- .../LsSeqAnlGrpController_Roo_Controller.aj | 4 +- ...LsSeqContainerController_Roo_Controller.aj | 4 +- .../web/LsSeqExptController_Roo_Controller.aj | 4 +- ...SeqItxCntrCntrController_Roo_Controller.aj | 4 +- ...mentExperimentController_Roo_Controller.aj | 4 +- ...LsThingLsThingController_Roo_Controller.aj | 4 +- ...otocolProtocolController_Roo_Controller.aj | 4 +- ...SeqItxSubjCntrController_Roo_Controller.aj | 4 +- .../LsSeqProtocolController_Roo_Controller.aj | 4 +- .../LsSeqSubjectController_Roo_Controller.aj | 4 +- .../LsSeqTrtGrpController_Roo_Controller.aj | 4 +- .../web/LsTagController_Roo_Controller.aj | 4 +- .../web/LsThingController_Roo_Controller.aj | 4 +- .../LsThingLabelController_Roo_Controller.aj | 4 +- .../LsThingStateController_Roo_Controller.aj | 4 +- .../LsThingValueController_Roo_Controller.aj | 4 +- .../LsTransactionController_Roo_Controller.aj | 4 +- .../labseer/web/MetalotController.java | 5 +-- .../web/OperatorController_Roo_Controller.aj | 4 +- .../OperatorKindController_Roo_Controller.aj | 4 +- .../OperatorTypeController_Roo_Controller.aj | 4 +- .../ParentAliasController_Roo_Controller.aj | 4 +- ...arentAliasKindController_Roo_Controller.aj | 4 +- ...arentAliasTypeController_Roo_Controller.aj | 4 +- ...rentAnnotationController_Roo_Controller.aj | 4 +- .../labseer/web/ParentController.java | 5 +-- .../labseer/web/PhysicalStateController.java | 5 +-- ...reDef_CorpNameController_Roo_Controller.aj | 4 +- .../web/ProtocolController_Roo_Controller.aj | 4 +- .../ProtocolKindController_Roo_Controller.aj | 4 +- .../ProtocolLabelController_Roo_Controller.aj | 4 +- .../ProtocolStateController_Roo_Controller.aj | 4 +- .../ProtocolTypeController_Roo_Controller.aj | 4 +- .../ProtocolValueController_Roo_Controller.aj | 4 +- ...rityMeasuredByController_Roo_Controller.aj | 4 +- .../labseer/web/RegSearchController.java | 5 +-- .../web/RoleKindController_Roo_Controller.aj | 4 +- .../web/RoleTypeController_Roo_Controller.aj | 4 +- .../labsynch/labseer/web/SaltController.java | 5 +-- .../SaltFormAliasController_Roo_Controller.aj | 4 +- ...tFormAliasKindController_Roo_Controller.aj | 4 +- ...tFormAliasTypeController_Roo_Controller.aj | 4 +- .../labseer/web/SaltFormController.java | 5 +-- .../SaltLoaderController_Roo_Controller.aj | 4 +- .../SolutionUnitController_Roo_Controller.aj | 4 +- .../web/StateKindController_Roo_Controller.aj | 4 +- .../web/StateTypeController_Roo_Controller.aj | 4 +- ...StereoCategoryController_Roo_Controller.aj | 4 +- .../web/SubjectController_Roo_Controller.aj | 4 +- .../SubjectLabelController_Roo_Controller.aj | 4 +- .../SubjectStateController_Roo_Controller.aj | 4 +- .../SubjectValueController_Roo_Controller.aj | 4 +- ...empSelectTableController_Roo_Controller.aj | 4 +- .../web/ThingKindController_Roo_Controller.aj | 4 +- ...ingPageArchiveController_Roo_Controller.aj | 4 +- .../web/ThingPageController_Roo_Controller.aj | 4 +- .../web/ThingTypeController_Roo_Controller.aj | 4 +- ...TreatmentGroupController_Roo_Controller.aj | 4 +- ...mentGroupLabelController_Roo_Controller.aj | 4 +- ...mentGroupStateController_Roo_Controller.aj | 4 +- ...mentGroupValueController_Roo_Controller.aj | 4 +- ...ncertaintyKindController_Roo_Controller.aj | 4 +- .../web/UnitController_Roo_Controller.aj | 4 +- .../web/UnitKindController_Roo_Controller.aj | 4 +- .../web/UnitTypeController_Roo_Controller.aj | 4 +- .../web/UpdateLogController_Roo_Controller.aj | 4 +- .../web/ValueKindController_Roo_Controller.aj | 4 +- .../web/ValueTypeController_Roo_Controller.aj | 4 +- .../web/VendorController_Roo_Controller.aj | 4 +- src/main/resources/log4j2.xml | 1 - .../WEB-INF/spring/webmvc-config-test.xml | 4 +- .../webapp/WEB-INF/spring/webmvc-config.xml | 5 +-- 144 files changed, 151 insertions(+), 498 deletions(-) delete mode 100644 src/main/java/com/labsynch/labseer/config/SwaggerConfig.java diff --git a/pom.xml b/pom.xml index 86f1a3c9f..1f68dbf0d 100644 --- a/pom.xml +++ b/pom.xml @@ -141,11 +141,6 @@ along with this program. If not, see .]]> license3j 1.0.7 - - com.mangofactory - swagger-springmvc - 0.9.4 - com.thetransactioncompany cors-filter @@ -221,7 +216,7 @@ along with this program. If not, see .]]> com.fasterxml.jackson.core jackson-databind - 2.1.0 + 2.13.2.2 org.apache.commons @@ -257,6 +252,11 @@ along with this program. If not, see .]]> + + org.springframework + spring-web + ${spring.version} + org.springframework spring-test @@ -331,7 +331,7 @@ along with this program. If not, see .]]> javax.validation validation-api - 1.0.0.GA + 2.0.1.Final cglib @@ -476,12 +476,12 @@ along with this program. If not, see .]]> org.springframework.ldap spring-ldap-core - 1.3.0.RELEASE + 2.3.6.RELEASE org.springframework.ldap spring-ldap-core-tiger - 1.3.0.RELEASE + 2.3.6.RELEASE org.springframework.security @@ -785,7 +785,7 @@ along with this program. If not, see .]]> org.apache.tomcat.maven - tomcat7-maven-plugin + tomcat8-maven-plugin 2.2 diff --git a/src/main/java/com/labsynch/labseer/api/ApiContainerController.java b/src/main/java/com/labsynch/labseer/api/ApiContainerController.java index 31c548bf0..83d940a2b 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiContainerController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiContainerController.java @@ -54,7 +54,6 @@ import com.labsynch.labseer.service.ContainerService; import com.labsynch.labseer.utils.PropertiesUtilService; import com.labsynch.labseer.utils.SimpleUtil; -import com.wordnik.swagger.annotations.ApiOperation; import flexjson.JSONSerializer; @@ -369,11 +368,6 @@ public ResponseEntity deleteArrayByCodeNames(@RequestBody List } } - @ApiOperation(value = "Checks for dependent containers that would preclude deletion", - notes="A container will fail the dependency check if: \n" - + "A) It has other containers stored in it (added to interaction) \n" - + "B) It has referenced Subjects (Subject-Container interactions) \n" - + "C) Any members (member interaction) have referenced Subjects") @RequestMapping(value = "/checkDependencies/{idOrCodeName}", method = RequestMethod.GET, headers = "Accept=application/json") public ResponseEntity checkDependencies(@PathVariable("idOrCodeName") String idOrCodeName) { HttpHeaders headers = new HttpHeaders(); @@ -421,10 +415,6 @@ public ResponseEntity jsonFindContainersByNameGet(@RequestPara return new ResponseEntity(Container.toJsonArray(Container.findContainerByContainerLabel(labelText)), headers, HttpStatus.OK); } - @ApiOperation(value="Validates container name is unique", notes="Name is determined by label lsType=name." - + "Search is across all containers, for other lsType=name labels, with an exact string match." - + "Successful validation (name is unique) gives HTTP Status 202: Accepted" - + "Failure on validation gives HTTP Status 409: Conflict") @RequestMapping(value = "/validate", method = RequestMethod.POST, headers = "Accept=application/json") public ResponseEntity validateContainer( @RequestBody String json) { diff --git a/src/main/java/com/labsynch/labseer/api/ApiCurveFitController.java b/src/main/java/com/labsynch/labseer/api/ApiCurveFitController.java index 53bdb07e7..9fcd7601a 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiCurveFitController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiCurveFitController.java @@ -21,7 +21,6 @@ import com.labsynch.labseer.dto.KiCurveFitDTO; import com.labsynch.labseer.dto.RawCurveDataDTO; import com.labsynch.labseer.dto.TgDataDTO; -import com.wordnik.swagger.annotations.ApiOperation; @Controller @RequestMapping("api/v1/curvefit") @@ -31,7 +30,6 @@ public class ApiCurveFitController { private static final Logger logger = LoggerFactory.getLogger(ApiCurveFitController.class); //no longer needed - preparing to deprecate - @ApiOperation(value="getFitDataByCurveId") @Transactional @RequestMapping(value = "/fitdata", method = RequestMethod.POST, headers = "Accept=application/json") public ResponseEntity getFitDataByCurveId(@RequestBody List curveIds, @RequestParam(value = "format", required = false) String format) { @@ -74,7 +72,6 @@ else if (renderingHint.equalsIgnoreCase("Ki Fit")){ } } - @ApiOperation(value="getRawCurveDataByCurveId") @Transactional @RequestMapping(value = "/rawdata", method = RequestMethod.POST, headers = "Accept=application/json") public ResponseEntity getRawCurveDataByCurveId(@RequestBody List curveIds, @RequestParam(value = "format", required = false) String format, @@ -98,7 +95,6 @@ public ResponseEntity getRawCurveDataByCurveId(@RequestBody List } } - @ApiOperation(value="getRawAgonistCurveDataByCurveId") @Transactional @RequestMapping(value = "/rawdataagonist", method = RequestMethod.POST, headers = "Accept=application/json") public ResponseEntity getRawCurveDataAgonistByCurveId(@RequestBody List curveIds, @RequestParam(value = "format", required = false) String format, diff --git a/src/main/java/com/labsynch/labseer/config/SwaggerConfig.java b/src/main/java/com/labsynch/labseer/config/SwaggerConfig.java deleted file mode 100644 index 8dfeb38d6..000000000 --- a/src/main/java/com/labsynch/labseer/config/SwaggerConfig.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.labsynch.labseer.config; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.annotation.Bean; - -import com.labsynch.labseer.utils.PropertiesUtilService; -import com.mangofactory.swagger.configuration.SpringSwaggerConfig; -import com.mangofactory.swagger.plugin.EnableSwagger; -import com.mangofactory.swagger.plugin.SwaggerSpringMvcPlugin; -import com.mangofactory.swagger.models.dto.ApiInfo; - -//@Configuration -@EnableSwagger -public class SwaggerConfig { - private SpringSwaggerConfig springSwaggerConfig; - - @Autowired - private PropertiesUtilService propertiesUtilService; - - @Autowired - public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) { - this.springSwaggerConfig = springSwaggerConfig; - } - - @Bean //Don't forget the @Bean annotation - public SwaggerSpringMvcPlugin customImplementation(){ - return new SwaggerSpringMvcPlugin(this.springSwaggerConfig) - .apiInfo(apiInfo()) - .enable(propertiesUtilService.getEnableSwagger()) - .includePatterns("/api.*"); - } - - private ApiInfo apiInfo() { - ApiInfo apiInfo = new ApiInfo( - "ACAS API", - "API for ACAS", - "ACAS API terms of service", - "mail2ACAS@gmail.com", - "ACAS API License Type", - "ACAS API License URL" - ); - return apiInfo; - } -} \ No newline at end of file diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller.aj index 93bc203d7..c5e40de78 100755 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller.aj @@ -113,9 +113,7 @@ privileged aspect AnalysisGroupController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller.aj index cd55d4578..b2a7aa756 100755 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller.aj @@ -112,9 +112,7 @@ privileged aspect AnalysisGroupLabelController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller.aj index ef975c62c..1b127f2db 100644 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller.aj @@ -114,9 +114,7 @@ privileged aspect AnalysisGroupStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueController.java b/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueController.java index ac56de5de..9ebe6c30f 100755 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueController.java +++ b/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueController.java @@ -149,10 +149,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) { - } + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ApplicationSettingController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ApplicationSettingController_Roo_Controller.aj index 0046ac3c4..948f8ce10 100755 --- a/src/main/java/com/labsynch/labseer/web/ApplicationSettingController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ApplicationSettingController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect ApplicationSettingController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller.aj index 28d7ac15e..23e8110db 100755 --- a/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller.aj @@ -112,9 +112,7 @@ privileged aspect AuthorController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/AuthorLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AuthorLabelController_Roo_Controller.aj index 3f8c88774..badf255c7 100644 --- a/src/main/java/com/labsynch/labseer/web/AuthorLabelController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/AuthorLabelController_Roo_Controller.aj @@ -112,9 +112,7 @@ privileged aspect AuthorLabelController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller.aj index f90a80ad5..f9a0599ff 100644 --- a/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller.aj @@ -107,9 +107,7 @@ privileged aspect AuthorRoleController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/AuthorStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AuthorStateController_Roo_Controller.aj index 7e0a6fe73..0052b8aee 100644 --- a/src/main/java/com/labsynch/labseer/web/AuthorStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/AuthorStateController_Roo_Controller.aj @@ -114,9 +114,7 @@ privileged aspect AuthorStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/AuthorValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AuthorValueController_Roo_Controller.aj index 0fd859f65..ab17ef64c 100644 --- a/src/main/java/com/labsynch/labseer/web/AuthorValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/AuthorValueController_Roo_Controller.aj @@ -113,9 +113,7 @@ privileged aspect AuthorValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/BulkLoadFileController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/BulkLoadFileController_Roo_Controller.aj index 5d6d6d0d3..257bb37b3 100644 --- a/src/main/java/com/labsynch/labseer/web/BulkLoadFileController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/BulkLoadFileController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect BulkLoadFileController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController_Roo_Controller.aj index f2d0feafd..b816d878b 100644 --- a/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect BulkLoadTemplateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/CmpdRegAppSettingController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CmpdRegAppSettingController_Roo_Controller.aj index 97ffb5cca..978670286 100644 --- a/src/main/java/com/labsynch/labseer/web/CmpdRegAppSettingController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/CmpdRegAppSettingController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect CmpdRegAppSettingController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller.aj index 314981479..f712e4b96 100755 --- a/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect CodeKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/CodeOriginController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CodeOriginController_Roo_Controller.aj index 450cc647d..534c3401e 100644 --- a/src/main/java/com/labsynch/labseer/web/CodeOriginController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/CodeOriginController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect CodeOriginController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller.aj index 1e69a8918..0ae21a78f 100755 --- a/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect CodeTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/CompoundController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CompoundController_Roo_Controller.aj index 17cd6430b..998bb8ad3 100644 --- a/src/main/java/com/labsynch/labseer/web/CompoundController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/CompoundController_Roo_Controller.aj @@ -103,9 +103,7 @@ privileged aspect CompoundController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/CompoundTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CompoundTypeController_Roo_Controller.aj index cf85da05e..18b369622 100644 --- a/src/main/java/com/labsynch/labseer/web/CompoundTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/CompoundTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect CompoundTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ContainerController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ContainerController_Roo_Controller.aj index c690dbecb..733ec9925 100755 --- a/src/main/java/com/labsynch/labseer/web/ContainerController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ContainerController_Roo_Controller.aj @@ -113,9 +113,7 @@ privileged aspect ContainerController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ContainerKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ContainerKindController_Roo_Controller.aj index 9f6958a15..4a433861a 100755 --- a/src/main/java/com/labsynch/labseer/web/ContainerKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ContainerKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect ContainerKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller.aj index 4bc306f8e..49be8dc3d 100755 --- a/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller.aj @@ -112,9 +112,7 @@ privileged aspect ContainerLabelController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller.aj index 2438c6358..cdda5db2c 100644 --- a/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller.aj @@ -114,9 +114,7 @@ privileged aspect ContainerStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller.aj index 3a24ce65e..595b2354e 100755 --- a/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect ContainerTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller.aj index 389183a82..8bdcab793 100755 --- a/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller.aj @@ -113,9 +113,7 @@ privileged aspect ContainerValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/CorpNameController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CorpNameController_Roo_Controller.aj index 152041171..c09365527 100644 --- a/src/main/java/com/labsynch/labseer/web/CorpNameController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/CorpNameController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect CorpNameController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/CronJobController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CronJobController_Roo_Controller.aj index 0c424db1d..58f4b7a42 100644 --- a/src/main/java/com/labsynch/labseer/web/CronJobController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/CronJobController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect CronJobController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller.aj index 72f202829..a1bfbd7a1 100644 --- a/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller.aj @@ -89,9 +89,7 @@ privileged aspect DDictKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller.aj index 82abe1da6..8cc846f09 100644 --- a/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect DDictTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller.aj index cba72f1c4..6c3baf3fb 100644 --- a/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller.aj @@ -89,9 +89,7 @@ privileged aspect DDictValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller.aj index f6c21669b..983889a9f 100644 --- a/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller.aj @@ -124,9 +124,7 @@ privileged aspect ExperimentController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ExperimentKindController_Roo_Controller.aj index 7c10e4ad0..388df21ee 100755 --- a/src/main/java/com/labsynch/labseer/web/ExperimentKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ExperimentKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect ExperimentKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller.aj index af2a6f95c..95b2d6f52 100755 --- a/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller.aj @@ -112,9 +112,7 @@ privileged aspect ExperimentLabelController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller.aj index dbe6a09f3..b019e4ba9 100755 --- a/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller.aj @@ -114,9 +114,7 @@ privileged aspect ExperimentStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller.aj index 741010331..c4fb07c50 100755 --- a/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect ExperimentTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller.aj index 37c8a450e..a40f62b71 100755 --- a/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller.aj @@ -113,9 +113,7 @@ privileged aspect ExperimentValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/FileListController.java b/src/main/java/com/labsynch/labseer/web/FileListController.java index 9aba22cd6..e3cc88124 100755 --- a/src/main/java/com/labsynch/labseer/web/FileListController.java +++ b/src/main/java/com/labsynch/labseer/web/FileListController.java @@ -225,10 +225,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) { - } + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/FileSaveController.java b/src/main/java/com/labsynch/labseer/web/FileSaveController.java index c75f24821..1ff1b7cd4 100755 --- a/src/main/java/com/labsynch/labseer/web/FileSaveController.java +++ b/src/main/java/com/labsynch/labseer/web/FileSaveController.java @@ -188,10 +188,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } - catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/FileThingController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/FileThingController_Roo_Controller.aj index 89897c0d1..87c8d06d7 100755 --- a/src/main/java/com/labsynch/labseer/web/FileThingController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/FileThingController_Roo_Controller.aj @@ -105,9 +105,7 @@ privileged aspect FileThingController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller.aj index 1123476e8..73bf10b64 100644 --- a/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect FileTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/InteractionKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/InteractionKindController_Roo_Controller.aj index d654120d2..509747f57 100755 --- a/src/main/java/com/labsynch/labseer/web/InteractionKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/InteractionKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect InteractionKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/InteractionTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/InteractionTypeController_Roo_Controller.aj index 1a4b241d3..d3de69070 100755 --- a/src/main/java/com/labsynch/labseer/web/InteractionTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/InteractionTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect InteractionTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/IsoSaltController.java b/src/main/java/com/labsynch/labseer/web/IsoSaltController.java index 483c4fd47..4875023ec 100755 --- a/src/main/java/com/labsynch/labseer/web/IsoSaltController.java +++ b/src/main/java/com/labsynch/labseer/web/IsoSaltController.java @@ -128,10 +128,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } - catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/IsotopeController.java b/src/main/java/com/labsynch/labseer/web/IsotopeController.java index 0b4a7a68e..4792c5177 100755 --- a/src/main/java/com/labsynch/labseer/web/IsotopeController.java +++ b/src/main/java/com/labsynch/labseer/web/IsotopeController.java @@ -117,10 +117,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) { - } + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller.aj index 6bf12c8c7..109605dc7 100755 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller.aj @@ -119,9 +119,7 @@ privileged aspect ItxContainerContainerController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController_Roo_Controller.aj index c3033d136..6fb65582d 100755 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController_Roo_Controller.aj @@ -107,9 +107,7 @@ privileged aspect ItxContainerContainerStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController_Roo_Controller.aj index 62f7bf851..e481d8621 100755 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController_Roo_Controller.aj @@ -106,9 +106,7 @@ privileged aspect ItxContainerContainerValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller.aj index 7867e33d3..dc322153a 100644 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller.aj @@ -119,9 +119,7 @@ privileged aspect ItxExperimentExperimentController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController_Roo_Controller.aj index 4766c288e..7f4ee6107 100644 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController_Roo_Controller.aj @@ -107,9 +107,7 @@ privileged aspect ItxExperimentExperimentStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController_Roo_Controller.aj index f571fcc75..3fc20ba2b 100644 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController_Roo_Controller.aj @@ -106,9 +106,7 @@ privileged aspect ItxExperimentExperimentValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller.aj index 81da550c2..2357b9644 100644 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller.aj @@ -119,9 +119,7 @@ privileged aspect ItxLsThingLsThingController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController_Roo_Controller.aj index a0e2b9957..5b95e0e32 100644 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController_Roo_Controller.aj @@ -107,9 +107,7 @@ privileged aspect ItxLsThingLsThingStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController_Roo_Controller.aj index f39495269..d44f23edf 100644 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController_Roo_Controller.aj @@ -106,9 +106,7 @@ privileged aspect ItxLsThingLsThingValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller.aj index c8fd35710..21028f7ea 100755 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller.aj @@ -119,9 +119,7 @@ privileged aspect ItxProtocolProtocolController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController_Roo_Controller.aj index 349fbb7a4..1b2d3295b 100755 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController_Roo_Controller.aj @@ -107,9 +107,7 @@ privileged aspect ItxProtocolProtocolStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController_Roo_Controller.aj index fd3fe8917..bd5a9a581 100755 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController_Roo_Controller.aj @@ -106,9 +106,7 @@ privileged aspect ItxProtocolProtocolValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller.aj index 6565a756f..59bbd398c 100755 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller.aj @@ -121,9 +121,7 @@ privileged aspect ItxSubjectContainerController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController_Roo_Controller.aj index 9a55f8fad..4995ee155 100755 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController_Roo_Controller.aj @@ -107,9 +107,7 @@ privileged aspect ItxSubjectContainerStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController_Roo_Controller.aj index 74bc2eee6..d2f95ff95 100755 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController_Roo_Controller.aj @@ -106,9 +106,7 @@ privileged aspect ItxSubjectContainerValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller.aj index 9d13d6292..34b859f11 100755 --- a/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller.aj @@ -95,9 +95,7 @@ privileged aspect LabelKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller.aj index 75648fad4..c6ae9013a 100755 --- a/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller.aj @@ -104,9 +104,7 @@ privileged aspect LabelSequenceController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LabelSequenceRoleController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LabelSequenceRoleController_Roo_Controller.aj index 8ceb7d922..db3a760ef 100644 --- a/src/main/java/com/labsynch/labseer/web/LabelSequenceRoleController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LabelSequenceRoleController_Roo_Controller.aj @@ -107,9 +107,7 @@ privileged aspect LabelSequenceRoleController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller.aj index aa6dc1563..20a0c3792 100755 --- a/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LabelTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller.aj index dda646cc2..f10783cea 100644 --- a/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller.aj @@ -95,9 +95,7 @@ privileged aspect LotAliasController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LotAliasKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LotAliasKindController_Roo_Controller.aj index 94aeb81c0..e2ade5a79 100644 --- a/src/main/java/com/labsynch/labseer/web/LotAliasKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LotAliasKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect LotAliasKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LotAliasTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LotAliasTypeController_Roo_Controller.aj index a208c2dd2..b78c73dcb 100644 --- a/src/main/java/com/labsynch/labseer/web/LotAliasTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LotAliasTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LotAliasTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LotController.java b/src/main/java/com/labsynch/labseer/web/LotController.java index 38b06e7b3..9abc9ac37 100755 --- a/src/main/java/com/labsynch/labseer/web/LotController.java +++ b/src/main/java/com/labsynch/labseer/web/LotController.java @@ -169,10 +169,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) { - } + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsInteractionController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsInteractionController_Roo_Controller.aj index 0f7830e60..c44b7aca2 100755 --- a/src/main/java/com/labsynch/labseer/web/LsInteractionController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsInteractionController_Roo_Controller.aj @@ -105,9 +105,7 @@ privileged aspect LsInteractionController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsRoleController.java b/src/main/java/com/labsynch/labseer/web/LsRoleController.java index 5f06c290e..8f30dbae4 100755 --- a/src/main/java/com/labsynch/labseer/web/LsRoleController.java +++ b/src/main/java/com/labsynch/labseer/web/LsRoleController.java @@ -117,10 +117,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) { - } + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } } diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqAnlGrpController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqAnlGrpController_Roo_Controller.aj index 1e56b7d3e..9aa8ba003 100644 --- a/src/main/java/com/labsynch/labseer/web/LsSeqAnlGrpController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsSeqAnlGrpController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LsSeqAnlGrpController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqContainerController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqContainerController_Roo_Controller.aj index 04956fbfd..33352ed8d 100644 --- a/src/main/java/com/labsynch/labseer/web/LsSeqContainerController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsSeqContainerController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LsSeqContainerController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqExptController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqExptController_Roo_Controller.aj index e7d15f7b1..f0f52d852 100644 --- a/src/main/java/com/labsynch/labseer/web/LsSeqExptController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsSeqExptController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LsSeqExptController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxCntrCntrController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqItxCntrCntrController_Roo_Controller.aj index 74ded2998..58a54c0c7 100644 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxCntrCntrController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsSeqItxCntrCntrController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LsSeqItxCntrCntrController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxExperimentExperimentController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqItxExperimentExperimentController_Roo_Controller.aj index ce6b8d70b..82c3cbe19 100644 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxExperimentExperimentController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsSeqItxExperimentExperimentController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LsSeqItxExperimentExperimentController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxLsThingLsThingController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqItxLsThingLsThingController_Roo_Controller.aj index fe371e409..71d31c696 100644 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxLsThingLsThingController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsSeqItxLsThingLsThingController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LsSeqItxLsThingLsThingController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxProtocolProtocolController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqItxProtocolProtocolController_Roo_Controller.aj index 5e594e531..bf9e47cf2 100644 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxProtocolProtocolController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsSeqItxProtocolProtocolController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LsSeqItxProtocolProtocolController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxSubjCntrController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqItxSubjCntrController_Roo_Controller.aj index 1c61d8e7b..1415386a9 100644 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxSubjCntrController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsSeqItxSubjCntrController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LsSeqItxSubjCntrController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqProtocolController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqProtocolController_Roo_Controller.aj index 97c3b599e..29fd96611 100644 --- a/src/main/java/com/labsynch/labseer/web/LsSeqProtocolController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsSeqProtocolController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LsSeqProtocolController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqSubjectController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqSubjectController_Roo_Controller.aj index 205e414ef..2505ece6b 100644 --- a/src/main/java/com/labsynch/labseer/web/LsSeqSubjectController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsSeqSubjectController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LsSeqSubjectController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqTrtGrpController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqTrtGrpController_Roo_Controller.aj index bc9c6985d..1e8f0e053 100644 --- a/src/main/java/com/labsynch/labseer/web/LsSeqTrtGrpController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsSeqTrtGrpController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect LsSeqTrtGrpController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller.aj index a20a7e816..f50f68480 100644 --- a/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller.aj @@ -108,9 +108,7 @@ privileged aspect LsTagController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller.aj index 73cb2229d..45e171225 100755 --- a/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller.aj @@ -113,9 +113,7 @@ privileged aspect LsThingController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller.aj index 3b0f941ed..d4efd3fb6 100755 --- a/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller.aj @@ -112,9 +112,7 @@ privileged aspect LsThingLabelController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller.aj index 526d9272d..09ac4443a 100755 --- a/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller.aj @@ -114,9 +114,7 @@ privileged aspect LsThingStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller.aj index dbf0efb84..55eeb2cd2 100755 --- a/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller.aj @@ -113,9 +113,7 @@ privileged aspect LsThingValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/LsTransactionController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsTransactionController_Roo_Controller.aj index b3033391b..2062e5a59 100755 --- a/src/main/java/com/labsynch/labseer/web/LsTransactionController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/LsTransactionController_Roo_Controller.aj @@ -107,9 +107,7 @@ privileged aspect LsTransactionController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/MetalotController.java b/src/main/java/com/labsynch/labseer/web/MetalotController.java index b42ac3644..12c8708cd 100755 --- a/src/main/java/com/labsynch/labseer/web/MetalotController.java +++ b/src/main/java/com/labsynch/labseer/web/MetalotController.java @@ -235,10 +235,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } - catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/OperatorController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/OperatorController_Roo_Controller.aj index dc4589989..2a3b7a6b1 100644 --- a/src/main/java/com/labsynch/labseer/web/OperatorController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/OperatorController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect OperatorController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/OperatorKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/OperatorKindController_Roo_Controller.aj index c7183495e..c50ed2bba 100755 --- a/src/main/java/com/labsynch/labseer/web/OperatorKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/OperatorKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect OperatorKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller.aj index e086b7292..614fa292f 100755 --- a/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect OperatorTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller.aj index 290f25210..a9f463375 100644 --- a/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller.aj @@ -95,9 +95,7 @@ privileged aspect ParentAliasController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ParentAliasKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ParentAliasKindController_Roo_Controller.aj index 3b2466cf6..99fd18a92 100644 --- a/src/main/java/com/labsynch/labseer/web/ParentAliasKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ParentAliasKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect ParentAliasKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ParentAliasTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ParentAliasTypeController_Roo_Controller.aj index b8afe52d9..8923a555b 100644 --- a/src/main/java/com/labsynch/labseer/web/ParentAliasTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ParentAliasTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect ParentAliasTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ParentAnnotationController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ParentAnnotationController_Roo_Controller.aj index 0d211ee09..38e5f01da 100644 --- a/src/main/java/com/labsynch/labseer/web/ParentAnnotationController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ParentAnnotationController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect ParentAnnotationController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ParentController.java b/src/main/java/com/labsynch/labseer/web/ParentController.java index 45b43417d..1edda45e6 100755 --- a/src/main/java/com/labsynch/labseer/web/ParentController.java +++ b/src/main/java/com/labsynch/labseer/web/ParentController.java @@ -275,10 +275,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) { - } + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/PhysicalStateController.java b/src/main/java/com/labsynch/labseer/web/PhysicalStateController.java index c8e46ac89..a761ce754 100755 --- a/src/main/java/com/labsynch/labseer/web/PhysicalStateController.java +++ b/src/main/java/com/labsynch/labseer/web/PhysicalStateController.java @@ -113,10 +113,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) { - } + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/PreDef_CorpNameController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/PreDef_CorpNameController_Roo_Controller.aj index d02062978..45dbd1d7e 100644 --- a/src/main/java/com/labsynch/labseer/web/PreDef_CorpNameController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/PreDef_CorpNameController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect PreDef_CorpNameController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller.aj index 47953268f..5cc7d6756 100644 --- a/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller.aj @@ -115,9 +115,7 @@ privileged aspect ProtocolController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller.aj index 39e50b7a0..937a45fec 100755 --- a/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect ProtocolKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller.aj index 56792a8d7..86d0c8aed 100755 --- a/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller.aj @@ -112,9 +112,7 @@ privileged aspect ProtocolLabelController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller.aj index f87a5013f..b2b5744f4 100644 --- a/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller.aj @@ -114,9 +114,7 @@ privileged aspect ProtocolStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller.aj index 5cbd60672..4df1e40d9 100755 --- a/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect ProtocolTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller.aj index d18caedd0..32e03e257 100644 --- a/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller.aj @@ -113,9 +113,7 @@ privileged aspect ProtocolValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller.aj index 0a4c87e52..c5929897b 100644 --- a/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect PurityMeasuredByController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/RegSearchController.java b/src/main/java/com/labsynch/labseer/web/RegSearchController.java index ec9b11fd4..e6070aad7 100755 --- a/src/main/java/com/labsynch/labseer/web/RegSearchController.java +++ b/src/main/java/com/labsynch/labseer/web/RegSearchController.java @@ -40,10 +40,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } - catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller.aj index 2e3122ed6..ea3e9d7b7 100644 --- a/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect RoleKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller.aj index deb0e8573..00395a75d 100644 --- a/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect RoleTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/SaltController.java b/src/main/java/com/labsynch/labseer/web/SaltController.java index 4e590c506..f5c39d934 100755 --- a/src/main/java/com/labsynch/labseer/web/SaltController.java +++ b/src/main/java/com/labsynch/labseer/web/SaltController.java @@ -83,10 +83,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) { - } + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormAliasController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SaltFormAliasController_Roo_Controller.aj index 8ee2b7773..b781d59db 100644 --- a/src/main/java/com/labsynch/labseer/web/SaltFormAliasController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/SaltFormAliasController_Roo_Controller.aj @@ -95,9 +95,7 @@ privileged aspect SaltFormAliasController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormAliasKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SaltFormAliasKindController_Roo_Controller.aj index da0199d75..39ca9c1af 100644 --- a/src/main/java/com/labsynch/labseer/web/SaltFormAliasKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/SaltFormAliasKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect SaltFormAliasKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormAliasTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SaltFormAliasTypeController_Roo_Controller.aj index 008139010..008b1b5c8 100644 --- a/src/main/java/com/labsynch/labseer/web/SaltFormAliasTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/SaltFormAliasTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect SaltFormAliasTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormController.java b/src/main/java/com/labsynch/labseer/web/SaltFormController.java index f181759a2..8fb83e215 100755 --- a/src/main/java/com/labsynch/labseer/web/SaltFormController.java +++ b/src/main/java/com/labsynch/labseer/web/SaltFormController.java @@ -182,10 +182,7 @@ String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRe if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) { - } + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/SaltLoaderController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SaltLoaderController_Roo_Controller.aj index f3c189908..9000136ca 100644 --- a/src/main/java/com/labsynch/labseer/web/SaltLoaderController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/SaltLoaderController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect SaltLoaderController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/SolutionUnitController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SolutionUnitController_Roo_Controller.aj index d25c883e8..beae8ca47 100644 --- a/src/main/java/com/labsynch/labseer/web/SolutionUnitController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/SolutionUnitController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect SolutionUnitController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller.aj index aba3a0900..b79f04281 100755 --- a/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect StateKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller.aj index 774b05b6c..a6cce6f69 100755 --- a/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect StateTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/StereoCategoryController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/StereoCategoryController_Roo_Controller.aj index 30cfd715d..795184894 100644 --- a/src/main/java/com/labsynch/labseer/web/StereoCategoryController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/StereoCategoryController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect StereoCategoryController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller.aj index 66a30a5a5..23db5ef96 100755 --- a/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller.aj @@ -113,9 +113,7 @@ privileged aspect SubjectController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller.aj index 65003bc4a..d285928ad 100755 --- a/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller.aj @@ -112,9 +112,7 @@ privileged aspect SubjectLabelController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller.aj index 616fb59d7..f65386ebd 100644 --- a/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller.aj @@ -114,9 +114,7 @@ privileged aspect SubjectStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller.aj index d46925091..2495b0ad1 100644 --- a/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller.aj @@ -113,9 +113,7 @@ privileged aspect SubjectValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/TempSelectTableController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/TempSelectTableController_Roo_Controller.aj index eec7efbe8..456eeb0f8 100644 --- a/src/main/java/com/labsynch/labseer/web/TempSelectTableController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/TempSelectTableController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect TempSelectTableController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller.aj index 42965500f..9122aa7de 100755 --- a/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect ThingKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ThingPageArchiveController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ThingPageArchiveController_Roo_Controller.aj index 1f6389778..f4a674bb1 100755 --- a/src/main/java/com/labsynch/labseer/web/ThingPageArchiveController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ThingPageArchiveController_Roo_Controller.aj @@ -103,9 +103,7 @@ privileged aspect ThingPageArchiveController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ThingPageController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ThingPageController_Roo_Controller.aj index f6c89c700..e38dd87a3 100755 --- a/src/main/java/com/labsynch/labseer/web/ThingPageController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ThingPageController_Roo_Controller.aj @@ -114,9 +114,7 @@ privileged aspect ThingPageController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller.aj index 2e9a80779..5158c77f8 100755 --- a/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect ThingTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller.aj index 85247e73a..68311b2e4 100755 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller.aj @@ -113,9 +113,7 @@ privileged aspect TreatmentGroupController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller.aj index 922cdb522..6a6110edf 100755 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller.aj @@ -112,9 +112,7 @@ privileged aspect TreatmentGroupLabelController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller.aj index 69f54225d..481c1b532 100755 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller.aj @@ -114,9 +114,7 @@ privileged aspect TreatmentGroupStateController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller.aj index 31cff272c..642466874 100755 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller.aj @@ -113,9 +113,7 @@ privileged aspect TreatmentGroupValueController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/UncertaintyKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/UncertaintyKindController_Roo_Controller.aj index ed810331f..4cb4a35ee 100755 --- a/src/main/java/com/labsynch/labseer/web/UncertaintyKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/UncertaintyKindController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect UncertaintyKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/UnitController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/UnitController_Roo_Controller.aj index 358271468..72771f1cf 100644 --- a/src/main/java/com/labsynch/labseer/web/UnitController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/UnitController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect UnitController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/UnitKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/UnitKindController_Roo_Controller.aj index 712bbc862..d3da774e3 100755 --- a/src/main/java/com/labsynch/labseer/web/UnitKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/UnitKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect UnitKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller.aj index 8918435a6..4e3d0f835 100755 --- a/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect UnitTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/UpdateLogController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/UpdateLogController_Roo_Controller.aj index 7a53f6edc..e318ff2a6 100755 --- a/src/main/java/com/labsynch/labseer/web/UpdateLogController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/UpdateLogController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect UpdateLogController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller.aj index 90b9b9857..cd79e3504 100755 --- a/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller.aj @@ -102,9 +102,7 @@ privileged aspect ValueKindController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller.aj index 6a3caaaff..d816d0b83 100755 --- a/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect ValueTypeController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/java/com/labsynch/labseer/web/VendorController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/VendorController_Roo_Controller.aj index e33a0ab90..e4538512c 100644 --- a/src/main/java/com/labsynch/labseer/web/VendorController_Roo_Controller.aj +++ b/src/main/java/com/labsynch/labseer/web/VendorController_Roo_Controller.aj @@ -93,9 +93,7 @@ privileged aspect VendorController_Roo_Controller { if (enc == null) { enc = WebUtils.DEFAULT_CHARACTER_ENCODING; } - try { - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - } catch (UnsupportedEncodingException uee) {} + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); return pathSegment; } diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml index e5da99971..b282fb6bd 100755 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml @@ -7,7 +7,6 @@ - diff --git a/src/main/webapp/WEB-INF/spring/webmvc-config-test.xml b/src/main/webapp/WEB-INF/spring/webmvc-config-test.xml index 76ab7f2b0..0d1d49ae3 100755 --- a/src/main/webapp/WEB-INF/spring/webmvc-config-test.xml +++ b/src/main/webapp/WEB-INF/spring/webmvc-config-test.xml @@ -62,9 +62,9 @@ - + - + /WEB-INF/layouts/layouts.xml diff --git a/src/main/webapp/WEB-INF/spring/webmvc-config.xml b/src/main/webapp/WEB-INF/spring/webmvc-config.xml index 942a24f90..8ae4709b5 100755 --- a/src/main/webapp/WEB-INF/spring/webmvc-config.xml +++ b/src/main/webapp/WEB-INF/spring/webmvc-config.xml @@ -14,7 +14,7 @@ class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping" /> + class="org.springframework.web.servlet.view.json.MappingJackson2JsonView"> @@ -82,7 +82,7 @@ - + /WEB-INF/layouts/layouts.xml @@ -92,6 +92,5 @@ - From ddedbe6705093ff4967667576d1b796cb28c9883 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Tue, 5 Apr 2022 13:22:42 -0700 Subject: [PATCH 03/73] Startup + setup scripts working --- pom.xml | 35 ++++++++++++------- .../labseer/api/ApiContainerController.java | 10 +++--- .../labseer/api/ApiExperimentController.java | 6 ++-- .../labseer/api/ApiProtocolController.java | 6 ++-- .../labseer/api/ApiStructureController.java | 12 +++---- .../labseer/api/ApiSubjectController.java | 6 ++-- .../labseer/api/ApiValueKindController.java | 6 ++-- .../labseer/domain/ContainerKind.java | 2 ++ .../labseer/domain/ExperimentKind.java | 2 ++ .../labseer/domain/InteractionKind.java | 2 ++ .../labseer/domain/ItxLsThingLsThing.java | 4 +-- .../labsynch/labseer/domain/LabelKind.java | 2 ++ .../java/com/labsynch/labseer/domain/Lot.java | 13 ++----- .../labseer/domain/Lot_Roo_JavaBean.aj | 8 ++--- .../domain/Lot_Roo_Jpa_ActiveRecord.aj | 2 +- .../com/labsynch/labseer/domain/LsRole.java | 2 +- .../labsynch/labseer/domain/OperatorKind.java | 2 ++ .../labsynch/labseer/domain/ProtocolKind.java | 2 ++ .../com/labsynch/labseer/domain/RoleKind.java | 2 ++ .../labsynch/labseer/domain/StateKind.java | 2 ++ .../labsynch/labseer/domain/ThingKind.java | 2 ++ .../com/labsynch/labseer/domain/UnitKind.java | 2 ++ .../labsynch/labseer/domain/ValueKind.java | 2 ++ .../labsynch/labseer/domain/ValueType.java | 12 ++++++- .../labseer/domain/ValueType_Roo_Finder.aj | 9 +---- .../labseer/dto/BatchCodeDependencyDTO.java | 2 +- .../labseer/dto/BulkLoadPropertiesDTO.java | 4 +-- ...oadSDFValidationPropertiesResponseDTO.java | 2 +- .../labseer/dto/BulkLoadTemplateDTO.java | 2 +- .../com/labsynch/labseer/dto/CurveFitDTO.java | 6 ++-- .../com/labsynch/labseer/dto/FlagWellDTO.java | 10 +++--- .../labsynch/labseer/dto/KiCurveFitDTO.java | 4 +-- .../com/labsynch/labseer/dto/LotAliasDTO.java | 4 +-- .../java/com/labsynch/labseer/dto/LotDTO.java | 2 +- .../labseer/dto/LotDTO_Roo_JavaBean.aj | 8 ++--- .../labsynch/labseer/dto/ParentAliasDTO.java | 4 +-- .../labseer/dto/PreferredNameDTO.java | 6 ++-- .../com/labsynch/labseer/dto/TypeDTO.java | 27 +++++++------- .../com/labsynch/labseer/dto/TypeKindDTO.java | 26 +++++++------- .../labseer/dto/ValueTypeKindDTO.java | 6 ++-- .../service/ACASAuthenticationProvider.java | 4 +-- .../service/AuthorRoleServiceImpl.java | 4 +-- .../labseer/service/AuthorServiceImpl.java | 4 +-- .../labseer/service/BulkLoadServiceImpl.java | 12 +++---- .../labseer/service/ContainerServiceImpl.java | 8 ++--- .../service/DataDictionaryServiceImpl.java | 4 +-- .../DatabaseAuthenticationProvider.java | 4 +-- .../service/ExperimentServiceImpl.java | 4 +-- .../labseer/service/ExportServiceImpl.java | 2 +- .../labseer/service/GeneThingServiceImpl.java | 6 ++-- .../service/ItxLsThingLsThingServiceImpl.java | 2 +- .../service/LabelSequenceServiceImpl.java | 4 +-- .../labseer/service/LsThingServiceImpl.java | 14 ++++---- .../labseer/service/MetalotServiceImpl.java | 2 +- .../labseer/utils/BitSetUserType.java | 6 ++-- .../labseer/utils/LoadCompoundsUtil.java | 18 +++++----- .../labseer/utils/LoadFullCompoundsUtil.java | 8 ++--- .../utils/PhysicalNamingStrategyImpl.java | 27 ++++++++++++++ .../labsynch/labseer/utils/SecurityUtil.java | 8 ++--- src/main/resources/META-INF/persistence.xml | 4 +-- .../spring/applicationContext-security.xml | 2 +- src/main/resources/log4j2.xml | 1 + .../webapp/WEB-INF/spring/webmvc-config.xml | 2 +- .../webapp/WEB-INF/views/lots/create.jspx | 2 +- src/main/webapp/WEB-INF/views/lots/show.jspx | 2 +- .../webapp/WEB-INF/views/lots/update.jspx | 2 +- .../api/ApiContainerControllerTest.java | 6 ++-- .../labseer/dto/ValueTypeKindDTOTest.java | 2 +- .../service/ContainerLSServiceTests.java | 8 ++--- .../labseer/service/CreateProjectsTests.java | 20 +++++------ .../LsThingPreferredIdServiceTests.java | 2 +- .../labseer/service/LsThingServiceTests.java | 2 +- 72 files changed, 259 insertions(+), 203 deletions(-) create mode 100644 src/main/java/com/labsynch/labseer/utils/PhysicalNamingStrategyImpl.java diff --git a/pom.xml b/pom.xml index 1f68dbf0d..95ad7936f 100644 --- a/pom.xml +++ b/pom.xml @@ -50,6 +50,7 @@ along with this program. If not, see .]]> ${buildNumber} ${scmBranch} 7.0.63 + 5.6.1.Final scm:git:git://github.com/mcneilco/acas-roo-server.git @@ -62,7 +63,17 @@ along with this program. If not, see .]]> Spring Release https://repo.spring.io/release - + + MavenCentral + Maven repository + https://repo1.maven.org/maven2 + + true + + + true + + @@ -281,17 +292,17 @@ along with this program. If not, see .]]> org.hibernate hibernate-core - 4.3.11.Final + ${hibernate.version} com.vladmihalcea - hibernate-types-43 + hibernate-types-52 2.14.0 org.hibernate hibernate-entitymanager - 4.3.11.Final + ${hibernate.version} cglib @@ -316,7 +327,7 @@ along with this program. If not, see .]]> org.hibernate hibernate-validator - 4.3.2.Final + 6.0.15.Final javax.xml.bind @@ -328,11 +339,11 @@ along with this program. If not, see .]]> - + cglib cglib-nodep @@ -439,7 +450,7 @@ along with this program. If not, see .]]> org.apache.tiles tiles-jsp - 2.2.2 + 3.0.8 com.mysema.querydsl @@ -547,11 +558,11 @@ along with this program. If not, see .]]> 1.3.1 - + com.beust jcommander diff --git a/src/main/java/com/labsynch/labseer/api/ApiContainerController.java b/src/main/java/com/labsynch/labseer/api/ApiContainerController.java index 83d940a2b..c7b4b1122 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiContainerController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiContainerController.java @@ -9,7 +9,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.dao.IncorrectResultSizeDataAccessException; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; @@ -579,7 +579,7 @@ public ResponseEntity createPlate(@RequestBody String json) { return new ResponseEntity("Barcode already exists", headers, HttpStatus.BAD_REQUEST); } } - catch (EmptyResultDataAccessException e){ + catch (NoResultException e){ //barcode is unique, proceed to plate creation }catch (IncorrectResultSizeDataAccessException e){ return new ResponseEntity("More than one of this barcode already exists!!", headers, HttpStatus.BAD_REQUEST); @@ -609,7 +609,7 @@ public ResponseEntity createPlates(@RequestBody String json) { if (dupeContainer != null){ return new ResponseEntity("Barcode already exists: "+plateRequest.getBarcode(), headers, HttpStatus.BAD_REQUEST); } - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ //barcode is unique, proceed to plate creation }catch (IncorrectResultSizeDataAccessException e){ return new ResponseEntity("More than one of this barcode already exists!!: "+plateRequest.getBarcode(), headers, HttpStatus.BAD_REQUEST); @@ -640,7 +640,7 @@ public ResponseEntity createTube(@RequestBody String json) { return new ResponseEntity("Barcode already exists", headers, HttpStatus.BAD_REQUEST); } } - catch (EmptyResultDataAccessException e){ + catch (NoResultException e){ //barcode is unique, proceed to plate creation }catch (IncorrectResultSizeDataAccessException e){ return new ResponseEntity("More than one of this barcode already exists!!", headers, HttpStatus.BAD_REQUEST); @@ -670,7 +670,7 @@ public ResponseEntity createTubes(@RequestBody String json) { if (dupeContainer != null){ return new ResponseEntity("Barcode already exists: "+plateRequest.getBarcode(), headers, HttpStatus.BAD_REQUEST); } - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ //barcode is unique, proceed to plate creation }catch (IncorrectResultSizeDataAccessException e){ return new ResponseEntity("More than one of this barcode already exists!! "+plateRequest.getBarcode(), headers, HttpStatus.BAD_REQUEST); diff --git a/src/main/java/com/labsynch/labseer/api/ApiExperimentController.java b/src/main/java/com/labsynch/labseer/api/ApiExperimentController.java index 5c952fc1e..172a3162d 100755 --- a/src/main/java/com/labsynch/labseer/api/ApiExperimentController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiExperimentController.java @@ -15,7 +15,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; @@ -1383,7 +1383,7 @@ public ResponseEntity jsonFindExperimentsByCodeNameEqualsRoute Experiment experiment; try{ experiment = Experiment.findExperimentsByCodeNameEquals(codeName).getSingleResult(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ return new ResponseEntity(headers, HttpStatus.NOT_FOUND); } if (with != null) { @@ -1416,7 +1416,7 @@ public ResponseEntity findExperimentsByCodeNames(@RequestBody Collection foundExperiments; try{ foundExperiments = experimentService.findExperimentsByCodeNames(codeNames); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ return new ResponseEntity(headers, HttpStatus.NOT_FOUND); } if (with != null) { diff --git a/src/main/java/com/labsynch/labseer/api/ApiProtocolController.java b/src/main/java/com/labsynch/labseer/api/ApiProtocolController.java index e0bffde7a..ad6daf69e 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiProtocolController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiProtocolController.java @@ -15,7 +15,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; @@ -332,7 +332,7 @@ public ResponseEntity jsonFindProtocolsByCodeNameEqualsRoute(@ Protocol protocol; try{ protocol = Protocol.findProtocolsByCodeNameEquals(codeName).getSingleResult(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ return new ResponseEntity(headers, HttpStatus.NOT_FOUND); } return new ResponseEntity(protocol.toJsonStub(), headers, HttpStatus.OK); @@ -481,7 +481,7 @@ public ResponseEntity findProtocolsByCodeNames(@RequestBody Li Collection foundProtocols; try{ foundProtocols = protocolService.findProtocolsByCodeNames(codeNames); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ return new ResponseEntity(headers, HttpStatus.NOT_FOUND); } if (with != null) { diff --git a/src/main/java/com/labsynch/labseer/api/ApiStructureController.java b/src/main/java/com/labsynch/labseer/api/ApiStructureController.java index 964096a4e..90ec17317 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiStructureController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiStructureController.java @@ -6,7 +6,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; @@ -113,7 +113,7 @@ public ResponseEntity getByCodeName( try{ ChemStructure structure = ChemStructure.findStructureByCodeName(codeName); return new ResponseEntity(structure.toJson(), headers, HttpStatus.OK); - }catch (EmptyResultDataAccessException empty){ + }catch (NoResultException empty){ return new ResponseEntity(headers, HttpStatus.NOT_FOUND); }catch (Exception e){ logger.error("Caught exception saving structure",e); @@ -139,7 +139,7 @@ public ResponseEntity renderStructureByCodeName(@RequestParam(value="cod try{ byte[] image = structureService.renderStructureByCodeName(codeName, height, width, format); return new ResponseEntity(image, headers, HttpStatus.OK); - }catch (EmptyResultDataAccessException empty){ + }catch (NoResultException empty){ return new ResponseEntity(headers, HttpStatus.NOT_FOUND); }catch (Exception e){ logger.error("Caught exception in renderStructureByCodeName",e); @@ -164,7 +164,7 @@ public ResponseEntity renderStructureByLsThingCodeName(@RequestParam(val try{ byte[] image = lsThingService.renderStructureByLsThingCodeName(codeName, height, width, format); return new ResponseEntity(image, headers, HttpStatus.OK); - }catch (EmptyResultDataAccessException empty){ + }catch (NoResultException empty){ return new ResponseEntity(headers, HttpStatus.NOT_FOUND); }catch (NotFoundException notFound){ return new ResponseEntity(headers, HttpStatus.NOT_FOUND); @@ -287,7 +287,7 @@ public ResponseEntity convertSmilesToMol( try{ String molStructure = structureService.convertSmilesToMol(smiles); return new ResponseEntity(molStructure, headers, HttpStatus.OK); - }catch (EmptyResultDataAccessException empty){ + }catch (NoResultException empty){ return new ResponseEntity(headers, HttpStatus.NOT_FOUND); }catch (Exception e){ logger.error("Caught exception converting smiles to MOL",e); @@ -305,7 +305,7 @@ public ResponseEntity cleanMolStructure( try{ String cleanedMolStructure = structureService.cleanMolStructure(molStructure); return new ResponseEntity(cleanedMolStructure, headers, HttpStatus.OK); - }catch (EmptyResultDataAccessException empty){ + }catch (NoResultException empty){ return new ResponseEntity(headers, HttpStatus.NOT_FOUND); }catch (Exception e){ logger.error("Caught exception cleaning MOL structure",e); diff --git a/src/main/java/com/labsynch/labseer/api/ApiSubjectController.java b/src/main/java/com/labsynch/labseer/api/ApiSubjectController.java index f13333a5b..00b3cd546 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiSubjectController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiSubjectController.java @@ -11,7 +11,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; @@ -199,7 +199,7 @@ public ResponseEntity updateFromJson(@RequestBody String json) { Subject subject = Subject.fromJsonToSubject(json); try{ Subject foundSubject = Subject.findSubject(subject.getId()); - }catch(EmptyResultDataAccessException e){ + }catch(NoResultException e){ return new ResponseEntity(headers, HttpStatus.NOT_FOUND); } subject = subjectService.updateSubject(subject); @@ -214,7 +214,7 @@ public ResponseEntity updateFromJsonArray(@RequestBody String json) { for (Subject subject: Subject.fromJsonArrayToSubjects(json)) { try{ Subject foundSubject = Subject.findSubject(subject.getId()); - }catch(EmptyResultDataAccessException e){ + }catch(NoResultException e){ return new ResponseEntity(headers, HttpStatus.NOT_FOUND); } updatedSubjects.add(subjectService.updateSubject(subject)); diff --git a/src/main/java/com/labsynch/labseer/api/ApiValueKindController.java b/src/main/java/com/labsynch/labseer/api/ApiValueKindController.java index 33775c791..443970edb 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiValueKindController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiValueKindController.java @@ -6,7 +6,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; @@ -38,7 +38,7 @@ public ResponseEntity getOrCreateValueKinds(@RequestBody String json ){ ValueType valueType; try{ valueType = ValueType.findValueTypesByTypeNameEquals(lsType).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ valueType = new ValueType(); valueType.setTypeName(lsType); valueType.persist(); @@ -47,7 +47,7 @@ public ResponseEntity getOrCreateValueKinds(@RequestBody String json ){ try{ valueKind = ValueKind.findValueKindsByKindNameEqualsAndLsType(lsKind, valueType).getSingleResult(); valueKinds.add(valueKind); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ valueKind = new ValueKind(); valueKind.setKindName(lsKind); valueKind.setLsType(valueType); diff --git a/src/main/java/com/labsynch/labseer/domain/ContainerKind.java b/src/main/java/com/labsynch/labseer/domain/ContainerKind.java index 634402fff..290b000b6 100755 --- a/src/main/java/com/labsynch/labseer/domain/ContainerKind.java +++ b/src/main/java/com/labsynch/labseer/domain/ContainerKind.java @@ -2,6 +2,7 @@ import javax.persistence.Column; import javax.persistence.EntityManager; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.PersistenceContext; import javax.validation.constraints.NotNull; @@ -22,6 +23,7 @@ public class ContainerKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private ContainerType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/ExperimentKind.java b/src/main/java/com/labsynch/labseer/domain/ExperimentKind.java index 223682120..f78218bbc 100755 --- a/src/main/java/com/labsynch/labseer/domain/ExperimentKind.java +++ b/src/main/java/com/labsynch/labseer/domain/ExperimentKind.java @@ -7,6 +7,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.PersistenceContext; import javax.persistence.SequenceGenerator; @@ -28,6 +29,7 @@ public class ExperimentKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private ExperimentType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/InteractionKind.java b/src/main/java/com/labsynch/labseer/domain/InteractionKind.java index 121b2805b..709c17fc3 100755 --- a/src/main/java/com/labsynch/labseer/domain/InteractionKind.java +++ b/src/main/java/com/labsynch/labseer/domain/InteractionKind.java @@ -7,6 +7,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.PersistenceContext; import javax.persistence.SequenceGenerator; @@ -33,6 +34,7 @@ public class InteractionKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private InteractionType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/ItxLsThingLsThing.java b/src/main/java/com/labsynch/labseer/domain/ItxLsThingLsThing.java index e624137b0..438933142 100644 --- a/src/main/java/com/labsynch/labseer/domain/ItxLsThingLsThing.java +++ b/src/main/java/com/labsynch/labseer/domain/ItxLsThingLsThing.java @@ -20,7 +20,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.roo.addon.javabean.RooJavaBean; import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord; import org.springframework.roo.addon.json.RooJson; @@ -347,7 +347,7 @@ public int retrieveOrder() { int order; try { order = q.getSingleResult(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ order = -1; } return order; diff --git a/src/main/java/com/labsynch/labseer/domain/LabelKind.java b/src/main/java/com/labsynch/labseer/domain/LabelKind.java index 7bb4a1288..aeeb614f1 100755 --- a/src/main/java/com/labsynch/labseer/domain/LabelKind.java +++ b/src/main/java/com/labsynch/labseer/domain/LabelKind.java @@ -8,6 +8,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.PersistenceContext; import javax.persistence.SequenceGenerator; @@ -34,6 +35,7 @@ public class LabelKind { @ManyToOne + @JoinColumn(name = "ls_type") private LabelType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/Lot.java b/src/main/java/com/labsynch/labseer/domain/Lot.java index 4becb78ea..4e542a07f 100755 --- a/src/main/java/com/labsynch/labseer/domain/Lot.java +++ b/src/main/java/com/labsynch/labseer/domain/Lot.java @@ -68,22 +68,18 @@ public class Lot { @Column(unique = true) @NotNull @Size(max = 255) - @org.hibernate.annotations.Index(name = "Lot_corpName_IDX") private String corpName; - @org.hibernate.annotations.Index(name = "Lot_lotNumber_IDX") private Integer lotNumber; private Double lotMolWeight; @Temporal(TemporalType.TIMESTAMP) @DateTimeFormat(style = "S-") - @org.hibernate.annotations.Index(name = "Lot_SynthDate_IDX") private Date synthesisDate; @Temporal(TemporalType.TIMESTAMP) @DateTimeFormat(style = "S-") - @org.hibernate.annotations.Index(name = "Lot_RegDate_IDX") private Date registrationDate; private String registeredBy; @@ -95,14 +91,12 @@ public class Lot { private String modifiedBy; @Size(max = 255) - @org.hibernate.annotations.Index(name = "Lot_Barcode_IDX") private String barcode; @Size(max = 255) private String color; @Size(max = 255) - @org.hibernate.annotations.Index(name = "Lot_Notebook_IDX") private String notebookPage; private Double amount; @@ -136,25 +130,22 @@ public class Lot { @Column(columnDefinition="text") private String comments; - @org.hibernate.annotations.Index(name = "Lot_Virtual_IDX") private Boolean isVirtual; private Boolean ignore; @ManyToOne - @org.hibernate.annotations.Index(name = "Lot_PhysicalState_IDX") private PhysicalState physicalState; @ManyToOne - @org.hibernate.annotations.Index(name = "Lot_Vendor_IDX") private Vendor vendor; @Size(max = 255) - private String vendorID; + @Column(name = "vendorid") + private String vendorId; @ManyToOne - @org.hibernate.annotations.Index(name = "Lot_SaltForm_IDX") private SaltForm saltForm; @OneToMany(cascade = CascadeType.REMOVE, mappedBy = "lot", fetch = FetchType.LAZY) diff --git a/src/main/java/com/labsynch/labseer/domain/Lot_Roo_JavaBean.aj b/src/main/java/com/labsynch/labseer/domain/Lot_Roo_JavaBean.aj index 0f8d33bfa..128da2cd4 100644 --- a/src/main/java/com/labsynch/labseer/domain/Lot_Roo_JavaBean.aj +++ b/src/main/java/com/labsynch/labseer/domain/Lot_Roo_JavaBean.aj @@ -254,12 +254,12 @@ privileged aspect Lot_Roo_JavaBean { this.vendor = vendor; } - public String Lot.getVendorID() { - return this.vendorID; + public String Lot.getVendorId() { + return this.vendorId; } - public void Lot.setVendorID(String vendorID) { - this.vendorID = vendorID; + public void Lot.setVendorId(String vendorId) { + this.vendorId = vendorId; } public Set Lot.getFileLists() { diff --git a/src/main/java/com/labsynch/labseer/domain/Lot_Roo_Jpa_ActiveRecord.aj b/src/main/java/com/labsynch/labseer/domain/Lot_Roo_Jpa_ActiveRecord.aj index e69a89daf..8ca98a622 100644 --- a/src/main/java/com/labsynch/labseer/domain/Lot_Roo_Jpa_ActiveRecord.aj +++ b/src/main/java/com/labsynch/labseer/domain/Lot_Roo_Jpa_ActiveRecord.aj @@ -14,7 +14,7 @@ privileged aspect Lot_Roo_Jpa_ActiveRecord { @PersistenceContext transient EntityManager Lot.entityManager; - public static final List Lot.fieldNames4OrderClauseFilter = java.util.Arrays.asList("logger", "asDrawnStruct", "lotAsDrawnCdId", "buid", "corpName", "lotNumber", "lotMolWeight", "synthesisDate", "registrationDate", "registeredBy", "modifiedDate", "modifiedBy", "barcode", "color", "notebookPage", "amount", "amountUnits", "solutionAmount", "solutionAmountUnits", "supplier", "supplierID", "purity", "purityOperator", "purityMeasuredBy", "chemist", "percentEE", "comments", "isVirtual", "ignore", "physicalState", "vendor", "vendorID", "saltForm", "fileLists", "retain", "retainUnits", "retainLocation", "meltingPoint", "boilingPoint", "supplierLot", "project", "parent", "bulkLoadFile", "lambda", "absorbance", "stockSolvent", "stockLocation", "observedMassOne", "observedMassTwo", "tareWeight", "tareWeightUnits", "totalAmountStored", "totalAmountStoredUnits", "lotAliases", "storageLocation"); + public static final List Lot.fieldNames4OrderClauseFilter = java.util.Arrays.asList("logger", "asDrawnStruct", "lotAsDrawnCdId", "buid", "corpName", "lotNumber", "lotMolWeight", "synthesisDate", "registrationDate", "registeredBy", "modifiedDate", "modifiedBy", "barcode", "color", "notebookPage", "amount", "amountUnits", "solutionAmount", "solutionAmountUnits", "supplier", "supplierID", "purity", "purityOperator", "purityMeasuredBy", "chemist", "percentEE", "comments", "isVirtual", "ignore", "physicalState", "vendor", "vendorId", "saltForm", "fileLists", "retain", "retainUnits", "retainLocation", "meltingPoint", "boilingPoint", "supplierLot", "project", "parent", "bulkLoadFile", "lambda", "absorbance", "stockSolvent", "stockLocation", "observedMassOne", "observedMassTwo", "tareWeight", "tareWeightUnits", "totalAmountStored", "totalAmountStoredUnits", "lotAliases", "storageLocation"); public static final EntityManager Lot.entityManager() { EntityManager em = new Lot().entityManager; diff --git a/src/main/java/com/labsynch/labseer/domain/LsRole.java b/src/main/java/com/labsynch/labseer/domain/LsRole.java index cb82536ef..1a10bf346 100755 --- a/src/main/java/com/labsynch/labseer/domain/LsRole.java +++ b/src/main/java/com/labsynch/labseer/domain/LsRole.java @@ -52,7 +52,7 @@ public class LsRole { @Size(max = 200) private String roleDescription; - @Column(unique = true) + // @Column(unique = true) @Size(max = 255) private String lsTypeAndKind; diff --git a/src/main/java/com/labsynch/labseer/domain/OperatorKind.java b/src/main/java/com/labsynch/labseer/domain/OperatorKind.java index 7bb50d7ee..fef7cc6e8 100755 --- a/src/main/java/com/labsynch/labseer/domain/OperatorKind.java +++ b/src/main/java/com/labsynch/labseer/domain/OperatorKind.java @@ -8,6 +8,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.PersistenceContext; import javax.persistence.SequenceGenerator; @@ -30,6 +31,7 @@ public class OperatorKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private OperatorType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/ProtocolKind.java b/src/main/java/com/labsynch/labseer/domain/ProtocolKind.java index 41e7b39ee..e5276f596 100755 --- a/src/main/java/com/labsynch/labseer/domain/ProtocolKind.java +++ b/src/main/java/com/labsynch/labseer/domain/ProtocolKind.java @@ -8,6 +8,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.PersistenceContext; import javax.persistence.SequenceGenerator; @@ -40,6 +41,7 @@ public class ProtocolKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private ProtocolType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/RoleKind.java b/src/main/java/com/labsynch/labseer/domain/RoleKind.java index 68e2bb1a7..85627bcdd 100644 --- a/src/main/java/com/labsynch/labseer/domain/RoleKind.java +++ b/src/main/java/com/labsynch/labseer/domain/RoleKind.java @@ -1,6 +1,7 @@ package com.labsynch.labseer.domain; import javax.persistence.Column; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; @@ -21,6 +22,7 @@ public class RoleKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private RoleType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/StateKind.java b/src/main/java/com/labsynch/labseer/domain/StateKind.java index 8df0094c2..eea686973 100755 --- a/src/main/java/com/labsynch/labseer/domain/StateKind.java +++ b/src/main/java/com/labsynch/labseer/domain/StateKind.java @@ -8,6 +8,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.PersistenceContext; import javax.persistence.SequenceGenerator; @@ -34,6 +35,7 @@ public class StateKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private StateType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/ThingKind.java b/src/main/java/com/labsynch/labseer/domain/ThingKind.java index 47e6f1577..7c3060909 100755 --- a/src/main/java/com/labsynch/labseer/domain/ThingKind.java +++ b/src/main/java/com/labsynch/labseer/domain/ThingKind.java @@ -8,6 +8,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.PersistenceContext; import javax.persistence.SequenceGenerator; @@ -34,6 +35,7 @@ public class ThingKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private ThingType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/UnitKind.java b/src/main/java/com/labsynch/labseer/domain/UnitKind.java index ca84c52cf..bd737149d 100755 --- a/src/main/java/com/labsynch/labseer/domain/UnitKind.java +++ b/src/main/java/com/labsynch/labseer/domain/UnitKind.java @@ -8,6 +8,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.PersistenceContext; import javax.persistence.SequenceGenerator; @@ -30,6 +31,7 @@ public class UnitKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private UnitType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/ValueKind.java b/src/main/java/com/labsynch/labseer/domain/ValueKind.java index 3052c7855..2c3e20f05 100755 --- a/src/main/java/com/labsynch/labseer/domain/ValueKind.java +++ b/src/main/java/com/labsynch/labseer/domain/ValueKind.java @@ -8,6 +8,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.PersistenceContext; import javax.persistence.SequenceGenerator; @@ -34,6 +35,7 @@ public class ValueKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private ValueType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/ValueType.java b/src/main/java/com/labsynch/labseer/domain/ValueType.java index c4a4cf85d..3b181f95d 100755 --- a/src/main/java/com/labsynch/labseer/domain/ValueType.java +++ b/src/main/java/com/labsynch/labseer/domain/ValueType.java @@ -4,10 +4,12 @@ import javax.persistence.Column; import javax.persistence.Entity; +import javax.persistence.EntityManager; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.SequenceGenerator; +import javax.persistence.TypedQuery; import javax.persistence.Version; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; @@ -33,9 +35,17 @@ public class ValueType { @Size(max = 64) private String typeName; + public static TypedQuery findValueTypesByTypeNameEquals(String typeName) { + if (typeName == null || typeName.length() == 0) throw new IllegalArgumentException("The typeName argument is required"); + EntityManager em = ValueType.entityManager(); + TypedQuery q = em.createQuery("SELECT o FROM ValueType AS o WHERE o.typeName = :typeName", ValueType.class); + q.setParameter("typeName", typeName); + return q; + } + public static ValueType getOrCreate(String name) { ValueType lsType = null; - List lsTypes = ValueType.findValueTypesByTypeNameEquals(name).getResultList(); + List lsTypes = findValueTypesByTypeNameEquals(name).getResultList(); if (lsTypes.size() == 0) { lsType = new ValueType(); lsType.setTypeName(name); diff --git a/src/main/java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj b/src/main/java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj index 419458901..178503365 100755 --- a/src/main/java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj +++ b/src/main/java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj @@ -16,14 +16,7 @@ privileged aspect ValueType_Roo_Finder { q.setParameter("typeName", typeName); return ((Long) q.getSingleResult()); } - - public static TypedQuery ValueType.findValueTypesByTypeNameEquals(String typeName) { - if (typeName == null || typeName.length() == 0) throw new IllegalArgumentException("The typeName argument is required"); - EntityManager em = ValueType.entityManager(); - TypedQuery q = em.createQuery("SELECT o FROM ValueType AS o WHERE o.typeName = :typeName", ValueType.class); - q.setParameter("typeName", typeName); - return q; - } + public static TypedQuery ValueType.findValueTypesByTypeNameEquals(String typeName, String sortFieldName, String sortOrder) { if (typeName == null || typeName.length() == 0) throw new IllegalArgumentException("The typeName argument is required"); diff --git a/src/main/java/com/labsynch/labseer/dto/BatchCodeDependencyDTO.java b/src/main/java/com/labsynch/labseer/dto/BatchCodeDependencyDTO.java index 0c83e02ff..f8bd830d9 100644 --- a/src/main/java/com/labsynch/labseer/dto/BatchCodeDependencyDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/BatchCodeDependencyDTO.java @@ -13,7 +13,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.roo.addon.javabean.RooJavaBean; import org.springframework.roo.addon.json.RooJson; diff --git a/src/main/java/com/labsynch/labseer/dto/BulkLoadPropertiesDTO.java b/src/main/java/com/labsynch/labseer/dto/BulkLoadPropertiesDTO.java index 264cf89a1..99ff97453 100644 --- a/src/main/java/com/labsynch/labseer/dto/BulkLoadPropertiesDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/BulkLoadPropertiesDTO.java @@ -13,7 +13,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.roo.addon.javabean.RooJavaBean; import org.springframework.roo.addon.json.RooJson; @@ -106,7 +106,7 @@ public void applyTemplateMappings(String templateName, String userName) { BulkLoadTemplate foundTemplate = null; try{ foundTemplate = BulkLoadTemplate.findBulkLoadTemplatesByTemplateNameEqualsAndRecordedByEquals(templateName, userName).getSingleResult(); - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ logger.error("Template name: "+templateName+" with userName: "+userName+" could not be found."); return; } diff --git a/src/main/java/com/labsynch/labseer/dto/BulkLoadSDFValidationPropertiesResponseDTO.java b/src/main/java/com/labsynch/labseer/dto/BulkLoadSDFValidationPropertiesResponseDTO.java index b091b3c9d..b33a946ff 100644 --- a/src/main/java/com/labsynch/labseer/dto/BulkLoadSDFValidationPropertiesResponseDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/BulkLoadSDFValidationPropertiesResponseDTO.java @@ -13,7 +13,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.roo.addon.javabean.RooJavaBean; import org.springframework.roo.addon.json.RooJson; diff --git a/src/main/java/com/labsynch/labseer/dto/BulkLoadTemplateDTO.java b/src/main/java/com/labsynch/labseer/dto/BulkLoadTemplateDTO.java index 485635325..ca21c7333 100644 --- a/src/main/java/com/labsynch/labseer/dto/BulkLoadTemplateDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/BulkLoadTemplateDTO.java @@ -13,7 +13,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.roo.addon.javabean.RooJavaBean; import org.springframework.roo.addon.json.RooJson; diff --git a/src/main/java/com/labsynch/labseer/dto/CurveFitDTO.java b/src/main/java/com/labsynch/labseer/dto/CurveFitDTO.java index 9fb4b8d2b..1ba1ae7fb 100644 --- a/src/main/java/com/labsynch/labseer/dto/CurveFitDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/CurveFitDTO.java @@ -17,7 +17,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.roo.addon.javabean.RooJavaBean; import org.springframework.roo.addon.json.RooJson; import org.springframework.roo.addon.tostring.RooToString; @@ -540,7 +540,7 @@ public static void updateFitData( Collection curveFitDTOs) { oldState.setIgnored(true); oldState.merge(); // oldState.flush(); - } catch(EmptyResultDataAccessException e) { + } catch(NoResultException e) { logger.debug("Old state of typekind data/dose response not found for AG Code " + curveFitDTO.getAnalysisGroupCode() + " , creating new one"); } AnalysisGroupState newState = createCurveFitState(analysisGroup.getId(), "data", "dose response", curveFitDTO.getRecordedBy(), curveFitDTO.getLsTransaction()); @@ -945,7 +945,7 @@ public static String findFirstRenderingHint(List curveIds) { if (!newRenderingHint.equals(renderingHint)) logger.debug("Changing rendering hint from: " + renderingHint + " to: " + newRenderingHint); renderingHint = newRenderingHint; } - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ logger.warn("No rendering hint found for curve Id: " + curveId); } } diff --git a/src/main/java/com/labsynch/labseer/dto/FlagWellDTO.java b/src/main/java/com/labsynch/labseer/dto/FlagWellDTO.java index d7a96ec68..2cf197d90 100644 --- a/src/main/java/com/labsynch/labseer/dto/FlagWellDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/FlagWellDTO.java @@ -14,7 +14,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.roo.addon.javabean.RooJavaBean; import org.springframework.roo.addon.json.RooJson; import org.springframework.roo.addon.tostring.RooToString; @@ -141,7 +141,7 @@ public static void updateWellFlags( Collection flagWellDTOs) { oldAlgorithmFlagState.merge(); // oldAlgorithmFlagState.flush(); logger.debug("Old algorithm flag state ignored."); - }catch(EmptyResultDataAccessException e) { + }catch(NoResultException e) { logger.debug("Old state of typekind data/auto flag not found for Subject " + subject.getCodeName() + " , creating new one"); } SubjectState newAlgorithmState = createWellFlagState(subject.getId(), "data", "auto flag", recordedBy, lsTransaction); @@ -155,7 +155,7 @@ public static void updateWellFlags( Collection flagWellDTOs) { oldPreprocessFlagState.merge(); // oldPreprocessFlagState.flush(); logger.debug("Old preprocess flag state ignored."); - }catch(EmptyResultDataAccessException e) { + }catch(NoResultException e) { logger.debug("Old state of typekind data/preprocess flag not found for Subject " + subject.getCodeName() + " , creating new one"); } SubjectState newPreprocessState = createWellFlagState(subject.getId(), "data", "preprocess flag", recordedBy, lsTransaction); @@ -169,7 +169,7 @@ public static void updateWellFlags( Collection flagWellDTOs) { oldUserFlagState.merge(); // oldUserFlagState.flush(); logger.debug("Old user flag state ignored."); - }catch(EmptyResultDataAccessException e) { + }catch(NoResultException e) { logger.debug("Old state of typekind data/user flag not found for Subject " + subject.getCodeName() + " , creating new one"); } SubjectState newUserState = createWellFlagState(subject.getId(), "data", "user flag", recordedBy, lsTransaction); @@ -197,7 +197,7 @@ public static void updateWellFlags( Collection flagWellDTOs) { oldState.merge(); // oldState.flush(); logger.debug("Old TreatmentGroupState ignored."); - }catch(EmptyResultDataAccessException e){ + }catch(NoResultException e){ logger.debug("No state data/results found. Creating a new state."); } TreatmentGroupState newState = createResultsTreatmentGroupState(treatmentGroup.getId(), "data", "results", recordedBy, lsTransaction); diff --git a/src/main/java/com/labsynch/labseer/dto/KiCurveFitDTO.java b/src/main/java/com/labsynch/labseer/dto/KiCurveFitDTO.java index 9dd643904..f94543333 100644 --- a/src/main/java/com/labsynch/labseer/dto/KiCurveFitDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/KiCurveFitDTO.java @@ -16,7 +16,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.roo.addon.javabean.RooJavaBean; import org.springframework.roo.addon.json.RooJson; import org.springframework.roo.addon.tostring.RooToString; @@ -452,7 +452,7 @@ public static void updateFitData( Collection curveFitDTOs) { oldState.setIgnored(true); oldState.merge(); // oldState.flush(); - } catch(EmptyResultDataAccessException e) { + } catch(NoResultException e) { logger.debug("Old state of typekind data/dose response not found for AG Code " + curveFitDTO.getAnalysisGroupCode() + " , creating new one"); } AnalysisGroupState newState = createCurveFitState(analysisGroup.getId(), "data", "dose response", curveFitDTO.getRecordedBy(), curveFitDTO.getLsTransaction()); diff --git a/src/main/java/com/labsynch/labseer/dto/LotAliasDTO.java b/src/main/java/com/labsynch/labseer/dto/LotAliasDTO.java index 402cbd10c..ef7224374 100644 --- a/src/main/java/com/labsynch/labseer/dto/LotAliasDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/LotAliasDTO.java @@ -3,7 +3,7 @@ import java.util.Collection; import java.util.HashSet; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.roo.addon.javabean.RooJavaBean; import org.springframework.roo.addon.json.RooJson; import org.springframework.roo.addon.tostring.RooToString; @@ -46,7 +46,7 @@ public static LotAliasDTO getLotByAlias(LotAliasDTO lotAliasDTO) { LotAlias lotAlias; try { lotAlias = LotAlias.findLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(lotAliasDTO.getAliasName(), lotAliasDTO.getLsType(), lotAliasDTO.getLsKind()).getSingleResult(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ lotAlias = null; } return new LotAliasDTO(lotAlias); diff --git a/src/main/java/com/labsynch/labseer/dto/LotDTO.java b/src/main/java/com/labsynch/labseer/dto/LotDTO.java index 0acb4d760..f810d1c03 100755 --- a/src/main/java/com/labsynch/labseer/dto/LotDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/LotDTO.java @@ -78,7 +78,7 @@ public class LotDTO { private Double totalAmountStored; private String totalAmountStoredUnitsCode; private String vendorCode; - private String vendorID; + private String vendorId; private String saltFormCorpName; private String casNumber; private String saltAbbrevs; diff --git a/src/main/java/com/labsynch/labseer/dto/LotDTO_Roo_JavaBean.aj b/src/main/java/com/labsynch/labseer/dto/LotDTO_Roo_JavaBean.aj index 20ab5d48c..1934f9006 100644 --- a/src/main/java/com/labsynch/labseer/dto/LotDTO_Roo_JavaBean.aj +++ b/src/main/java/com/labsynch/labseer/dto/LotDTO_Roo_JavaBean.aj @@ -384,12 +384,12 @@ privileged aspect LotDTO_Roo_JavaBean { this.vendorCode = vendorCode; } - public String LotDTO.getVendorID() { - return this.vendorID; + public String LotDTO.getVendorId() { + return this.vendorId; } - public void LotDTO.setVendorID(String vendorID) { - this.vendorID = vendorID; + public void LotDTO.setVendorId(String vendorId) { + this.vendorId = vendorId; } public String LotDTO.getSaltFormCorpName() { diff --git a/src/main/java/com/labsynch/labseer/dto/ParentAliasDTO.java b/src/main/java/com/labsynch/labseer/dto/ParentAliasDTO.java index 0974fadea..34892e83a 100644 --- a/src/main/java/com/labsynch/labseer/dto/ParentAliasDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/ParentAliasDTO.java @@ -4,7 +4,7 @@ import java.util.HashSet; import java.util.List; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.roo.addon.javabean.RooJavaBean; import org.springframework.roo.addon.json.RooJson; import org.springframework.roo.addon.tostring.RooToString; @@ -59,7 +59,7 @@ public static ParentAliasDTO getParentByAlias(ParentAliasDTO parentAliasDTO) { ParentAlias parentAlias; try { parentAlias = ParentAlias.findParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(parentAliasDTO.getAliasName(), parentAliasDTO.getLsType(), parentAliasDTO.getLsKind()).getSingleResult(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ parentAlias = null; } return new ParentAliasDTO(parentAlias); diff --git a/src/main/java/com/labsynch/labseer/dto/PreferredNameDTO.java b/src/main/java/com/labsynch/labseer/dto/PreferredNameDTO.java index 998ce5d52..7c50f855e 100755 --- a/src/main/java/com/labsynch/labseer/dto/PreferredNameDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/PreferredNameDTO.java @@ -12,7 +12,7 @@ import javax.persistence.TemporalType; import javax.validation.constraints.Size; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.transaction.annotation.Transactional; @@ -51,7 +51,7 @@ public static Collection getPreferredNames(Collection getParentPreferredNames(Collection getOrCreateProtocolTypes( ProtocolType protocolType; try{ protocolType = ProtocolType.findProtocolTypesByTypeNameEquals(type.typeName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ protocolType = new ProtocolType(); protocolType.setTypeName(type.typeName); protocolType.persist(); @@ -68,7 +68,7 @@ public static Collection getOrCreateExperimentTypes( ExperimentType experimentType; try{ experimentType = ExperimentType.findExperimentTypesByTypeNameEquals(type.typeName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ experimentType = new ExperimentType(); experimentType.setTypeName(type.typeName); experimentType.persist(); @@ -85,7 +85,7 @@ public static Collection getOrCreateInteractionTypes( InteractionType interactionType; try{ interactionType = InteractionType.findInteractionTypesByTypeNameEquals(type.getTypeName()).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ interactionType = new InteractionType(); interactionType.setTypeName(type.getTypeName()); interactionType.setTypeVerb(type.getTypeVerb()); @@ -103,7 +103,7 @@ public static Collection getOrCreateContainerTypes( ContainerType containerType; try{ containerType = ContainerType.findContainerTypesByTypeNameEquals(type.typeName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ containerType = new ContainerType(); containerType.setTypeName(type.typeName); containerType.persist(); @@ -120,7 +120,7 @@ public static Collection getOrCreateStateTypes( StateType stateType; try{ stateType = StateType.findStateTypesByTypeNameEquals(type.typeName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ stateType = new StateType(); stateType.setTypeName(type.typeName); stateType.persist(); @@ -137,10 +137,11 @@ public static Collection getOrCreateValueTypes( ValueType valueType; try{ valueType = ValueType.findValueTypesByTypeNameEquals(type.typeName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ valueType = new ValueType(); valueType.setTypeName(type.typeName); valueType.persist(); + valueType.flush(); } valueTypes.add(valueType); } @@ -154,7 +155,7 @@ public static Collection getOrCreateLabelTypes( LabelType labelType; try{ labelType = LabelType.findLabelTypesByTypeNameEquals(type.typeName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ labelType = new LabelType(); labelType.setTypeName(type.typeName); labelType.persist(); @@ -171,7 +172,7 @@ public static Collection getOrCreateThingTypes( ThingType thingType; try{ thingType = ThingType.findThingTypesByTypeNameEquals(type.typeName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ thingType = new ThingType(); thingType.setTypeName(type.typeName); thingType.persist(); @@ -188,7 +189,7 @@ public static Collection getOrCreateOperatorTypes( OperatorType operatorType; try{ operatorType = OperatorType.findOperatorTypesByTypeNameEquals(type.typeName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ operatorType = new OperatorType(); operatorType.setTypeName(type.typeName); operatorType.persist(); @@ -205,7 +206,7 @@ public static Collection getOrCreateUnitTypes( UnitType unitType; try{ unitType = UnitType.findUnitTypesByTypeNameEquals(type.typeName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ unitType = new UnitType(); unitType.setTypeName(type.typeName); unitType.persist(); @@ -222,7 +223,7 @@ public static Collection getOrCreateDDictTypes( DDictType dDictType; try{ dDictType = DDictType.findDDictTypesByNameEquals(type.typeName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ dDictType = new DDictType(); dDictType.setName(type.typeName); dDictType.persist(); @@ -239,7 +240,7 @@ public static Collection getOrCreateRoleTypes( RoleType roleType; try{ roleType = RoleType.findRoleTypesByTypeNameEquals(type.typeName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ roleType = new RoleType(); roleType.setTypeName(type.typeName); roleType.persist(); diff --git a/src/main/java/com/labsynch/labseer/dto/TypeKindDTO.java b/src/main/java/com/labsynch/labseer/dto/TypeKindDTO.java index 46b780f37..5a21fd85a 100644 --- a/src/main/java/com/labsynch/labseer/dto/TypeKindDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/TypeKindDTO.java @@ -6,7 +6,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.roo.addon.javabean.RooJavaBean; import org.springframework.roo.addon.json.RooJson; import org.springframework.roo.addon.tostring.RooToString; @@ -73,7 +73,7 @@ public static Collection getOrCreateProtocolKinds( ProtocolKind protocolKind; try{ protocolKind = ProtocolKind.findProtocolKindsByLsTypeEqualsAndKindNameEquals(protocolType, typeKind.kindName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ protocolKind = new ProtocolKind(); protocolKind.setLsType(protocolType); protocolKind.setKindName(typeKind.kindName); @@ -98,7 +98,7 @@ public static Collection getOrCreateExperimentKinds( ExperimentKind experimentKind; try{ experimentKind = ExperimentKind.findExperimentKindsByLsTypeEqualsAndKindNameEquals(experimentType, typeKind.kindName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ experimentKind = new ExperimentKind(); experimentKind.setLsType(experimentType); experimentKind.setKindName(typeKind.kindName); @@ -123,7 +123,7 @@ public static Collection getOrCreateInteractionKinds( InteractionKind interactionKind; try{ interactionKind = InteractionKind.findInteractionKindsByKindNameEqualsAndLsType(typeKind.kindName, interactionType).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ interactionKind = new InteractionKind(); interactionKind.setLsType(interactionType); interactionKind.setKindName(typeKind.kindName); @@ -148,7 +148,7 @@ public static Collection getOrCreateContainerKinds( ContainerKind containerKind; try{ containerKind = ContainerKind.findContainerKindsByKindNameEqualsAndLsType(typeKind.kindName, containerType).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ containerKind = new ContainerKind(); containerKind.setLsType(containerType); containerKind.setKindName(typeKind.kindName); @@ -173,7 +173,7 @@ public static Collection getOrCreateStateKinds( StateKind stateKind; try{ stateKind = StateKind.findStateKindsByKindNameEqualsAndLsType(typeKind.kindName, stateType).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ stateKind = new StateKind(); stateKind.setLsType(stateType); stateKind.setKindName(typeKind.kindName); @@ -198,7 +198,7 @@ public static Collection getOrCreateValueKinds( ValueKind valueKind; try{ valueKind = ValueKind.findValueKindsByKindNameEqualsAndLsType(typeKind.kindName, valueType).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ valueKind = new ValueKind(); valueKind.setLsType(valueType); valueKind.setKindName(typeKind.kindName); @@ -223,7 +223,7 @@ public static Collection getOrCreateLabelKinds( LabelKind labelKind; try{ labelKind = LabelKind.findLabelKindsByKindNameEqualsAndLsType(typeKind.kindName, labelType).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ labelKind = new LabelKind(); labelKind.setLsType(labelType); labelKind.setKindName(typeKind.kindName); @@ -248,7 +248,7 @@ public static Collection getOrCreateThingKinds( ThingKind thingKind; try{ thingKind = ThingKind.findThingKindsByKindNameEqualsAndLsType(typeKind.kindName, thingType).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ thingKind = new ThingKind(); thingKind.setLsType(thingType); thingKind.setKindName(typeKind.kindName); @@ -273,7 +273,7 @@ public static Collection getOrCreateOperatorKinds( OperatorKind operatorKind; try{ operatorKind = OperatorKind.findOperatorKindsByKindNameEqualsAndLsType(typeKind.kindName, operatorType).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ operatorKind = new OperatorKind(); operatorKind.setLsType(operatorType); operatorKind.setKindName(typeKind.kindName); @@ -298,7 +298,7 @@ public static Collection getOrCreateUnitKinds( UnitKind unitKind; try{ unitKind = UnitKind.findUnitKindsByKindNameEqualsAndLsType(typeKind.kindName, unitType).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ unitKind = new UnitKind(); unitKind.setLsType(unitType); unitKind.setKindName(typeKind.kindName); @@ -323,7 +323,7 @@ public static Collection getOrCreateDDictKinds( DDictKind dDictKind; try{ dDictKind = DDictKind.findDDictKindsByLsTypeEqualsAndNameEquals(dDictType.getName(), typeKind.kindName).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ dDictKind = new DDictKind(); dDictKind.setLsType(dDictType.getName()); dDictKind.setName(typeKind.kindName); @@ -348,7 +348,7 @@ public static Collection getOrCreateRoleKinds( RoleKind roleKind; try{ roleKind = RoleKind.findRoleKindsByKindNameEqualsAndLsType(typeKind.kindName, roleType).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ roleKind = new RoleKind(); roleKind.setLsType(roleType); roleKind.setKindName(typeKind.kindName); diff --git a/src/main/java/com/labsynch/labseer/dto/ValueTypeKindDTO.java b/src/main/java/com/labsynch/labseer/dto/ValueTypeKindDTO.java index 2168d3977..b08411885 100755 --- a/src/main/java/com/labsynch/labseer/dto/ValueTypeKindDTO.java +++ b/src/main/java/com/labsynch/labseer/dto/ValueTypeKindDTO.java @@ -1,6 +1,6 @@ package com.labsynch.labseer.dto; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.roo.addon.javabean.RooJavaBean; import org.springframework.roo.addon.json.RooJson; import org.springframework.roo.addon.tostring.RooToString; @@ -39,7 +39,7 @@ public void findValueKind(){ ValueType valueType; try{ valueType = ValueType.findValueTypesByTypeNameEquals(this.lsType).getSingleResult(); - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ this.valueKind = null; valueType = null; } @@ -47,7 +47,7 @@ public void findValueKind(){ try{ valueKind = ValueKind.findValueKindsByKindNameEqualsAndLsType(this.lsKind, valueType).getSingleResult(); this.valueKind = valueKind; - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ this.valueKind = null; } } diff --git a/src/main/java/com/labsynch/labseer/service/ACASAuthenticationProvider.java b/src/main/java/com/labsynch/labseer/service/ACASAuthenticationProvider.java index 516a07113..1bfe0fe75 100755 --- a/src/main/java/com/labsynch/labseer/service/ACASAuthenticationProvider.java +++ b/src/main/java/com/labsynch/labseer/service/ACASAuthenticationProvider.java @@ -21,7 +21,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.security.authentication.BadCredentialsException; import org.springframework.security.authentication.DisabledException; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; @@ -189,7 +189,7 @@ protected UserDetails retrieveUser(String username, throw new BadCredentialsException("Invalid Password"); } - } catch (EmptyResultDataAccessException e) { + } catch (NoResultException e) { throw new BadCredentialsException("Invalid user"); } catch (EntityNotFoundException e) { throw new BadCredentialsException("Invalid user"); diff --git a/src/main/java/com/labsynch/labseer/service/AuthorRoleServiceImpl.java b/src/main/java/com/labsynch/labseer/service/AuthorRoleServiceImpl.java index 78d5e290f..9f4364e3d 100644 --- a/src/main/java/com/labsynch/labseer/service/AuthorRoleServiceImpl.java +++ b/src/main/java/com/labsynch/labseer/service/AuthorRoleServiceImpl.java @@ -7,7 +7,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -52,7 +52,7 @@ public Author syncRoles(Author author, Collection grantedRoles) { LsRole role; try{ role = LsRole.findLsRolesByLsTypeEqualsAndRoleNameEquals("LDAP",roleName).getSingleResult(); - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ role = new LsRole(); role.setRoleName(roleName); role.setLsType("LDAP"); diff --git a/src/main/java/com/labsynch/labseer/service/AuthorServiceImpl.java b/src/main/java/com/labsynch/labseer/service/AuthorServiceImpl.java index 2e29b015e..bd64ba0de 100644 --- a/src/main/java/com/labsynch/labseer/service/AuthorServiceImpl.java +++ b/src/main/java/com/labsynch/labseer/service/AuthorServiceImpl.java @@ -28,7 +28,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.mail.MailSender; import org.springframework.mail.SimpleMailMessage; import org.springframework.security.core.AuthenticationException; @@ -476,7 +476,7 @@ public Author getOrCreateAuthor(Author author) { try{ Author foundAuthor = Author.findAuthorsByUserName(userName).getSingleResult(); return foundAuthor; - }catch(EmptyResultDataAccessException e){ + }catch(NoResultException e){ logger.debug("Author "+userName+" not found. Creating new author"); return saveAuthor(author); } diff --git a/src/main/java/com/labsynch/labseer/service/BulkLoadServiceImpl.java b/src/main/java/com/labsynch/labseer/service/BulkLoadServiceImpl.java index 2c6f688ee..1e6ae223a 100644 --- a/src/main/java/com/labsynch/labseer/service/BulkLoadServiceImpl.java +++ b/src/main/java/com/labsynch/labseer/service/BulkLoadServiceImpl.java @@ -29,7 +29,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.stereotype.Service; import org.springframework.transaction.TransactionSystemException; import org.springframework.transaction.annotation.Transactional; @@ -170,7 +170,7 @@ public BulkLoadTemplate saveBulkLoadTemplate( oldTemplate.update(templateToSave); if (logger.isDebugEnabled()) if (logger.isDebugEnabled()) logger.debug("Updated template to: "+oldTemplate.toJson()); return oldTemplate; - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ if (logger.isDebugEnabled()) logger.debug("Saving new template"); templateToSave.persist(); return templateToSave; @@ -572,7 +572,7 @@ public void writeRegisteredMol(int numRecordsRead, CmpdRegMolecule mol, MetalotR mol.setProperty("Registered Lot Amount Units", ((metalotReturn.getMetalot().getLot().getAmountUnits() == null) ? "" : metalotReturn.getMetalot().getLot().getAmountUnits().getCode())); mol.setProperty("Registered Lot Supplier", ((metalotReturn.getMetalot().getLot().getSupplier() == null) ? "" : metalotReturn.getMetalot().getLot().getSupplier())); mol.setProperty("Registered Lot Supplier ID",((metalotReturn.getMetalot().getLot().getSupplierID() == null) ? "" : metalotReturn.getMetalot().getLot().getSupplierID())); - mol.setProperty("Registered Lot Vendor ID", ((metalotReturn.getMetalot().getLot().getVendorID() == null) ? "" : metalotReturn.getMetalot().getLot().getVendorID())); + mol.setProperty("Registered Lot Vendor ID", ((metalotReturn.getMetalot().getLot().getVendorId() == null) ? "" : metalotReturn.getMetalot().getLot().getVendorId())); if (!parentAliasList.isEmpty()){ for (String alias : parentAliasList){ if (allParentAliases.length() == 0) allParentAliases += alias; @@ -761,7 +761,7 @@ public Parent validateParent(Parent parent, Collection mappings, }else{ throw new DupeLotException("Duplicate lot cannot be registered due to previously existing lot in database.", previousLot.getCorpName()); } - } catch(EmptyResultDataAccessException e){ + } catch(NoResultException e){ logger.debug("Not a duplicate lot corp name"); } } @@ -1005,7 +1005,7 @@ public Lot createLot(CmpdRegMolecule mol, int recordNumber, Collection lotDTOs) if (lotDTO.getStockSolvent() != null) mol.setProperty("Stock Solvent", lotDTO.getStockSolvent()); if (lotDTO.getSupplier() != null) mol.setProperty("Supplier", lotDTO.getSupplier()); if (lotDTO.getSupplierID() != null) mol.setProperty("Supplier ID", lotDTO.getSupplierID()); - if (lotDTO.getVendorID() != null) mol.setProperty("Vendor ID", lotDTO.getVendorID()); + if (lotDTO.getVendorId() != null) mol.setProperty("Vendor ID", lotDTO.getVendorId()); if (lotDTO.getSupplierLot() != null) mol.setProperty("Supplier Lot", lotDTO.getSupplierLot()); if (lotDTO.getSynthesisDate() != null) mol.setProperty("Synthesis Date", dateFormat.format(lotDTO.getSynthesisDate())); if (lotDTO.getTareWeight() != null) mol.setProperty("Tare Weight", lotDTO.getTareWeight().toString()); diff --git a/src/main/java/com/labsynch/labseer/service/GeneThingServiceImpl.java b/src/main/java/com/labsynch/labseer/service/GeneThingServiceImpl.java index f6fa77dd8..4b3f4154e 100755 --- a/src/main/java/com/labsynch/labseer/service/GeneThingServiceImpl.java +++ b/src/main/java/com/labsynch/labseer/service/GeneThingServiceImpl.java @@ -19,7 +19,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.supercsv.cellprocessor.Optional; @@ -2765,7 +2765,7 @@ public void registerGeneOrthologsFromCSV(String inputFile, String ortCodeName, S try { targetGene = LsThing.findLsThingByLabelText("gene", "entrez gene", "name", "Entrez Gene ID", geneOrthologDTO.getGeneId()).getSingleResult(); logger.info("target gene: " + targetGene.getCodeName()); - } catch (EmptyResultDataAccessException e) { + } catch (NoResultException e) { logger.error("ERROR - did not find a gene with ID: " + geneOrthologDTO.getGeneId()); throw new RuntimeException(); } @@ -2774,7 +2774,7 @@ public void registerGeneOrthologsFromCSV(String inputFile, String ortCodeName, S try { orthologGene = LsThing.findLsThingByLabelText("gene", "entrez gene", "name", "Entrez Gene ID", geneOrthologDTO.getMappedGeneId()).getSingleResult(); logger.info("mapped ortholog gene: " + orthologGene.getCodeName()); - } catch (EmptyResultDataAccessException e) { + } catch (NoResultException e) { logger.error("ERROR - did not find a gene with ID: " + geneOrthologDTO.getMappedGeneId()); throw new RuntimeException(); } diff --git a/src/main/java/com/labsynch/labseer/service/ItxLsThingLsThingServiceImpl.java b/src/main/java/com/labsynch/labseer/service/ItxLsThingLsThingServiceImpl.java index ab2acc6bf..30a35e331 100644 --- a/src/main/java/com/labsynch/labseer/service/ItxLsThingLsThingServiceImpl.java +++ b/src/main/java/com/labsynch/labseer/service/ItxLsThingLsThingServiceImpl.java @@ -18,7 +18,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; diff --git a/src/main/java/com/labsynch/labseer/service/LabelSequenceServiceImpl.java b/src/main/java/com/labsynch/labseer/service/LabelSequenceServiceImpl.java index 25c6a673f..56f13721f 100644 --- a/src/main/java/com/labsynch/labseer/service/LabelSequenceServiceImpl.java +++ b/src/main/java/com/labsynch/labseer/service/LabelSequenceServiceImpl.java @@ -10,7 +10,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -35,7 +35,7 @@ public Collection saveLabelSequenceArray( LabelSequence savedLabelSequence; try{ savedLabelSequence = LabelSequence.findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEquals(labelSequence.getThingTypeAndKind(), labelSequence.getLabelTypeAndKind()).getSingleResult(); - }catch(EmptyResultDataAccessException e){ + }catch(NoResultException e){ savedLabelSequence = labelSequence; savedLabelSequence.save(); } diff --git a/src/main/java/com/labsynch/labseer/service/LsThingServiceImpl.java b/src/main/java/com/labsynch/labseer/service/LsThingServiceImpl.java index 6f88445fe..97a6dedb1 100755 --- a/src/main/java/com/labsynch/labseer/service/LsThingServiceImpl.java +++ b/src/main/java/com/labsynch/labseer/service/LsThingServiceImpl.java @@ -39,7 +39,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -1043,7 +1043,7 @@ public Collection findBatchesByParentEquals(LsThing parent) { Collection batches; try{ batches = LsThing.findFirstLsThingsByItxTypeKindEqualsAndSecondLsThingEquals("instantiates", "batch_parent", parent).getResultList(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ batches = null; } return batches; @@ -1054,7 +1054,7 @@ public Collection findCompositesByComponentEquals(LsThing component) { Collection batches; try{ batches = LsThing.findFirstLsThingsByItxTypeEqualsAndSecondLsThingEquals("incorporates", component).getResultList(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ batches = null; } return batches; @@ -1065,7 +1065,7 @@ public LsThing findParentByBatchEquals(LsThing batch) { LsThing parent; try{ parent = LsThing.findSecondLsThingsByItxTypeKindEqualsAndFirstLsThingEquals("instantiates", "batch_parent", batch).getSingleResult(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ parent = null; } return parent; @@ -1328,12 +1328,12 @@ public Collection findLsThingsByLsTypeAndLsKindAndIncludeIgnored(String if (includeIgnored){ try{ searchResults = LsThing.findLsThingsByLsTypeAndKindEquals(lsType+"_"+lsKind).getResultList(); - } catch (EmptyResultDataAccessException e){} + } catch (NoResultException e){} } else { try{ searchResults = LsThing.findLsThing(lsType, lsKind).getResultList(); - } catch (EmptyResultDataAccessException e){} + } catch (NoResultException e){} } return searchResults; } @@ -1924,7 +1924,7 @@ private void checkLsThingUniqueName(LsThing lsThing) throws UniqueNameException{ Collection foundLsThings = new HashSet(); try{ foundLsThings = LsThing.findLsThingByLabelTextAndLsKind(labelText, lsKind).getResultList(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ //found nothing } if (!foundLsThings.isEmpty()){ diff --git a/src/main/java/com/labsynch/labseer/service/MetalotServiceImpl.java b/src/main/java/com/labsynch/labseer/service/MetalotServiceImpl.java index 4ba860024..0bb296792 100755 --- a/src/main/java/com/labsynch/labseer/service/MetalotServiceImpl.java +++ b/src/main/java/com/labsynch/labseer/service/MetalotServiceImpl.java @@ -583,7 +583,7 @@ public MetalotReturn processAndSave(Metalot metaLot, MetalotReturn mr, ArrayList // oldLot.setObservedMassOne(lot.getObservedMassOne()); oldLot.setObservedMassTwo(lot.getObservedMassTwo()); - oldLot.setVendorID(lot.getVendorID()); + oldLot.setVendorId(lot.getVendorId()); oldLot.setTareWeight(lot.getTareWeight()); oldLot.setTareWeightUnits(lot.getTareWeightUnits()); oldLot.setTotalAmountStored(lot.getTotalAmountStored()); diff --git a/src/main/java/com/labsynch/labseer/utils/BitSetUserType.java b/src/main/java/com/labsynch/labseer/utils/BitSetUserType.java index 9ac6eb7f3..8a0ef335d 100644 --- a/src/main/java/com/labsynch/labseer/utils/BitSetUserType.java +++ b/src/main/java/com/labsynch/labseer/utils/BitSetUserType.java @@ -3,7 +3,7 @@ import java.util.BitSet; import com.vladmihalcea.hibernate.type.ImmutableType; -import org.hibernate.engine.spi.SessionImplementor; +import org.hibernate.engine.spi.SharedSessionContractImplementor; import org.postgresql.util.PGobject; import java.sql.PreparedStatement; @@ -25,13 +25,13 @@ public int[] sqlTypes() { } @Override - public BitSet get(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws SQLException { + public BitSet get(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner) throws SQLException { String stringBits = rs.getString(names[0]); return (stringBits != null) ? SimpleUtil.stringToBitSet(stringBits) : null; } @Override - public void set(PreparedStatement st, BitSet value, int index, SessionImplementor session) throws SQLException { + public void set(PreparedStatement st, BitSet value, int index, SharedSessionContractImplementor session) throws SQLException { if (value == null) { st.setNull(index, Types.OTHER); } else { diff --git a/src/main/java/com/labsynch/labseer/utils/LoadCompoundsUtil.java b/src/main/java/com/labsynch/labseer/utils/LoadCompoundsUtil.java index 6552d6d66..f104a1ac7 100755 --- a/src/main/java/com/labsynch/labseer/utils/LoadCompoundsUtil.java +++ b/src/main/java/com/labsynch/labseer/utils/LoadCompoundsUtil.java @@ -14,7 +14,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.dao.IncorrectResultSizeDataAccessException; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -114,7 +114,7 @@ public void loadCompounds(String inputFileName, String outputFileName){ logger.debug("query chemist = " + chemistCodeName); try{ chemist = Author.findAuthorsByUserName(chemistCodeName).getSingleResult(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ if (chemistCodeName.trim().equalsIgnoreCase("")){ //default set Russell as the chemist chemistCodeName = "rkey"; @@ -138,7 +138,7 @@ public void loadCompounds(String inputFileName, String outputFileName){ Parent parent = null; try{ parent = Parent.findParentsByCorpNameEquals(parentCorpName).getSingleResult(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ logger.debug("create the new parent"); parent = new Parent(); parent.setMolStructure(MoleculeUtil.exportMolAsText(mol, "mol")); @@ -152,7 +152,7 @@ public void loadCompounds(String inputFileName, String outputFileName){ String stereoCategoryCode = MoleculeUtil.getMolProperty(mol, "StereoCategory"); try{ stereoCategory = StereoCategory.findStereoCategorysByCodeEquals(stereoCategoryCode).getSingleResult(); - } catch (EmptyResultDataAccessException e2){ + } catch (NoResultException e2){ logger.error("Did not find the stereoCategory code" + stereoCategoryCode); stereoCategory = StereoCategory.findStereoCategorysByCodeEquals("unknown").getSingleResult(); } @@ -188,7 +188,7 @@ public void loadCompounds(String inputFileName, String outputFileName){ //now cheat to use the code below saltCount = 1; mol.setProperty("RemovedSalts", isotopeAbbrev); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ logger.debug("Did not find the isotope code " + isotopeAbbrev ); } } @@ -205,7 +205,7 @@ public void loadCompounds(String inputFileName, String outputFileName){ isoSalt.setType("salt"); isoSalt.setSalt(salt); isoSalt.setEquivalents(saltCount); - } catch (EmptyResultDataAccessException e2){ + } catch (NoResultException e2){ logger.debug("Did not find the salt code " + saltAbbrev + " Check if it is an isotope."); // check that it is not an isotope try { @@ -213,7 +213,7 @@ public void loadCompounds(String inputFileName, String outputFileName){ isoSalt.setType("isotope"); isoSalt.setIsotope(isotope); isoSalt.setEquivalents(saltCount); - } catch (EmptyResultDataAccessException e3){ + } catch (NoResultException e3){ logger.error("Not an isotope either!!. Did not find the isotope code " + saltAbbrev); saltIsotopeError = true; goodMolToProcess = false; @@ -231,7 +231,7 @@ public void loadCompounds(String inputFileName, String outputFileName){ SaltForm saltForm = null; try{ saltForm = SaltForm.findSaltFormsByCorpNameEquals(saltFormCorpName).getSingleResult(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ logger.debug("new salForm: " + saltFormCorpName); saltForm = new SaltForm(); saltForm.setParent(parent); @@ -263,7 +263,7 @@ public void loadCompounds(String inputFileName, String outputFileName){ try{ lot = Lot.findLotsByCorpNameEquals(lotCorpName).getSingleResult(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ logger.debug("new lot created: " + lotCorpName); lot = new Lot(); lot.setCorpName(lotCorpName); diff --git a/src/main/java/com/labsynch/labseer/utils/LoadFullCompoundsUtil.java b/src/main/java/com/labsynch/labseer/utils/LoadFullCompoundsUtil.java index da158d216..5455e4e09 100644 --- a/src/main/java/com/labsynch/labseer/utils/LoadFullCompoundsUtil.java +++ b/src/main/java/com/labsynch/labseer/utils/LoadFullCompoundsUtil.java @@ -9,7 +9,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -112,7 +112,7 @@ private void loadCompoundsMol(CmpdRegMolecule mol, String outputFileName, HashMa } try{ cmpdChemist = Author.findAuthorsByUserName(chemistCodeName).getSingleResult(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ if (chemistCodeName.trim().equalsIgnoreCase("")){ //default set cchemist as the chemist chemistCodeName = "cchemist"; @@ -155,7 +155,7 @@ private void loadCompoundsMol(CmpdRegMolecule mol, String outputFileName, HashMa StereoCategory stereoCategory = StereoCategory.findStereoCategorysByCodeEquals(stereoCategoryCode).getSingleResult(); logger.info("found the following stereo category " + stereoCategory.toJson()); parent.setStereoCategory(stereoCategory); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ logger.error("Did not find the query stereoCategoryCode: " + stereoCategoryCode); } @@ -179,7 +179,7 @@ private void loadCompoundsMol(CmpdRegMolecule mol, String outputFileName, HashMa try { Vendor vendor = Vendor.findVendorsByCodeEquals(supplierCode).getSingleResult(); lot.setVendor(vendor); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ logger.error("Did not find the query supplierCode: " + supplierCode); } } diff --git a/src/main/java/com/labsynch/labseer/utils/PhysicalNamingStrategyImpl.java b/src/main/java/com/labsynch/labseer/utils/PhysicalNamingStrategyImpl.java new file mode 100644 index 000000000..c50aacd20 --- /dev/null +++ b/src/main/java/com/labsynch/labseer/utils/PhysicalNamingStrategyImpl.java @@ -0,0 +1,27 @@ +package com.labsynch.labseer.utils; + +import org.hibernate.boot.model.naming.Identifier; +import org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl; +import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment; +import java.util.Locale; +public class PhysicalNamingStrategyImpl extends PhysicalNamingStrategyStandardImpl { + @Override + public Identifier toPhysicalTableName(Identifier name, JdbcEnvironment context) { + return new Identifier(addUnderscores(name.getText()), name.isQuoted()); + } + @Override + public Identifier toPhysicalColumnName(Identifier name, JdbcEnvironment context) { + return new Identifier(addUnderscores(name.getText()), name.isQuoted()); + } + protected static String addUnderscores(String name) { + final StringBuilder buf = new StringBuilder(name.replace('.', '_')); + for (int i = 1; i < buf.length() - 1; i++) { + if (Character.isLowerCase(buf.charAt(i - 1)) && + Character.isUpperCase(buf.charAt(i)) && + Character.isLowerCase(buf.charAt(i + 1))) { + buf.insert(i++, '_'); + } + } + return buf.toString().toLowerCase(Locale.ROOT); + } +} \ No newline at end of file diff --git a/src/main/java/com/labsynch/labseer/utils/SecurityUtil.java b/src/main/java/com/labsynch/labseer/utils/SecurityUtil.java index 832c4c0b4..9ab09870d 100755 --- a/src/main/java/com/labsynch/labseer/utils/SecurityUtil.java +++ b/src/main/java/com/labsynch/labseer/utils/SecurityUtil.java @@ -4,7 +4,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.security.core.Authentication; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.context.SecurityContextHolder; @@ -64,7 +64,7 @@ public static Author getLoginUser(){ chemist = Author.findAuthorsByUserName(chemistName).getSingleResult(); userJson = chemist.toJson(); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ logger.error("unable to find the user: " + chemistName); chemist = new Author(); } @@ -82,7 +82,7 @@ public static void updateUserInfo(String loginName) { chemist = Author.findAuthorsByUserName(loginName).getSingleResult(); userJson = chemist.toJson(); logger.debug(userJson); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ logger.debug("did not find the new chemist. create the new entry"); chemist = createUser(loginName); } @@ -97,7 +97,7 @@ public static void updateUserInfo(String loginName, String fullName) { chemist = Author.findAuthorsByUserName(loginName).getSingleResult(); userJson = chemist.toJson(); logger.debug(userJson); - } catch (EmptyResultDataAccessException e){ + } catch (NoResultException e){ logger.debug("did not find the new chemist. create the new entry"); chemist = createUser(loginName, fullName); } diff --git a/src/main/resources/META-INF/persistence.xml b/src/main/resources/META-INF/persistence.xml index 16ea4027a..c66a08125 100755 --- a/src/main/resources/META-INF/persistence.xml +++ b/src/main/resources/META-INF/persistence.xml @@ -15,7 +15,8 @@ - + + @@ -36,4 +37,3 @@ - diff --git a/src/main/resources/META-INF/spring/applicationContext-security.xml b/src/main/resources/META-INF/spring/applicationContext-security.xml index 175bb8bea..68ad77f28 100755 --- a/src/main/resources/META-INF/spring/applicationContext-security.xml +++ b/src/main/resources/META-INF/spring/applicationContext-security.xml @@ -11,7 +11,7 @@ login-page="/login" authentication-success-handler-ref="postSuccessAuthHandler" authentication-failure-url="/login?login_error=t" /> - + diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml index b282fb6bd..8a56c9981 100755 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml @@ -11,6 +11,7 @@ + diff --git a/src/main/webapp/WEB-INF/spring/webmvc-config.xml b/src/main/webapp/WEB-INF/spring/webmvc-config.xml index 8ae4709b5..6c075995b 100755 --- a/src/main/webapp/WEB-INF/spring/webmvc-config.xml +++ b/src/main/webapp/WEB-INF/spring/webmvc-config.xml @@ -80,7 +80,7 @@ - + diff --git a/src/main/webapp/WEB-INF/views/lots/create.jspx b/src/main/webapp/WEB-INF/views/lots/create.jspx index 13272e319..4a096dd2a 100644 --- a/src/main/webapp/WEB-INF/views/lots/create.jspx +++ b/src/main/webapp/WEB-INF/views/lots/create.jspx @@ -33,7 +33,7 @@ - + diff --git a/src/main/webapp/WEB-INF/views/lots/show.jspx b/src/main/webapp/WEB-INF/views/lots/show.jspx index e143d08c2..6368f0e3e 100644 --- a/src/main/webapp/WEB-INF/views/lots/show.jspx +++ b/src/main/webapp/WEB-INF/views/lots/show.jspx @@ -33,7 +33,7 @@ - + diff --git a/src/main/webapp/WEB-INF/views/lots/update.jspx b/src/main/webapp/WEB-INF/views/lots/update.jspx index 733db6b35..12f1d0b7d 100644 --- a/src/main/webapp/WEB-INF/views/lots/update.jspx +++ b/src/main/webapp/WEB-INF/views/lots/update.jspx @@ -33,7 +33,7 @@ - + diff --git a/src/test/java/com/labsynch/labseer/api/ApiContainerControllerTest.java b/src/test/java/com/labsynch/labseer/api/ApiContainerControllerTest.java index 1be9631dd..3b55c7b0a 100644 --- a/src/test/java/com/labsynch/labseer/api/ApiContainerControllerTest.java +++ b/src/test/java/com/labsynch/labseer/api/ApiContainerControllerTest.java @@ -24,7 +24,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.http.MediaType; import org.springframework.mock.web.MockHttpServletResponse; import org.springframework.test.annotation.Rollback; @@ -574,7 +574,7 @@ public void createEmptyPlate() throws Exception{ query.setMaxResults(1); try{ Container definition = query.getSingleResult(); - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ Container definition = Container.fromJsonToContainer("{\"codeName\":\"special-definition-code\",\"deleted\":false,\"id\":null,\"ignored\":false,\"lsKind\":\"plate\",\"lsLabels\":[{\"deleted\":false,\"id\":null,\"ignored\":false,\"labelText\":\"1536\",\"lsKind\":\"common\",\"lsType\":\"name\",\"lsTypeAndKind\":\"name_common\",\"physicallyLabled\":true,\"preferred\":true,\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"version\":null}],\"lsStates\":[{\"deleted\":false,\"id\":null,\"ignored\":false,\"lsKind\":\"format\",\"lsType\":\"constants\",\"lsTypeAndKind\":\"constants_format\",\"lsValues\":[{\"codeTypeAndKind\":\"null_null\",\"deleted\":false,\"id\":null,\"ignored\":false,\"lsKind\":\"columns\",\"lsType\":\"numericValue\",\"lsTypeAndKind\":\"numericValue_columns\",\"numericValue\":48,\"operatorTypeAndKind\":\"null_null\",\"publicData\":true,\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"unitTypeAndKind\":\"null_null\",\"version\":null},{\"codeTypeAndKind\":\"null_null\",\"deleted\":false,\"id\":null,\"ignored\":false,\"lsKind\":\"rows\",\"lsType\":\"numericValue\",\"lsTypeAndKind\":\"numericValue_rows\",\"numericValue\":32,\"operatorTypeAndKind\":\"null_null\",\"publicData\":true,\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"unitTypeAndKind\":\"null_null\",\"version\":null},{\"codeTypeAndKind\":\"null_null\",\"deleted\":false,\"id\":null,\"ignored\":false,\"lsKind\":\"wells\",\"lsType\":\"numericValue\",\"lsTypeAndKind\":\"numericValue_wells\",\"numericValue\":1536,\"operatorTypeAndKind\":\"null_null\",\"publicData\":true,\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"unitTypeAndKind\":\"null_null\",\"version\":null},{\"codeTypeAndKind\":\"null_null\",\"codeValue\":\"A001\",\"deleted\":false,\"id\":null,\"ignored\":false,\"lsKind\":\"subcontainer naming convention\",\"lsType\":\"codeValue\",\"lsTypeAndKind\":\"codeValue_subcontainer naming convention\",\"operatorTypeAndKind\":\"null_null\",\"publicData\":true,\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"unitTypeAndKind\":\"null_null\",\"version\":null}],\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"version\":null}],\"lsType\":\"definition container\",\"lsTypeAndKind\":\"definition container_plate\",\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"version\":null}"); containerService.saveLsContainer(definition); } @@ -1453,7 +1453,7 @@ public void saveAndSearchContainers() throws Exception{ query.setMaxResults(1); try{ Container definition = query.getSingleResult(); - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ Container definition = Container.fromJsonToContainer("{\"codeName\":\"special-definition-code\",\"deleted\":false,\"id\":null,\"ignored\":false,\"lsKind\":\"plate\",\"lsLabels\":[{\"deleted\":false,\"id\":null,\"ignored\":false,\"labelText\":\"1536\",\"lsKind\":\"common\",\"lsType\":\"name\",\"lsTypeAndKind\":\"name_common\",\"physicallyLabled\":true,\"preferred\":true,\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"version\":null}],\"lsStates\":[{\"deleted\":false,\"id\":null,\"ignored\":false,\"lsKind\":\"format\",\"lsType\":\"constants\",\"lsTypeAndKind\":\"constants_format\",\"lsValues\":[{\"codeTypeAndKind\":\"null_null\",\"deleted\":false,\"id\":null,\"ignored\":false,\"lsKind\":\"columns\",\"lsType\":\"numericValue\",\"lsTypeAndKind\":\"numericValue_columns\",\"numericValue\":48,\"operatorTypeAndKind\":\"null_null\",\"publicData\":true,\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"unitTypeAndKind\":\"null_null\",\"version\":null},{\"codeTypeAndKind\":\"null_null\",\"deleted\":false,\"id\":null,\"ignored\":false,\"lsKind\":\"rows\",\"lsType\":\"numericValue\",\"lsTypeAndKind\":\"numericValue_rows\",\"numericValue\":32,\"operatorTypeAndKind\":\"null_null\",\"publicData\":true,\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"unitTypeAndKind\":\"null_null\",\"version\":null},{\"codeTypeAndKind\":\"null_null\",\"deleted\":false,\"id\":null,\"ignored\":false,\"lsKind\":\"wells\",\"lsType\":\"numericValue\",\"lsTypeAndKind\":\"numericValue_wells\",\"numericValue\":1536,\"operatorTypeAndKind\":\"null_null\",\"publicData\":true,\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"unitTypeAndKind\":\"null_null\",\"version\":null},{\"codeTypeAndKind\":\"null_null\",\"codeValue\":\"A001\",\"deleted\":false,\"id\":null,\"ignored\":false,\"lsKind\":\"subcontainer naming convention\",\"lsType\":\"codeValue\",\"lsTypeAndKind\":\"codeValue_subcontainer naming convention\",\"operatorTypeAndKind\":\"null_null\",\"publicData\":true,\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"unitTypeAndKind\":\"null_null\",\"version\":null}],\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"version\":null}],\"lsType\":\"definition container\",\"lsTypeAndKind\":\"definition container_plate\",\"recordedBy\":\"acas\",\"recordedDate\":1456208484968,\"version\":null}"); containerService.saveLsContainer(definition); } diff --git a/src/test/java/com/labsynch/labseer/dto/ValueTypeKindDTOTest.java b/src/test/java/com/labsynch/labseer/dto/ValueTypeKindDTOTest.java index 57faddc62..cb06323c7 100644 --- a/src/test/java/com/labsynch/labseer/dto/ValueTypeKindDTOTest.java +++ b/src/test/java/com/labsynch/labseer/dto/ValueTypeKindDTOTest.java @@ -10,7 +10,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Configurable; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.transaction.annotation.Transactional; diff --git a/src/test/java/com/labsynch/labseer/service/ContainerLSServiceTests.java b/src/test/java/com/labsynch/labseer/service/ContainerLSServiceTests.java index ec68e5145..702e746b2 100755 --- a/src/test/java/com/labsynch/labseer/service/ContainerLSServiceTests.java +++ b/src/test/java/com/labsynch/labseer/service/ContainerLSServiceTests.java @@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Configurable; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.annotation.Rollback; import org.springframework.test.context.ContextConfiguration; @@ -546,14 +546,14 @@ public void createTestContainers(){ //barcode/barcode try{ LabelType labelType = LabelType.findLabelTypesByTypeNameEquals("barcode").getSingleResult(); - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ LabelType labelType = new LabelType(); labelType.setTypeName("barcode"); labelType.persist(); } try{ LabelKind labelKind = LabelKind.findLabelKindsByKindNameEqualsAndLsType("barcode", LabelType.findLabelTypesByTypeNameEquals("barcode").getSingleResult()).getSingleResult(); - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ LabelKind labelKind = new LabelKind(); labelKind.setLsType(LabelType.findLabelTypesByTypeNameEquals("barcode").getSingleResult()); labelKind.setKindName("barcode"); @@ -578,7 +578,7 @@ public void createTestContainers(){ //moved to/plate container try{ InteractionKind itxKind = InteractionKind.findInteractionKindsByKindNameEqualsAndLsType("plate container", InteractionType.findInteractionTypesByTypeNameEquals("moved to").getSingleResult()).getSingleResult(); - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ InteractionKind itxKind = new InteractionKind(); itxKind.setLsType(InteractionType.findInteractionTypesByTypeNameEquals("moved to").getSingleResult()); itxKind.setKindName("plate container"); diff --git a/src/test/java/com/labsynch/labseer/service/CreateProjectsTests.java b/src/test/java/com/labsynch/labseer/service/CreateProjectsTests.java index fc0fe5f5b..0a23f8d46 100755 --- a/src/test/java/com/labsynch/labseer/service/CreateProjectsTests.java +++ b/src/test/java/com/labsynch/labseer/service/CreateProjectsTests.java @@ -16,7 +16,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Configurable; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.transaction.annotation.Transactional; @@ -243,7 +243,7 @@ public void createProjectRoles() { Author jappleseed = null; try{ jappleseed = Author.findAuthorsByUserName("jappleseed").getSingleResult(); - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ jappleseed = new Author(); jappleseed.setFirstName("Johnny"); jappleseed.setLastName("Appleseed"); @@ -256,7 +256,7 @@ public void createProjectRoles() { Author bsplit = null; try{ bsplit = Author.findAuthorsByUserName("bsplit").getSingleResult(); - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ bsplit = new Author(); bsplit.setFirstName("Banana"); bsplit.setLastName("Split"); @@ -272,7 +272,7 @@ public void createProjectRoles() { LsRole appleUser = null; try{ appleUser = LsRole.findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals("Project", appleCodeName, "User").getSingleResult(); - }catch(EmptyResultDataAccessException e){ + }catch(NoResultException e){ appleUser = new LsRole(); appleUser.setLsType("Project"); appleUser.setLsKind(appleCodeName); @@ -282,7 +282,7 @@ public void createProjectRoles() { LsRole appleAdministrator = null; try{ appleAdministrator = LsRole.findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals("Project", appleCodeName, "Administrator").getSingleResult(); - }catch(EmptyResultDataAccessException e){ + }catch(NoResultException e){ appleAdministrator = new LsRole(); appleAdministrator.setLsType("Project"); appleAdministrator.setLsKind(appleCodeName); @@ -292,7 +292,7 @@ public void createProjectRoles() { LsRole bananaUser = null; try{ bananaUser = LsRole.findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals("Project", bananaCodeName, "User").getSingleResult(); - }catch(EmptyResultDataAccessException e){ + }catch(NoResultException e){ bananaUser = new LsRole(); bananaUser.setLsType("Project"); bananaUser.setLsKind(bananaCodeName); @@ -302,7 +302,7 @@ public void createProjectRoles() { LsRole bananaAdministrator = null; try{ bananaAdministrator = LsRole.findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals("Project", bananaCodeName, "Administrator").getSingleResult(); - }catch(EmptyResultDataAccessException e){ + }catch(NoResultException e){ bananaAdministrator = new LsRole(); bananaAdministrator.setLsType("Project"); bananaAdministrator.setLsKind(bananaCodeName); @@ -313,7 +313,7 @@ public void createProjectRoles() { AuthorRole appleUserRole = null; try{ appleUserRole = AuthorRole.findAuthorRolesByRoleEntryAndUserEntry(appleUser, jappleseed).getSingleResult(); - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ appleUserRole = new AuthorRole(); appleUserRole.setRoleEntry(appleUser); appleUserRole.setUserEntry(jappleseed); @@ -322,7 +322,7 @@ public void createProjectRoles() { AuthorRole appleAdministratorRole = null; try{ appleAdministratorRole = AuthorRole.findAuthorRolesByRoleEntryAndUserEntry(appleAdministrator, jappleseed).getSingleResult(); - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ appleAdministratorRole = new AuthorRole(); appleAdministratorRole.setRoleEntry(appleAdministrator); appleAdministratorRole.setUserEntry(jappleseed); @@ -331,7 +331,7 @@ public void createProjectRoles() { AuthorRole bananaUserRole = null; try{ bananaUserRole = AuthorRole.findAuthorRolesByRoleEntryAndUserEntry(bananaUser, bsplit).getSingleResult(); - }catch (EmptyResultDataAccessException e){ + }catch (NoResultException e){ bananaUserRole = new AuthorRole(); bananaUserRole.setRoleEntry(bananaUser); bananaUserRole.setUserEntry(bsplit); diff --git a/src/test/java/com/labsynch/labseer/service/LsThingPreferredIdServiceTests.java b/src/test/java/com/labsynch/labseer/service/LsThingPreferredIdServiceTests.java index 7f29dab8d..067af79d3 100644 --- a/src/test/java/com/labsynch/labseer/service/LsThingPreferredIdServiceTests.java +++ b/src/test/java/com/labsynch/labseer/service/LsThingPreferredIdServiceTests.java @@ -17,7 +17,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Configurable; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.test.annotation.Rollback; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; diff --git a/src/test/java/com/labsynch/labseer/service/LsThingServiceTests.java b/src/test/java/com/labsynch/labseer/service/LsThingServiceTests.java index 31c498284..79614c112 100755 --- a/src/test/java/com/labsynch/labseer/service/LsThingServiceTests.java +++ b/src/test/java/com/labsynch/labseer/service/LsThingServiceTests.java @@ -17,7 +17,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Configurable; -import org.springframework.dao.EmptyResultDataAccessException; +import javax.persistence.NoResultException; import org.springframework.test.annotation.Rollback; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; From d23c5a36132368a6efb1f9b1b335c52a241f3a15 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Tue, 5 Apr 2022 15:32:12 -0700 Subject: [PATCH 04/73] additioinal join columns --- src/main/java/com/labsynch/labseer/domain/CodeKind.java | 2 ++ src/main/java/com/labsynch/labseer/domain/DDictKind.java | 2 ++ src/main/java/com/labsynch/labseer/domain/ParentAliasKind.java | 2 ++ src/main/java/com/labsynch/labseer/domain/UncertaintyKind.java | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/main/java/com/labsynch/labseer/domain/CodeKind.java b/src/main/java/com/labsynch/labseer/domain/CodeKind.java index 4d8f98401..fc7b99e6e 100755 --- a/src/main/java/com/labsynch/labseer/domain/CodeKind.java +++ b/src/main/java/com/labsynch/labseer/domain/CodeKind.java @@ -8,6 +8,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.PersistenceContext; import javax.persistence.SequenceGenerator; @@ -34,6 +35,7 @@ public class CodeKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private CodeType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/DDictKind.java b/src/main/java/com/labsynch/labseer/domain/DDictKind.java index f1fa6b44d..960700565 100644 --- a/src/main/java/com/labsynch/labseer/domain/DDictKind.java +++ b/src/main/java/com/labsynch/labseer/domain/DDictKind.java @@ -8,6 +8,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.PersistenceContext; import javax.persistence.SequenceGenerator; import javax.persistence.Version; @@ -32,6 +33,7 @@ public class DDictKind { private static final Logger logger = LoggerFactory.getLogger(DDictKind.class); @Size(max = 255) + @JoinColumn(name = "ls_type") private String lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/ParentAliasKind.java b/src/main/java/com/labsynch/labseer/domain/ParentAliasKind.java index f84364676..083cd98e1 100644 --- a/src/main/java/com/labsynch/labseer/domain/ParentAliasKind.java +++ b/src/main/java/com/labsynch/labseer/domain/ParentAliasKind.java @@ -1,5 +1,6 @@ package com.labsynch.labseer.domain; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; @@ -17,6 +18,7 @@ public class ParentAliasKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private ParentAliasType lsType; @Size(max = 255) diff --git a/src/main/java/com/labsynch/labseer/domain/UncertaintyKind.java b/src/main/java/com/labsynch/labseer/domain/UncertaintyKind.java index 6e2d0711a..50316cf9e 100755 --- a/src/main/java/com/labsynch/labseer/domain/UncertaintyKind.java +++ b/src/main/java/com/labsynch/labseer/domain/UncertaintyKind.java @@ -1,6 +1,7 @@ package com.labsynch.labseer.domain; import javax.persistence.Column; +import javax.persistence.JoinColumn; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; @@ -18,5 +19,6 @@ public class UncertaintyKind { @NotNull @Column(unique = true) @Size(max = 255) + @JoinColumn(name = "ls_type") private String kindName; } From 388600c344e2d5ebb239334b15298836fc444bb8 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Tue, 5 Apr 2022 15:32:52 -0700 Subject: [PATCH 05/73] Fix login --- .../spring/applicationContext-security.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/resources/META-INF/spring/applicationContext-security.xml b/src/main/resources/META-INF/spring/applicationContext-security.xml index 68ad77f28..c98c6798c 100755 --- a/src/main/resources/META-INF/spring/applicationContext-security.xml +++ b/src/main/resources/META-INF/spring/applicationContext-security.xml @@ -8,7 +8,10 @@ @@ -34,6 +37,15 @@ + + + + + + + + From 68f168cdcbbdf405aa065e984ab5d4936caff92b Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Tue, 5 Apr 2022 15:33:04 -0700 Subject: [PATCH 06/73] Another logger to put into stdout --- src/main/resources/log4j2.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml index 8a56c9981..a72c6e1cc 100755 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml @@ -11,6 +11,7 @@ + From 45a7a8d7fb1e4cba0f357758dd219a7da0f4c793 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Tue, 5 Apr 2022 15:33:22 -0700 Subject: [PATCH 07/73] Add firewall rule to allow doubleslash --- .../com/labsynch/labseer/utils/ACASHttpFirewall.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/main/java/com/labsynch/labseer/utils/ACASHttpFirewall.java diff --git a/src/main/java/com/labsynch/labseer/utils/ACASHttpFirewall.java b/src/main/java/com/labsynch/labseer/utils/ACASHttpFirewall.java new file mode 100644 index 000000000..e421d0c65 --- /dev/null +++ b/src/main/java/com/labsynch/labseer/utils/ACASHttpFirewall.java @@ -0,0 +1,11 @@ +package com.labsynch.labseer.utils; + + +import org.springframework.security.web.firewall.DefaultHttpFirewall; + +public class ACASHttpFirewall extends DefaultHttpFirewall { + ACASHttpFirewall() { + this.setAllowUrlEncodedSlash(true); + } + +} \ No newline at end of file From a6ab7ce6c38b9fa53748db9bcaffd0433f66de04 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Tue, 5 Apr 2022 15:33:42 -0700 Subject: [PATCH 08/73] Fix hql to remove extra slash --- src/main/java/com/labsynch/labseer/utils/SimpleUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/labsynch/labseer/utils/SimpleUtil.java b/src/main/java/com/labsynch/labseer/utils/SimpleUtil.java index bcc858520..0d94f43a9 100644 --- a/src/main/java/com/labsynch/labseer/utils/SimpleUtil.java +++ b/src/main/java/com/labsynch/labseer/utils/SimpleUtil.java @@ -135,7 +135,7 @@ public static Collection splitHqlInClause(EntityManager em, String queryS startIndex=endIndex; } for (String sqlClause : sqlCurveIdMap.keySet()){ - String completeQueryString = queryString + sqlClause + " )"; + String completeQueryString = queryString + sqlClause; Query q = em.createQuery(completeQueryString); String groupName = sqlClause.split(":")[1].replace(")",""); q.setParameter(groupName, sqlCurveIdMap.get(sqlClause)); @@ -168,7 +168,6 @@ public static Query addHqlInClause(EntityManager em, String queryString, String } numClause++; } - queryString = queryString + " )"; Query q = em.createQuery(queryString); for (String sqlClause : sqlCurveIdMap.keySet()){ String groupName = sqlClause.split(":")[1].replace(")",""); From d0cfa7a3c53440c6fd8ac11d31a805e05bca98c6 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Tue, 5 Apr 2022 16:33:33 -0700 Subject: [PATCH 09/73] Remove .m2 addition --- Dockerfile-multistage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile-multistage b/Dockerfile-multistage index d9aac1539..36a2f7df3 100644 --- a/Dockerfile-multistage +++ b/Dockerfile-multistage @@ -14,7 +14,7 @@ FROM dependencies as bbchem FROM dependencies as indigo FROM ${CHEMISTRY_PACKAGE} as compile -COPY .m2 /root/.m2 + ADD pom.xml /src/pom.xml WORKDIR /src RUN mvn dependency:resolve -P ${CHEMISTRY_PACKAGE} From 51506f8d3a9197e31b94a32e19325d241ddeb9b7 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 07:27:07 -0700 Subject: [PATCH 10/73] Update OperatorKind.java --- src/main/java/com/labsynch/labseer/domain/OperatorKind.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/domain/OperatorKind.java b/src/main/java/com/labsynch/labseer/domain/OperatorKind.java index fef7cc6e8..f5b147a57 100755 --- a/src/main/java/com/labsynch/labseer/domain/OperatorKind.java +++ b/src/main/java/com/labsynch/labseer/domain/OperatorKind.java @@ -31,7 +31,7 @@ public class OperatorKind { @NotNull @ManyToOne - @JoinColumn(name = "ls_type") + @JoinColumn(name = "ls_type") private OperatorType lsType; @NotNull From 86818a5e2920d3b0103d53041d3f53e764b0b497 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 07:29:37 -0700 Subject: [PATCH 11/73] Update ExperimentKind.java --- src/main/java/com/labsynch/labseer/domain/ExperimentKind.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/domain/ExperimentKind.java b/src/main/java/com/labsynch/labseer/domain/ExperimentKind.java index f78218bbc..7651011c2 100755 --- a/src/main/java/com/labsynch/labseer/domain/ExperimentKind.java +++ b/src/main/java/com/labsynch/labseer/domain/ExperimentKind.java @@ -29,7 +29,7 @@ public class ExperimentKind { @NotNull @ManyToOne - @JoinColumn(name = "ls_type") + @JoinColumn(name = "ls_type") private ExperimentType lsType; @NotNull From a06f93ba62c8aa8c67968a2e8aa496c40d251229 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 07:29:46 -0700 Subject: [PATCH 12/73] Update InteractionKind.java --- src/main/java/com/labsynch/labseer/domain/InteractionKind.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/domain/InteractionKind.java b/src/main/java/com/labsynch/labseer/domain/InteractionKind.java index 709c17fc3..0de826034 100755 --- a/src/main/java/com/labsynch/labseer/domain/InteractionKind.java +++ b/src/main/java/com/labsynch/labseer/domain/InteractionKind.java @@ -34,7 +34,7 @@ public class InteractionKind { @NotNull @ManyToOne - @JoinColumn(name = "ls_type") + @JoinColumn(name = "ls_type") private InteractionType lsType; @NotNull From 9265054226448efad252cd421aec1415f036b89a Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 07:30:01 -0700 Subject: [PATCH 13/73] Update LabelKind.java --- src/main/java/com/labsynch/labseer/domain/LabelKind.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/domain/LabelKind.java b/src/main/java/com/labsynch/labseer/domain/LabelKind.java index aeeb614f1..9417f431b 100755 --- a/src/main/java/com/labsynch/labseer/domain/LabelKind.java +++ b/src/main/java/com/labsynch/labseer/domain/LabelKind.java @@ -35,7 +35,7 @@ public class LabelKind { @ManyToOne - @JoinColumn(name = "ls_type") + @JoinColumn(name = "ls_type") private LabelType lsType; @NotNull From 0fbf1179672b66edb2852719d89ddaaed2f34303 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 07:31:26 -0700 Subject: [PATCH 14/73] Update LsRole.java --- src/main/java/com/labsynch/labseer/domain/LsRole.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/domain/LsRole.java b/src/main/java/com/labsynch/labseer/domain/LsRole.java index 1a10bf346..53fa753c8 100755 --- a/src/main/java/com/labsynch/labseer/domain/LsRole.java +++ b/src/main/java/com/labsynch/labseer/domain/LsRole.java @@ -52,7 +52,6 @@ public class LsRole { @Size(max = 200) private String roleDescription; - // @Column(unique = true) @Size(max = 255) private String lsTypeAndKind; From 7b2381fc80053429bba631ac1e5ddc11ad8130c2 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 07:31:47 -0700 Subject: [PATCH 15/73] Update ProtocolKind.java --- src/main/java/com/labsynch/labseer/domain/ProtocolKind.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/domain/ProtocolKind.java b/src/main/java/com/labsynch/labseer/domain/ProtocolKind.java index e5276f596..8916519b6 100755 --- a/src/main/java/com/labsynch/labseer/domain/ProtocolKind.java +++ b/src/main/java/com/labsynch/labseer/domain/ProtocolKind.java @@ -41,7 +41,7 @@ public class ProtocolKind { @NotNull @ManyToOne - @JoinColumn(name = "ls_type") + @JoinColumn(name = "ls_type") private ProtocolType lsType; @NotNull From 26ddd3b74bd403e54cdb158f7eaee390c5194c54 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 07:32:56 -0700 Subject: [PATCH 16/73] Update RoleKind.java --- src/main/java/com/labsynch/labseer/domain/RoleKind.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/domain/RoleKind.java b/src/main/java/com/labsynch/labseer/domain/RoleKind.java index 85627bcdd..820ce9b65 100644 --- a/src/main/java/com/labsynch/labseer/domain/RoleKind.java +++ b/src/main/java/com/labsynch/labseer/domain/RoleKind.java @@ -22,7 +22,7 @@ public class RoleKind { @NotNull @ManyToOne - @JoinColumn(name = "ls_type") + @JoinColumn(name = "ls_type") private RoleType lsType; @NotNull From db591cdeafac8997abf18e0034f51df58bcdb1ab Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 07:33:06 -0700 Subject: [PATCH 17/73] Update StateKind.java --- src/main/java/com/labsynch/labseer/domain/StateKind.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/domain/StateKind.java b/src/main/java/com/labsynch/labseer/domain/StateKind.java index eea686973..f2c5e29d1 100755 --- a/src/main/java/com/labsynch/labseer/domain/StateKind.java +++ b/src/main/java/com/labsynch/labseer/domain/StateKind.java @@ -35,7 +35,7 @@ public class StateKind { @NotNull @ManyToOne - @JoinColumn(name = "ls_type") + @JoinColumn(name = "ls_type") private StateType lsType; @NotNull From a079be2d311f1f344335b3b9471673ec5bd1aa03 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 07:33:15 -0700 Subject: [PATCH 18/73] Update ThingKind.java --- src/main/java/com/labsynch/labseer/domain/ThingKind.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/domain/ThingKind.java b/src/main/java/com/labsynch/labseer/domain/ThingKind.java index 7c3060909..d115ab164 100755 --- a/src/main/java/com/labsynch/labseer/domain/ThingKind.java +++ b/src/main/java/com/labsynch/labseer/domain/ThingKind.java @@ -35,7 +35,7 @@ public class ThingKind { @NotNull @ManyToOne - @JoinColumn(name = "ls_type") + @JoinColumn(name = "ls_type") private ThingType lsType; @NotNull From d661c0716748f1b60e3072f2e5263e9d02b8d3fd Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 07:33:43 -0700 Subject: [PATCH 19/73] Update UnitKind.java --- src/main/java/com/labsynch/labseer/domain/UnitKind.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/domain/UnitKind.java b/src/main/java/com/labsynch/labseer/domain/UnitKind.java index bd737149d..cb727a3b8 100755 --- a/src/main/java/com/labsynch/labseer/domain/UnitKind.java +++ b/src/main/java/com/labsynch/labseer/domain/UnitKind.java @@ -31,7 +31,7 @@ public class UnitKind { @NotNull @ManyToOne - @JoinColumn(name = "ls_type") + @JoinColumn(name = "ls_type") private UnitType lsType; @NotNull From 69d6932389b1791100808c853b52291b496c7889 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 08:04:42 -0700 Subject: [PATCH 20/73] Update ValueType_Roo_Finder.aj --- .../com/labsynch/labseer/domain/ValueType_Roo_Finder.aj | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj b/src/main/java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj index 178503365..49f17959c 100755 --- a/src/main/java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj +++ b/src/main/java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj @@ -17,6 +17,13 @@ privileged aspect ValueType_Roo_Finder { return ((Long) q.getSingleResult()); } + public static TypedQuery ValueType.findValueTypesByTypeNameEquals(String typeName) { + if (typeName == null || typeName.length() == 0) throw new IllegalArgumentException("The typeName argument is required"); + EntityManager em = ValueType.entityManager(); + TypedQuery q = em.createQuery("SELECT o FROM ValueType AS o WHERE o.typeName = :typeName", ValueType.class); + q.setParameter("typeName", typeName); + return q; + } public static TypedQuery ValueType.findValueTypesByTypeNameEquals(String typeName, String sortFieldName, String sortOrder) { if (typeName == null || typeName.length() == 0) throw new IllegalArgumentException("The typeName argument is required"); From a56f970f00800ceff233cb3fc732bab980f6670b Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 08:05:17 -0700 Subject: [PATCH 21/73] Update ValueType_Roo_Finder.aj --- .../java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj b/src/main/java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj index 49f17959c..419458901 100755 --- a/src/main/java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj +++ b/src/main/java/com/labsynch/labseer/domain/ValueType_Roo_Finder.aj @@ -16,7 +16,7 @@ privileged aspect ValueType_Roo_Finder { q.setParameter("typeName", typeName); return ((Long) q.getSingleResult()); } - + public static TypedQuery ValueType.findValueTypesByTypeNameEquals(String typeName) { if (typeName == null || typeName.length() == 0) throw new IllegalArgumentException("The typeName argument is required"); EntityManager em = ValueType.entityManager(); From a0b5d6fd5d74236bc32e55c15c14aae68e9f0f9f Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 08:06:09 -0700 Subject: [PATCH 22/73] Update ValueType.java --- .../java/com/labsynch/labseer/domain/ValueType.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/java/com/labsynch/labseer/domain/ValueType.java b/src/main/java/com/labsynch/labseer/domain/ValueType.java index 3b181f95d..99d3e0613 100755 --- a/src/main/java/com/labsynch/labseer/domain/ValueType.java +++ b/src/main/java/com/labsynch/labseer/domain/ValueType.java @@ -34,18 +34,10 @@ public class ValueType { @Column(unique = true) @Size(max = 64) private String typeName; - - public static TypedQuery findValueTypesByTypeNameEquals(String typeName) { - if (typeName == null || typeName.length() == 0) throw new IllegalArgumentException("The typeName argument is required"); - EntityManager em = ValueType.entityManager(); - TypedQuery q = em.createQuery("SELECT o FROM ValueType AS o WHERE o.typeName = :typeName", ValueType.class); - q.setParameter("typeName", typeName); - return q; - } public static ValueType getOrCreate(String name) { ValueType lsType = null; - List lsTypes = findValueTypesByTypeNameEquals(name).getResultList(); + List lsTypes = ValueType.findValueTypesByTypeNameEquals(name).getResultList(); if (lsTypes.size() == 0) { lsType = new ValueType(); lsType.setTypeName(name); From 45d31623a07e20e739a142adf67754689bcaee10 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 6 Apr 2022 08:07:08 -0700 Subject: [PATCH 23/73] Update ValueType.java --- src/main/java/com/labsynch/labseer/domain/ValueType.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/labsynch/labseer/domain/ValueType.java b/src/main/java/com/labsynch/labseer/domain/ValueType.java index 99d3e0613..c4a4cf85d 100755 --- a/src/main/java/com/labsynch/labseer/domain/ValueType.java +++ b/src/main/java/com/labsynch/labseer/domain/ValueType.java @@ -4,12 +4,10 @@ import javax.persistence.Column; import javax.persistence.Entity; -import javax.persistence.EntityManager; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.SequenceGenerator; -import javax.persistence.TypedQuery; import javax.persistence.Version; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; @@ -34,7 +32,7 @@ public class ValueType { @Column(unique = true) @Size(max = 64) private String typeName; - + public static ValueType getOrCreate(String name) { ValueType lsType = null; List lsTypes = ValueType.findValueTypesByTypeNameEquals(name).getResultList(); From 15378f20b5d8daf5dc216b77c67648391078fe7b Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Tue, 12 Apr 2022 10:31:42 -0700 Subject: [PATCH 24/73] Make sure ACAS connects to the specified acas schema rather than relying on search_path --- src/main/resources/META-INF/spring/applicationContext.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/resources/META-INF/spring/applicationContext.xml b/src/main/resources/META-INF/spring/applicationContext.xml index 49fca0df9..7efb1a08f 100644 --- a/src/main/resources/META-INF/spring/applicationContext.xml +++ b/src/main/resources/META-INF/spring/applicationContext.xml @@ -42,6 +42,11 @@ + + + SET SCHEMA '${server.database.schema}' + + From 340734f7585d466cf36405cce37e0a8d32471133 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Tue, 12 Apr 2022 10:32:16 -0700 Subject: [PATCH 25/73] Add back dom4j --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 95ad7936f..f7274925c 100644 --- a/pom.xml +++ b/pom.xml @@ -558,11 +558,11 @@ along with this program. If not, see .]]> 1.3.1 - + 1.3 + com.beust jcommander From a22ac22164f344efade74dc62a0de3eff1a311d5 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Tue, 12 Apr 2022 11:06:25 -0700 Subject: [PATCH 26/73] spring-ldap-core to properties --- pom.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index f7274925c..72516bd71 100644 --- a/pom.xml +++ b/pom.xml @@ -51,6 +51,7 @@ along with this program. If not, see .]]> ${scmBranch} 7.0.63 5.6.1.Final + 2.3.6.RELEASE scm:git:git://github.com/mcneilco/acas-roo-server.git @@ -487,12 +488,12 @@ along with this program. If not, see .]]> org.springframework.ldap spring-ldap-core - 2.3.6.RELEASE + ${spring-ldap-core.version} org.springframework.ldap spring-ldap-core-tiger - 2.3.6.RELEASE + ${spring-ldap-core.version} org.springframework.security From 46be83915b735a7db752e903532e15847267fc20 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Tue, 12 Apr 2022 11:35:19 -0700 Subject: [PATCH 27/73] Remove deprecated codehaus.jackson libraries --- pom.xml | 10 ---------- .../bbchem/BBChemStructureService.java | 2 +- .../bbchem/BBChemStructureServiceImpl.java | 14 +++++++------- .../ChemStructureServiceBBChemImpl.java | 19 ++++++++++--------- .../bbchem/CmpdRegMoleculeBBChemImpl.java | 6 +++--- .../AnalysisGroupValueServiceTest.java | 17 +++++++++-------- .../AnalysisGroupValueServiceTest2.java | 12 ++++++------ .../service/LsThingValueServiceTest.java | 12 ++++++------ .../TreatmentGroupValueServiceTest.java | 12 ++++++------ 9 files changed, 48 insertions(+), 56 deletions(-) diff --git a/pom.xml b/pom.xml index 72516bd71..3f47a60c2 100644 --- a/pom.xml +++ b/pom.xml @@ -215,16 +215,6 @@ along with this program. If not, see .]]> flexjson 3.1 - - org.codehaus.jackson - jackson-core-asl - 1.9.13 - - - org.codehaus.jackson - jackson-mapper-asl - 1.9.13 - com.fasterxml.jackson.core jackson-databind diff --git a/src/main/java/com/labsynch/labseer/chemclasses/bbchem/BBChemStructureService.java b/src/main/java/com/labsynch/labseer/chemclasses/bbchem/BBChemStructureService.java index 44fc5229c..405946d85 100644 --- a/src/main/java/com/labsynch/labseer/chemclasses/bbchem/BBChemStructureService.java +++ b/src/main/java/com/labsynch/labseer/chemclasses/bbchem/BBChemStructureService.java @@ -7,7 +7,7 @@ import com.labsynch.labseer.domain.AbstractBBChemStructure; import com.labsynch.labseer.exceptions.CmpdRegMolFormatException; -import org.codehaus.jackson.JsonNode; +import com.fasterxml.jackson.databind.JsonNode; import org.springframework.stereotype.Service; @Service diff --git a/src/main/java/com/labsynch/labseer/chemclasses/bbchem/BBChemStructureServiceImpl.java b/src/main/java/com/labsynch/labseer/chemclasses/bbchem/BBChemStructureServiceImpl.java index 3657bccb7..ce962e64e 100644 --- a/src/main/java/com/labsynch/labseer/chemclasses/bbchem/BBChemStructureServiceImpl.java +++ b/src/main/java/com/labsynch/labseer/chemclasses/bbchem/BBChemStructureServiceImpl.java @@ -28,10 +28,10 @@ import com.labsynch.labseer.utils.Response; import com.labsynch.labseer.utils.Request; -import org.codehaus.jackson.JsonNode; -import org.codehaus.jackson.map.ObjectMapper; -import org.codehaus.jackson.node.ArrayNode; -import org.codehaus.jackson.node.ObjectNode; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.node.ArrayNode; +import com.fasterxml.jackson.databind.node.ObjectNode; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -65,7 +65,7 @@ private String getUrlFromPreprocessorSettings(String propertyKey) throws IOExcep logger.error("Missing preprocessorSettings "+propertyKey+"!!"); throw new IOException("Missing preprocessorSettings "+propertyKey+"!!"); } - String url = urlNode.getTextValue(); + String url = urlNode.asText(); return url; } @@ -388,7 +388,7 @@ public HashMap> getPreprocessedStructures(HashMap< JsonNode structuresResponseNode = responseNode.get("structures"); // Add the standardized structures to the hashmap - structuresResponseNode.getFieldNames().forEachRemaining(structureId -> { + structuresResponseNode.fieldNames().forEachRemaining(structureId -> { JsonNode node = structuresResponseNode.get(structureId); String status = node.get("status").asText(); String structure = node.get("structure").asText(); @@ -436,7 +436,7 @@ public HashMap getProcessedStructures(HashMap Date: Tue, 12 Apr 2022 14:34:16 -0700 Subject: [PATCH 28/73] Add JoinColumn(name="XX") to any columns added by hibernate --- .../java/com/labsynch/labseer/domain/FileList.java | 2 ++ .../java/com/labsynch/labseer/domain/IsoSalt.java | 4 ++++ .../labseer/domain/ItxContainerContainerState.java | 2 ++ .../labseer/domain/ItxContainerContainerValue.java | 2 ++ .../labseer/domain/ItxExperimentExperimentState.java | 2 ++ .../labseer/domain/ItxExperimentExperimentValue.java | 2 ++ .../labseer/domain/ItxLsThingLsThingState.java | 2 ++ .../labseer/domain/ItxLsThingLsThingValue.java | 2 ++ .../labseer/domain/ItxProtocolProtocolState.java | 2 ++ .../labseer/domain/ItxProtocolProtocolValue.java | 2 ++ .../labseer/domain/ItxSubjectContainerState.java | 2 ++ .../labseer/domain/ItxSubjectContainerValue.java | 2 ++ src/main/java/com/labsynch/labseer/domain/Lot.java | 12 ++++++++++++ .../java/com/labsynch/labseer/domain/LotAlias.java | 2 ++ .../com/labsynch/labseer/domain/LotAliasKind.java | 2 ++ .../java/com/labsynch/labseer/domain/Parent.java | 5 +++++ .../com/labsynch/labseer/domain/ParentAlias.java | 2 ++ .../java/com/labsynch/labseer/domain/SaltForm.java | 3 +++ .../com/labsynch/labseer/domain/SaltFormAlias.java | 2 ++ .../labsynch/labseer/domain/SaltFormAliasKind.java | 2 ++ .../com/labsynch/labseer/domain/StructureKind.java | 2 ++ .../java/com/labsynch/labseer/domain/ThingPage.java | 1 + 22 files changed, 59 insertions(+) diff --git a/src/main/java/com/labsynch/labseer/domain/FileList.java b/src/main/java/com/labsynch/labseer/domain/FileList.java index 4254efd7e..572ca0f67 100755 --- a/src/main/java/com/labsynch/labseer/domain/FileList.java +++ b/src/main/java/com/labsynch/labseer/domain/FileList.java @@ -8,6 +8,7 @@ import javax.persistence.EntityManager; import javax.persistence.FetchType; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Transient; import javax.persistence.TypedQuery; @@ -33,6 +34,7 @@ public class FileList { private static final Logger logger = LoggerFactory.getLogger(FileListController.class); @ManyToOne(fetch = FetchType.LAZY) + @JoinColumn(name = "lot") private Lot lot; private String description; diff --git a/src/main/java/com/labsynch/labseer/domain/IsoSalt.java b/src/main/java/com/labsynch/labseer/domain/IsoSalt.java index 66b3e79fb..15742f8bf 100755 --- a/src/main/java/com/labsynch/labseer/domain/IsoSalt.java +++ b/src/main/java/com/labsynch/labseer/domain/IsoSalt.java @@ -4,6 +4,7 @@ import java.util.Collection; import java.util.List; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.validation.constraints.Size; @@ -28,9 +29,11 @@ public class IsoSalt { private static final Logger logger = LoggerFactory.getLogger(IsoSalt.class); @ManyToOne + @JoinColumn(name = "isotope") private Isotope isotope; @ManyToOne + @JoinColumn(name = "salt") private Salt salt; @Size(max = 25) @@ -41,6 +44,7 @@ public class IsoSalt { private Boolean ignore; @ManyToOne + @JoinColumn(name = "salt_form") private SaltForm saltForm; diff --git a/src/main/java/com/labsynch/labseer/domain/ItxContainerContainerState.java b/src/main/java/com/labsynch/labseer/domain/ItxContainerContainerState.java index d423a5c0f..38be744dd 100755 --- a/src/main/java/com/labsynch/labseer/domain/ItxContainerContainerState.java +++ b/src/main/java/com/labsynch/labseer/domain/ItxContainerContainerState.java @@ -11,6 +11,7 @@ import javax.persistence.CascadeType; import javax.persistence.FetchType; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; @@ -53,6 +54,7 @@ public static ItxContainerContainerState update(ItxContainerContainerState objec } @ManyToOne + @JoinColumn(name = "itx_container_container") private ItxContainerContainer itxContainerContainer; @OneToMany(cascade = CascadeType.ALL, mappedBy = "lsState", fetch = FetchType.LAZY) diff --git a/src/main/java/com/labsynch/labseer/domain/ItxContainerContainerValue.java b/src/main/java/com/labsynch/labseer/domain/ItxContainerContainerValue.java index 808210125..008e9501b 100755 --- a/src/main/java/com/labsynch/labseer/domain/ItxContainerContainerValue.java +++ b/src/main/java/com/labsynch/labseer/domain/ItxContainerContainerValue.java @@ -7,6 +7,7 @@ import java.util.Date; import java.util.List; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import org.springframework.roo.addon.javabean.RooJavaBean; @@ -28,6 +29,7 @@ public class ItxContainerContainerValue extends AbstractValue { @ManyToOne + @JoinColumn(name = "ls_state") private ItxContainerContainerState lsState; public ItxContainerContainerValue( diff --git a/src/main/java/com/labsynch/labseer/domain/ItxExperimentExperimentState.java b/src/main/java/com/labsynch/labseer/domain/ItxExperimentExperimentState.java index b2786bb80..e4740a5b0 100644 --- a/src/main/java/com/labsynch/labseer/domain/ItxExperimentExperimentState.java +++ b/src/main/java/com/labsynch/labseer/domain/ItxExperimentExperimentState.java @@ -11,6 +11,7 @@ import javax.persistence.CascadeType; import javax.persistence.FetchType; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; @@ -53,6 +54,7 @@ public static ItxExperimentExperimentState update(ItxExperimentExperimentState o } @ManyToOne + @JoinColumn(name = "itx_experiment_experiment") private ItxExperimentExperiment itxExperimentExperiment; @OneToMany(cascade = CascadeType.ALL, mappedBy = "lsState", fetch = FetchType.LAZY) diff --git a/src/main/java/com/labsynch/labseer/domain/ItxExperimentExperimentValue.java b/src/main/java/com/labsynch/labseer/domain/ItxExperimentExperimentValue.java index 683052293..8812fe763 100644 --- a/src/main/java/com/labsynch/labseer/domain/ItxExperimentExperimentValue.java +++ b/src/main/java/com/labsynch/labseer/domain/ItxExperimentExperimentValue.java @@ -7,6 +7,7 @@ import java.util.Date; import java.util.List; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; @@ -30,6 +31,7 @@ public class ItxExperimentExperimentValue extends AbstractValue { @ManyToOne + @JoinColumn(name = "ls_state") private ItxExperimentExperimentState lsState; public static ItxExperimentExperimentValue update(ItxExperimentExperimentValue object) { diff --git a/src/main/java/com/labsynch/labseer/domain/ItxLsThingLsThingState.java b/src/main/java/com/labsynch/labseer/domain/ItxLsThingLsThingState.java index 72685776e..3f3ef2f27 100644 --- a/src/main/java/com/labsynch/labseer/domain/ItxLsThingLsThingState.java +++ b/src/main/java/com/labsynch/labseer/domain/ItxLsThingLsThingState.java @@ -11,6 +11,7 @@ import javax.persistence.CascadeType; import javax.persistence.FetchType; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; @@ -84,6 +85,7 @@ public static ItxLsThingLsThingState updateNoMerge( @ManyToOne + @JoinColumn(name = "itx_ls_thing_ls_thing") private ItxLsThingLsThing itxLsThingLsThing; @OneToMany(cascade = CascadeType.ALL, mappedBy = "lsState", fetch = FetchType.LAZY) diff --git a/src/main/java/com/labsynch/labseer/domain/ItxLsThingLsThingValue.java b/src/main/java/com/labsynch/labseer/domain/ItxLsThingLsThingValue.java index 9a098c1c5..f6f277a2e 100644 --- a/src/main/java/com/labsynch/labseer/domain/ItxLsThingLsThingValue.java +++ b/src/main/java/com/labsynch/labseer/domain/ItxLsThingLsThingValue.java @@ -12,6 +12,7 @@ import java.util.List; import javax.persistence.EntityManager; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.TypedQuery; import org.springframework.roo.addon.javabean.RooJavaBean; @@ -27,6 +28,7 @@ public class ItxLsThingLsThingValue extends AbstractValue { @ManyToOne + @JoinColumn(name = "ls_state") private ItxLsThingLsThingState lsState; public ItxLsThingLsThingValue(com.labsynch.labseer.domain.ItxLsThingLsThingValue itxLsThingLsThingValue) { diff --git a/src/main/java/com/labsynch/labseer/domain/ItxProtocolProtocolState.java b/src/main/java/com/labsynch/labseer/domain/ItxProtocolProtocolState.java index dfd1d3c7b..d3a412591 100755 --- a/src/main/java/com/labsynch/labseer/domain/ItxProtocolProtocolState.java +++ b/src/main/java/com/labsynch/labseer/domain/ItxProtocolProtocolState.java @@ -11,6 +11,7 @@ import javax.persistence.CascadeType; import javax.persistence.FetchType; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; @@ -51,6 +52,7 @@ public static ItxProtocolProtocolState update(ItxProtocolProtocolState object) { } @ManyToOne + @JoinColumn(name = "itx_protocol_protocol") private ItxProtocolProtocol itxProtocolProtocol; @OneToMany(cascade = CascadeType.ALL, mappedBy = "lsState", fetch = FetchType.LAZY) diff --git a/src/main/java/com/labsynch/labseer/domain/ItxProtocolProtocolValue.java b/src/main/java/com/labsynch/labseer/domain/ItxProtocolProtocolValue.java index f00f12437..9d13fd8b7 100755 --- a/src/main/java/com/labsynch/labseer/domain/ItxProtocolProtocolValue.java +++ b/src/main/java/com/labsynch/labseer/domain/ItxProtocolProtocolValue.java @@ -7,6 +7,7 @@ import java.util.Date; import java.util.List; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import org.springframework.roo.addon.javabean.RooJavaBean; @@ -28,6 +29,7 @@ public class ItxProtocolProtocolValue extends AbstractValue { @ManyToOne + @JoinColumn(name = "ls_state") private ItxProtocolProtocolState lsState; public static ItxProtocolProtocolValue update(ItxProtocolProtocolValue object) { diff --git a/src/main/java/com/labsynch/labseer/domain/ItxSubjectContainerState.java b/src/main/java/com/labsynch/labseer/domain/ItxSubjectContainerState.java index c576c9240..476ec4ca7 100755 --- a/src/main/java/com/labsynch/labseer/domain/ItxSubjectContainerState.java +++ b/src/main/java/com/labsynch/labseer/domain/ItxSubjectContainerState.java @@ -11,6 +11,7 @@ import javax.persistence.CascadeType; import javax.persistence.EntityManager; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Query; @@ -56,6 +57,7 @@ public static ItxSubjectContainerState update(ItxSubjectContainerState object) { } @ManyToOne + @JoinColumn(name = "itx_subject_container") private ItxSubjectContainer itxSubjectContainer; @OneToMany(cascade = CascadeType.ALL, mappedBy = "lsState") diff --git a/src/main/java/com/labsynch/labseer/domain/ItxSubjectContainerValue.java b/src/main/java/com/labsynch/labseer/domain/ItxSubjectContainerValue.java index f74e71790..6e8eb273b 100755 --- a/src/main/java/com/labsynch/labseer/domain/ItxSubjectContainerValue.java +++ b/src/main/java/com/labsynch/labseer/domain/ItxSubjectContainerValue.java @@ -8,6 +8,7 @@ import java.util.List; import javax.persistence.EntityManager; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Query; @@ -30,6 +31,7 @@ public class ItxSubjectContainerValue extends AbstractValue { @ManyToOne + @JoinColumn(name = "ls_state") private ItxSubjectContainerState lsState; public static ItxSubjectContainerValue update(ItxSubjectContainerValue object) { diff --git a/src/main/java/com/labsynch/labseer/domain/Lot.java b/src/main/java/com/labsynch/labseer/domain/Lot.java index 4e542a07f..4018bca16 100755 --- a/src/main/java/com/labsynch/labseer/domain/Lot.java +++ b/src/main/java/com/labsynch/labseer/domain/Lot.java @@ -13,6 +13,7 @@ import javax.persistence.Column; import javax.persistence.EntityManager; import javax.persistence.FetchType; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Query; @@ -102,11 +103,13 @@ public class Lot { private Double amount; @ManyToOne + @JoinColumn(name = "amount_units") private Unit amountUnits; private Double solutionAmount; @ManyToOne + @JoinColumn(name = "solution_amount_units") private SolutionUnit solutionAmountUnits; @Size(max = 255) @@ -118,9 +121,11 @@ public class Lot { private Double purity; @ManyToOne + @JoinColumn(name = "purity_operator") private Operator purityOperator; @ManyToOne + @JoinColumn(name = "purity_measured_by") private PurityMeasuredBy purityMeasuredBy; private String chemist; @@ -136,9 +141,11 @@ public class Lot { @ManyToOne + @JoinColumn(name = "physical_state") private PhysicalState physicalState; @ManyToOne + @JoinColumn(name = "vendor") private Vendor vendor; @Size(max = 255) @@ -146,6 +153,7 @@ public class Lot { private String vendorId; @ManyToOne + @JoinColumn(name = "salt_form") private SaltForm saltForm; @OneToMany(cascade = CascadeType.REMOVE, mappedBy = "lot", fetch = FetchType.LAZY) @@ -154,6 +162,7 @@ public class Lot { private Double retain; @ManyToOne + @JoinColumn(name = "retain_units") private Unit retainUnits; private String retainLocation; @@ -171,6 +180,7 @@ public class Lot { private Parent parent; @ManyToOne + @JoinColumn(name = "bulk_load_file") private BulkLoadFile bulkLoadFile; private Double lambda; @@ -188,11 +198,13 @@ public class Lot { private Double tareWeight; @ManyToOne + @JoinColumn(name = "tare_weight_units") private Unit tareWeightUnits; private Double totalAmountStored; @ManyToOne + @JoinColumn(name = "total_amount_stored_units") private Unit totalAmountStoredUnits; @OneToMany(cascade = CascadeType.MERGE, mappedBy = "lot", fetch = FetchType.LAZY) diff --git a/src/main/java/com/labsynch/labseer/domain/LotAlias.java b/src/main/java/com/labsynch/labseer/domain/LotAlias.java index a1fbdffa0..83a2604a0 100644 --- a/src/main/java/com/labsynch/labseer/domain/LotAlias.java +++ b/src/main/java/com/labsynch/labseer/domain/LotAlias.java @@ -1,5 +1,6 @@ package com.labsynch.labseer.domain; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import org.slf4j.Logger; @@ -24,6 +25,7 @@ public class LotAlias { @ManyToOne @org.hibernate.annotations.Index(name="LotAlias_Parent_IDX") + @JoinColumn(name = "lot") private Lot lot; private String lsType; diff --git a/src/main/java/com/labsynch/labseer/domain/LotAliasKind.java b/src/main/java/com/labsynch/labseer/domain/LotAliasKind.java index 81fac2f5b..9164d1ae3 100644 --- a/src/main/java/com/labsynch/labseer/domain/LotAliasKind.java +++ b/src/main/java/com/labsynch/labseer/domain/LotAliasKind.java @@ -1,5 +1,6 @@ package com.labsynch.labseer.domain; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; @@ -17,6 +18,7 @@ public class LotAliasKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private LotAliasType lsType; @Size(max = 255) diff --git a/src/main/java/com/labsynch/labseer/domain/Parent.java b/src/main/java/com/labsynch/labseer/domain/Parent.java index 3ff814a78..2d4a6737d 100755 --- a/src/main/java/com/labsynch/labseer/domain/Parent.java +++ b/src/main/java/com/labsynch/labseer/domain/Parent.java @@ -10,6 +10,7 @@ import javax.persistence.Column; import javax.persistence.EntityManager; import javax.persistence.FetchType; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Temporal; @@ -70,6 +71,7 @@ public class Parent { @ManyToOne @org.hibernate.annotations.Index(name="Parent_stereoCategory_IDX") + @JoinColumn(name = "stereo_category") private StereoCategory stereoCategory; @Size(max = 1000) @@ -111,12 +113,15 @@ public class Parent { private Set parentAliases = new HashSet(); @ManyToOne + @JoinColumn(name = "bulk_load_file") private BulkLoadFile bulkLoadFile; @ManyToOne + @JoinColumn(name = "parent_annotation") private ParentAnnotation parentAnnotation; @ManyToOne + @JoinColumn(name = "compound_type") private CompoundType compoundType; @Column(columnDefinition="text") diff --git a/src/main/java/com/labsynch/labseer/domain/ParentAlias.java b/src/main/java/com/labsynch/labseer/domain/ParentAlias.java index fc55752d7..ab60074a1 100644 --- a/src/main/java/com/labsynch/labseer/domain/ParentAlias.java +++ b/src/main/java/com/labsynch/labseer/domain/ParentAlias.java @@ -1,5 +1,6 @@ package com.labsynch.labseer.domain; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import org.slf4j.Logger; @@ -25,6 +26,7 @@ public class ParentAlias { @ManyToOne @org.hibernate.annotations.Index(name="ParentAlias_Parent_IDX") + @JoinColumn(name = "parent") private Parent parent; private String lsType; diff --git a/src/main/java/com/labsynch/labseer/domain/SaltForm.java b/src/main/java/com/labsynch/labseer/domain/SaltForm.java index 8d0f3ef0c..1f13d4743 100755 --- a/src/main/java/com/labsynch/labseer/domain/SaltForm.java +++ b/src/main/java/com/labsynch/labseer/domain/SaltForm.java @@ -11,6 +11,7 @@ import javax.persistence.Column; import javax.persistence.EntityManager; import javax.persistence.FetchType; +import javax.persistence.JoinColumn; import javax.persistence.Lob; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; @@ -74,6 +75,7 @@ public class SaltForm implements Comparable { @ManyToOne @org.hibernate.annotations.Index(name="SaltForm_Parent_IDX") + @JoinColumn(name = "parent") private Parent parent; @OneToMany(cascade = CascadeType.ALL, mappedBy = "saltForm", fetch=FetchType.LAZY) @@ -83,6 +85,7 @@ public class SaltForm implements Comparable { private Set isoSalts = new HashSet(); @ManyToOne + @JoinColumn(name = "bulk_load_file") private BulkLoadFile bulkLoadFile; public static final List fieldNames4OrderClauseFilter = java.util.Arrays.asList("corpName", "CdId", "parent", "bulkLoadFile"); diff --git a/src/main/java/com/labsynch/labseer/domain/SaltFormAlias.java b/src/main/java/com/labsynch/labseer/domain/SaltFormAlias.java index b824d237d..4015023e7 100644 --- a/src/main/java/com/labsynch/labseer/domain/SaltFormAlias.java +++ b/src/main/java/com/labsynch/labseer/domain/SaltFormAlias.java @@ -1,5 +1,6 @@ package com.labsynch.labseer.domain; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import org.slf4j.Logger; @@ -23,6 +24,7 @@ public class SaltFormAlias { @ManyToOne @org.hibernate.annotations.Index(name="SaltFormAlias_SaltForm_IDX") + @JoinColumn(name = "salt_form") private SaltForm saltForm; private String lsType; diff --git a/src/main/java/com/labsynch/labseer/domain/SaltFormAliasKind.java b/src/main/java/com/labsynch/labseer/domain/SaltFormAliasKind.java index 02760b7c7..4596f12e8 100644 --- a/src/main/java/com/labsynch/labseer/domain/SaltFormAliasKind.java +++ b/src/main/java/com/labsynch/labseer/domain/SaltFormAliasKind.java @@ -1,5 +1,6 @@ package com.labsynch.labseer.domain; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; @@ -17,6 +18,7 @@ public class SaltFormAliasKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private SaltFormAliasType lsType; @Size(max = 255) diff --git a/src/main/java/com/labsynch/labseer/domain/StructureKind.java b/src/main/java/com/labsynch/labseer/domain/StructureKind.java index b9f08617f..e3a0b7f03 100644 --- a/src/main/java/com/labsynch/labseer/domain/StructureKind.java +++ b/src/main/java/com/labsynch/labseer/domain/StructureKind.java @@ -8,6 +8,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.PersistenceContext; import javax.persistence.SequenceGenerator; @@ -35,6 +36,7 @@ public class StructureKind { @NotNull @ManyToOne + @JoinColumn(name = "ls_type") private StructureType lsType; @NotNull diff --git a/src/main/java/com/labsynch/labseer/domain/ThingPage.java b/src/main/java/com/labsynch/labseer/domain/ThingPage.java index f28171da4..54e1afee7 100755 --- a/src/main/java/com/labsynch/labseer/domain/ThingPage.java +++ b/src/main/java/com/labsynch/labseer/domain/ThingPage.java @@ -60,6 +60,7 @@ public class ThingPage { private boolean archived; @ManyToOne + @JoinColumn(name = "ls_transaction") private LsTransaction lsTransaction; @NotNull From d388f235a4520e45af19865a36d42edac8dfc8b6 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Tue, 12 Apr 2022 14:36:39 -0700 Subject: [PATCH 29/73] Removing setting search path explicitly --- src/main/resources/META-INF/spring/applicationContext.xml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/resources/META-INF/spring/applicationContext.xml b/src/main/resources/META-INF/spring/applicationContext.xml index 7efb1a08f..49fca0df9 100644 --- a/src/main/resources/META-INF/spring/applicationContext.xml +++ b/src/main/resources/META-INF/spring/applicationContext.xml @@ -42,11 +42,6 @@ - - - SET SCHEMA '${server.database.schema}' - - From 43e37e70b030fd797f4f5d7ce96e6ad45c41507d Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 08:32:28 -0700 Subject: [PATCH 30/73] Units controller --- .../ApiUnitsController.java} | 23 ++-- .../web/UnitController_Roo_Controller.aj | 100 ------------------ .../UnitController_Roo_Controller_Finder.aj | 72 ------------- 3 files changed, 11 insertions(+), 184 deletions(-) rename src/main/java/com/labsynch/labseer/{web/UnitController.java => api/ApiUnitsController.java} (91%) mode change 100755 => 100644 delete mode 100644 src/main/java/com/labsynch/labseer/web/UnitController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/UnitController_Roo_Controller_Finder.aj diff --git a/src/main/java/com/labsynch/labseer/web/UnitController.java b/src/main/java/com/labsynch/labseer/api/ApiUnitsController.java old mode 100755 new mode 100644 similarity index 91% rename from src/main/java/com/labsynch/labseer/web/UnitController.java rename to src/main/java/com/labsynch/labseer/api/ApiUnitsController.java index 9658a25c4..39bb98c45 --- a/src/main/java/com/labsynch/labseer/web/UnitController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiUnitsController.java @@ -1,28 +1,26 @@ -package com.labsynch.labseer.web; +package com.labsynch.labseer.api; +import com.labsynch.labseer.domain.Unit; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; -import com.labsynch.labseer.domain.Unit; -@RooWebScaffold(path = "units", formBackingObject = Unit.class) -@RequestMapping("/units") -@Transactional +@RequestMapping(value = {"/api/v1/units"}) @Controller +public class ApiUnitsController { + + Logger logger = LoggerFactory.getLogger(ApiUnitsController.class); -@RooWebFinder -public class UnitController { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") + @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") @ResponseBody public ResponseEntity showJson(@PathVariable("id") Long id) { Unit unit = Unit.findUnit(id); @@ -125,4 +123,5 @@ public ResponseEntity getIsotopeOptions() { headers.setExpires(0); // Expire the cache return new ResponseEntity(headers, HttpStatus.OK); } + } diff --git a/src/main/java/com/labsynch/labseer/web/UnitController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/UnitController_Roo_Controller.aj deleted file mode 100644 index 72771f1cf..000000000 --- a/src/main/java/com/labsynch/labseer/web/UnitController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Unit; -import com.labsynch.labseer.web.UnitController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect UnitController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String UnitController.create(@Valid Unit unit, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, unit); - return "units/create"; - } - uiModel.asMap().clear(); - unit.persist(); - return "redirect:/units/" + encodeUrlPathSegment(unit.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String UnitController.createForm(Model uiModel) { - populateEditForm(uiModel, new Unit()); - return "units/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String UnitController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("unit", Unit.findUnit(id)); - uiModel.addAttribute("itemId", id); - return "units/show"; - } - - @RequestMapping(produces = "text/html") - public String UnitController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("units", Unit.findUnitEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) Unit.countUnits() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("units", Unit.findAllUnits(sortFieldName, sortOrder)); - } - return "units/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String UnitController.update(@Valid Unit unit, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, unit); - return "units/update"; - } - uiModel.asMap().clear(); - unit.merge(); - return "redirect:/units/" + encodeUrlPathSegment(unit.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String UnitController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, Unit.findUnit(id)); - return "units/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String UnitController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - Unit unit = Unit.findUnit(id); - unit.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/units"; - } - - void UnitController.populateEditForm(Model uiModel, Unit unit) { - uiModel.addAttribute("unit", unit); - } - - String UnitController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/UnitController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/UnitController_Roo_Controller_Finder.aj deleted file mode 100644 index 027a5183a..000000000 --- a/src/main/java/com/labsynch/labseer/web/UnitController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,72 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Unit; -import com.labsynch.labseer.web.UnitController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect UnitController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeEquals", "form" }, method = RequestMethod.GET) - public String UnitController.findUnitsByCodeEqualsForm(Model uiModel) { - return "units/findUnitsByCodeEquals"; - } - - @RequestMapping(params = "find=ByCodeEquals", method = RequestMethod.GET) - public String UnitController.findUnitsByCodeEquals(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("units", Unit.findUnitsByCodeEquals(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Unit.countFindUnitsByCodeEquals(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("units", Unit.findUnitsByCodeEquals(code, sortFieldName, sortOrder).getResultList()); - } - return "units/list"; - } - - @RequestMapping(params = { "find=ByCodeLike", "form" }, method = RequestMethod.GET) - public String UnitController.findUnitsByCodeLikeForm(Model uiModel) { - return "units/findUnitsByCodeLike"; - } - - @RequestMapping(params = "find=ByCodeLike", method = RequestMethod.GET) - public String UnitController.findUnitsByCodeLike(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("units", Unit.findUnitsByCodeLike(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Unit.countFindUnitsByCodeLike(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("units", Unit.findUnitsByCodeLike(code, sortFieldName, sortOrder).getResultList()); - } - return "units/list"; - } - - @RequestMapping(params = { "find=ByNameEquals", "form" }, method = RequestMethod.GET) - public String UnitController.findUnitsByNameEqualsForm(Model uiModel) { - return "units/findUnitsByNameEquals"; - } - - @RequestMapping(params = "find=ByNameEquals", method = RequestMethod.GET) - public String UnitController.findUnitsByNameEquals(@RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("units", Unit.findUnitsByNameEquals(name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Unit.countFindUnitsByNameEquals(name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("units", Unit.findUnitsByNameEquals(name, sortFieldName, sortOrder).getResultList()); - } - return "units/list"; - } - -} From 7230a7fbb79dbf3d41130d82b5a7170ee1e46753 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 08:34:32 -0700 Subject: [PATCH 31/73] Solution unit controller --- .../ApiSolutionUnitController.java} | 47 ++++---- .../SolutionUnitController_Roo_Controller.aj | 100 ------------------ ...ionUnitController_Roo_Controller_Finder.aj | 72 ------------- 3 files changed, 19 insertions(+), 200 deletions(-) rename src/main/java/com/labsynch/labseer/{web/SolutionUnitController.java => api/ApiSolutionUnitController.java} (97%) mode change 100755 => 100644 delete mode 100644 src/main/java/com/labsynch/labseer/web/SolutionUnitController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/SolutionUnitController_Roo_Controller_Finder.aj diff --git a/src/main/java/com/labsynch/labseer/web/SolutionUnitController.java b/src/main/java/com/labsynch/labseer/api/ApiSolutionUnitController.java old mode 100755 new mode 100644 similarity index 97% rename from src/main/java/com/labsynch/labseer/web/SolutionUnitController.java rename to src/main/java/com/labsynch/labseer/api/ApiSolutionUnitController.java index 18349a8f5..651430af6 --- a/src/main/java/com/labsynch/labseer/web/SolutionUnitController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiSolutionUnitController.java @@ -1,6 +1,21 @@ -package com.labsynch.labseer.web; -import org.apache.commons.collections.CollectionUtils; +package com.labsynch.labseer.api; +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; + +import javax.servlet.http.HttpServletRequest; + +import com.labsynch.labseer.domain.SolutionUnit; +import com.mysema.query.BooleanBuilder; +import com.mysema.query.jpa.impl.JPAQuery; +import com.mysema.query.types.path.PathBuilder; +import org.apache.commons.collections.CollectionUtils; import org.springframework.beans.BeanWrapper; import org.springframework.beans.BeanWrapperImpl; import org.springframework.beans.factory.annotation.Autowired; @@ -14,40 +29,16 @@ import org.springframework.stereotype.Controller; import org.springframework.transaction.annotation.Transactional; import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.servlet.mvc.support.RedirectAttributes; -import com.labsynch.labseer.domain.SolutionUnit; -import com.mysema.query.BooleanBuilder; -import com.mysema.query.jpa.impl.JPAQuery; -import com.mysema.query.types.path.PathBuilder; -import java.lang.reflect.Field; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Enumeration; -import java.util.HashMap; -import java.util.List; -import java.util.Locale; -import java.util.Map; -import java.util.Set; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -@RooWebScaffold(path = "solutionunits", formBackingObject = SolutionUnit.class) -@RequestMapping({ "/solutionunits", "/solutionUnits" }) -@Transactional +@RequestMapping(value = {"/api/v1/solutionUnits"}) @Controller - -@RooWebFinder -public class SolutionUnitController { - - public BeanWrapper beanWrapper_dtt; +public class ApiSolutionUnitController { @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") @ResponseBody diff --git a/src/main/java/com/labsynch/labseer/web/SolutionUnitController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SolutionUnitController_Roo_Controller.aj deleted file mode 100644 index beae8ca47..000000000 --- a/src/main/java/com/labsynch/labseer/web/SolutionUnitController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.SolutionUnit; -import com.labsynch.labseer.web.SolutionUnitController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect SolutionUnitController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String SolutionUnitController.create(@Valid SolutionUnit solutionUnit, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, solutionUnit); - return "solutionunits/create"; - } - uiModel.asMap().clear(); - solutionUnit.persist(); - return "redirect:/solutionunits/" + encodeUrlPathSegment(solutionUnit.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String SolutionUnitController.createForm(Model uiModel) { - populateEditForm(uiModel, new SolutionUnit()); - return "solutionunits/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String SolutionUnitController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("solutionunit", SolutionUnit.findSolutionUnit(id)); - uiModel.addAttribute("itemId", id); - return "solutionunits/show"; - } - - @RequestMapping(produces = "text/html") - public String SolutionUnitController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("solutionunits", SolutionUnit.findSolutionUnitEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) SolutionUnit.countSolutionUnits() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("solutionunits", SolutionUnit.findAllSolutionUnits(sortFieldName, sortOrder)); - } - return "solutionunits/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String SolutionUnitController.update(@Valid SolutionUnit solutionUnit, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, solutionUnit); - return "solutionunits/update"; - } - uiModel.asMap().clear(); - solutionUnit.merge(); - return "redirect:/solutionunits/" + encodeUrlPathSegment(solutionUnit.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String SolutionUnitController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, SolutionUnit.findSolutionUnit(id)); - return "solutionunits/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String SolutionUnitController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - SolutionUnit solutionUnit = SolutionUnit.findSolutionUnit(id); - solutionUnit.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/solutionunits"; - } - - void SolutionUnitController.populateEditForm(Model uiModel, SolutionUnit solutionUnit) { - uiModel.addAttribute("solutionUnit", solutionUnit); - } - - String SolutionUnitController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SolutionUnitController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/SolutionUnitController_Roo_Controller_Finder.aj deleted file mode 100644 index 8b70df701..000000000 --- a/src/main/java/com/labsynch/labseer/web/SolutionUnitController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,72 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.SolutionUnit; -import com.labsynch.labseer.web.SolutionUnitController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect SolutionUnitController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeEquals", "form" }, method = RequestMethod.GET) - public String SolutionUnitController.findSolutionUnitsByCodeEqualsForm(Model uiModel) { - return "solutionunits/findSolutionUnitsByCodeEquals"; - } - - @RequestMapping(params = "find=ByCodeEquals", method = RequestMethod.GET) - public String SolutionUnitController.findSolutionUnitsByCodeEquals(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("solutionunits", SolutionUnit.findSolutionUnitsByCodeEquals(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SolutionUnit.countFindSolutionUnitsByCodeEquals(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("solutionunits", SolutionUnit.findSolutionUnitsByCodeEquals(code, sortFieldName, sortOrder).getResultList()); - } - return "solutionunits/list"; - } - - @RequestMapping(params = { "find=ByCodeLike", "form" }, method = RequestMethod.GET) - public String SolutionUnitController.findSolutionUnitsByCodeLikeForm(Model uiModel) { - return "solutionunits/findSolutionUnitsByCodeLike"; - } - - @RequestMapping(params = "find=ByCodeLike", method = RequestMethod.GET) - public String SolutionUnitController.findSolutionUnitsByCodeLike(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("solutionunits", SolutionUnit.findSolutionUnitsByCodeLike(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SolutionUnit.countFindSolutionUnitsByCodeLike(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("solutionunits", SolutionUnit.findSolutionUnitsByCodeLike(code, sortFieldName, sortOrder).getResultList()); - } - return "solutionunits/list"; - } - - @RequestMapping(params = { "find=ByNameEquals", "form" }, method = RequestMethod.GET) - public String SolutionUnitController.findSolutionUnitsByNameEqualsForm(Model uiModel) { - return "solutionunits/findSolutionUnitsByNameEquals"; - } - - @RequestMapping(params = "find=ByNameEquals", method = RequestMethod.GET) - public String SolutionUnitController.findSolutionUnitsByNameEquals(@RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("solutionunits", SolutionUnit.findSolutionUnitsByNameEquals(name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SolutionUnit.countFindSolutionUnitsByNameEquals(name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("solutionunits", SolutionUnit.findSolutionUnitsByNameEquals(name, sortFieldName, sortOrder).getResultList()); - } - return "solutionunits/list"; - } - -} From d5ef24b4e7cc2c5ae00202d22d4ae81904443317 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 08:41:33 -0700 Subject: [PATCH 32/73] Salt Controller merge --- .../labseer/api/ApiSaltController.java | 231 +++++++++++++++- .../labsynch/labseer/web/SaltController.java | 256 ------------------ .../web/SaltController_Roo_Controller.aj | 63 ----- .../SaltController_Roo_Controller_Finder.aj | 110 -------- 4 files changed, 221 insertions(+), 439 deletions(-) delete mode 100755 src/main/java/com/labsynch/labseer/web/SaltController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/SaltController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/SaltController_Roo_Controller_Finder.aj diff --git a/src/main/java/com/labsynch/labseer/api/ApiSaltController.java b/src/main/java/com/labsynch/labseer/api/ApiSaltController.java index 2200c8125..329d40b65 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiSaltController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiSaltController.java @@ -1,5 +1,20 @@ package com.labsynch.labseer.api; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import javax.servlet.http.HttpServletRequest; +import javax.validation.Valid; + +import com.labsynch.labseer.domain.Salt; +import com.labsynch.labseer.exceptions.CmpdRegMolFormatException; +import com.labsynch.labseer.exceptions.StructureSaveException; +import com.labsynch.labseer.service.ChemStructureService; +import com.labsynch.labseer.service.ErrorMessage; +import com.labsynch.labseer.service.SaltService; +import com.labsynch.labseer.service.SaltStructureService; + import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -7,11 +22,17 @@ import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.validation.BindingResult; +import org.springframework.web.bind.annotation.ModelAttribute; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; - -import com.labsynch.labseer.service.SaltService; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.util.UriUtils; +import org.springframework.web.util.WebUtils; @RequestMapping(value = {"/api/v1/salts"}) @Controller @@ -21,6 +42,12 @@ public class ApiSaltController { @Autowired private SaltService saltService; + + @Autowired + private SaltStructureService saltStructureService; + + @Autowired + private ChemStructureService chemStructureService; @RequestMapping(value = "/load", method = RequestMethod.POST, headers = "Accept=application/json") public ResponseEntity loadSalts( @@ -44,18 +71,202 @@ public ResponseEntity loadSalts( } - - - @RequestMapping(method = RequestMethod.OPTIONS) - public ResponseEntity getOptions() { - HttpHeaders headers= new HttpHeaders(); + @RequestMapping(method = RequestMethod.POST) + public String create(@Valid Salt salt, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) throws CmpdRegMolFormatException { + if (bindingResult.hasErrors()) { + uiModel.addAttribute("salt", salt); + return "salts/create"; + } + uiModel.asMap().clear(); + salt = saltStructureService.saveStructure(salt); + if (salt.getCdId() > 0 && salt.getCdId() != -1) { + salt.persist(); + return "redirect:/salts/" + encodeUrlPathSegment(salt.getId().toString(), httpServletRequest); + } else { + //remove the salt from the Salt_Structure table?? + uiModel.addAttribute("salt", salt); + return "salts/create"; + } + } + + @ModelAttribute("salts") + public Collection populateSalts() { + return Salt.findAllSalts(); + } + + String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { + String enc = httpServletRequest.getCharacterEncoding(); + if (enc == null) { + enc = WebUtils.DEFAULT_CHARACTER_ENCODING; + } + pathSegment = UriUtils.encodePathSegment(pathSegment, enc); + return pathSegment; + } + + @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") + @ResponseBody + public ResponseEntity showJson(@PathVariable("id") Long id) { + Salt salt = Salt.findSalt(id); + HttpHeaders headers = new HttpHeaders(); + headers.add("Content-Type", "application/text; charset=utf-8"); + headers.add("Access-Control-Allow-Origin", "*"); + headers.add("Access-Control-Allow-Headers", "Content-Type"); + headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 + headers.add("Pragma", "no-cache"); //HTTP 1.0 + headers.setExpires(0); // Expire the cache + if (salt == null) { + return new ResponseEntity(headers, HttpStatus.NOT_FOUND); + } + return new ResponseEntity(salt.toJson(), headers, HttpStatus.OK); + } + + @RequestMapping(headers = "Accept=application/json") + @ResponseBody + public ResponseEntity listJson() { + HttpHeaders headers = new HttpHeaders(); + headers.add("Content-Type", "application/text; charset=utf-8"); + headers.add("Access-Control-Allow-Origin", "*"); + headers.add("Access-Control-Allow-Headers", "Content-Type"); + headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 + headers.add("Pragma", "no-cache"); //HTTP 1.0 + headers.setExpires(0); // Expire the cache + return new ResponseEntity(Salt.toJsonArray(Salt.findAllSalts()), headers, HttpStatus.OK); + } + + @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") + public ResponseEntity createFromJson(@RequestBody String json) throws CmpdRegMolFormatException { + HttpHeaders headers = new HttpHeaders(); headers.add("Content-Type", "application/text"); + headers.add("Access-Control-Allow-Origin", "*"); headers.add("Access-Control-Allow-Headers", "Content-Type"); + Salt salt = Salt.fromJsonToSalt(json); + salt.setAbbrev(salt.getAbbrev().trim()); + salt.setName(salt.getName().trim()); + ArrayList errors = new ArrayList(); + boolean validSalt = true; + List saltsByName = Salt.findSaltsByNameEquals(salt.getName()).getResultList(); + if (saltsByName.size() > 0) { + logger.error("Number of salts found: " + saltsByName.size()); + validSalt = false; + ErrorMessage error = new ErrorMessage(); + error.setLevel("error"); + error.setMessage("Duplicate salt name. Another salt exist with the same name."); + errors.add(error); + } + List saltsByAbbrev = Salt.findSaltsByAbbrevEquals(salt.getAbbrev()).getResultList(); + if (saltsByAbbrev.size() > 0) { + logger.error("Number of salts found: " + saltsByAbbrev.size()); + validSalt = false; + ErrorMessage error = new ErrorMessage(); + error.setLevel("error"); + error.setMessage("Duplicate salt abbreviation. Another salt exist with the same abbreviation."); + errors.add(error); + } + if (validSalt) { + try{ + salt = saltStructureService.saveStructure(salt); + } catch (CmpdRegMolFormatException e) { + logger.error("Error saving salt: " + e.getMessage()); + validSalt = false; + ErrorMessage error = new ErrorMessage(); + error.setLevel("error"); + error.setMessage("Error saving salt: " + e.getMessage()); + errors.add(error); + return new ResponseEntity(ErrorMessage.toJsonArray(errors), headers, HttpStatus.BAD_REQUEST); + } + } + if (salt.getCdId() == -1) { + ErrorMessage error = new ErrorMessage(); + error.setLevel("error"); + error.setMessage("Bad molformat. Please fix the molfile: " + salt.getMolStructure()); + errors.add(error); + return new ResponseEntity(ErrorMessage.toJsonArray(errors), headers, HttpStatus.BAD_REQUEST); + } else if (salt.getCdId() > 0) { + salt.persist(); + return showJson(salt.getId()); + } else { + ErrorMessage error = new ErrorMessage(); + error.setLevel("warning"); + error.setMessage("Duplicate salt found. Please select existing salt."); + errors.add(error); + return new ResponseEntity(ErrorMessage.toJsonArray(errors), headers, HttpStatus.CONFLICT); + } + } + + // @RequestMapping(method = RequestMethod.OPTIONS) + // public ResponseEntity getSaltOptions() { + // HttpHeaders headers = new HttpHeaders(); + // headers.add("Content-Type", "application/text, text/html"); + // headers.add("Access-Control-Allow-Headers", "Content-Type"); + // headers.add("Access-Control-Allow-Origin", "*"); + // headers.add("Access-Control-Max-Age", "86400"); + // return new ResponseEntity(headers, HttpStatus.OK); + // } + + @RequestMapping(method = RequestMethod.PUT) + public String update(@Valid Salt salt, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { + if (bindingResult.hasErrors()) { + uiModel.addAttribute("salt", salt); + return "salts/update"; + } + uiModel.asMap().clear(); + try { + logger.debug("Salt weight: " + chemStructureService.getMolWeight(salt.getMolStructure())); + } catch (CmpdRegMolFormatException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } + Salt updatedSalt = null; + try{ + updatedSalt = saltStructureService.update(salt); + }catch (CmpdRegMolFormatException e) { + logger.error("Bad mol format",e); + updatedSalt = null; + } + ArrayList errors = new ArrayList(); + if (updatedSalt == null) { + ErrorMessage error = new ErrorMessage(); + error.setLevel("error"); + error.setMessage("Bad molformat. Please fix the molfile: " + salt.getMolStructure()); + errors.add(error); + return "redirect:/salts/"; + } + return "redirect:/salts/" + encodeUrlPathSegment(salt.getId().toString(), httpServletRequest); + } + + @RequestMapping(method = RequestMethod.PUT, headers = "Accept=application/json") + public ResponseEntity updateFromJson(@RequestBody String json) { + HttpHeaders headers = new HttpHeaders(); + headers.add("Content-Type", "application/text"); + try { + Salt updatedSalt = saltStructureService.update(Salt.fromJsonToSalt(json)); + ArrayList errors = new ArrayList(); + if (updatedSalt == null) { + return new ResponseEntity(ErrorMessage.toJsonArray(errors), headers, HttpStatus.CONFLICT); + } else { + return new ResponseEntity(updatedSalt.toJson(), headers, HttpStatus.OK); + } + }catch (CmpdRegMolFormatException e) { + return new ResponseEntity("ERROR: Bad molfile:"+e.getMessage(), headers, HttpStatus.INTERNAL_SERVER_ERROR); + } + } + + @RequestMapping(value = "/saveMissingStructures", method = RequestMethod.POST, headers = "Accept=application/json") + public ResponseEntity saveMissingStructures() { + HttpHeaders headers = new HttpHeaders(); + headers.add("Content-Type", "application/text; charset=utf-8"); headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control","no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma","no-cache"); //HTTP 1.0 + headers.add("Access-Control-Allow-Headers", "Content-Type"); + headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 + headers.add("Pragma", "no-cache"); //HTTP 1.0 headers.setExpires(0); // Expire the cache - return new ResponseEntity(headers, HttpStatus.OK); + try { + Collection missingSaltStructures = saltStructureService.saveMissingStructures(); + return new ResponseEntity(Salt.toJsonArray(missingSaltStructures), headers, HttpStatus.OK); + }catch (StructureSaveException e) { + return new ResponseEntity("ERROR: Saving missing structures:"+e.getMessage(), headers, HttpStatus.INTERNAL_SERVER_ERROR); + } + } } diff --git a/src/main/java/com/labsynch/labseer/web/SaltController.java b/src/main/java/com/labsynch/labseer/web/SaltController.java deleted file mode 100755 index f5c39d934..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltController.java +++ /dev/null @@ -1,256 +0,0 @@ -package com.labsynch.labseer.web; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import java.util.Map; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -import com.labsynch.labseer.domain.Salt; -import com.labsynch.labseer.exceptions.CmpdRegMolFormatException; -import com.labsynch.labseer.exceptions.StructureSaveException; -import com.labsynch.labseer.service.ChemStructureService; -import com.labsynch.labseer.service.ErrorMessage; -import com.labsynch.labseer.service.SaltStructureService; -import com.labsynch.labseer.utils.MoleculeUtil; -import com.mysema.query.BooleanBuilder; -import com.mysema.query.types.path.PathBuilder; - -@RooWebScaffold(path = "salts", formBackingObject = Salt.class) -@RequestMapping("/salts") -@Controller -@Transactional - -@RooWebFinder -public class SaltController { - - private static final Logger logger = LoggerFactory.getLogger(SaltController.class); - - @Autowired - private SaltStructureService saltStructureService; - - @Autowired - private ChemStructureService chemStructureService; - - @RequestMapping(method = RequestMethod.POST) - public String create(@Valid Salt salt, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) throws CmpdRegMolFormatException { - if (bindingResult.hasErrors()) { - uiModel.addAttribute("salt", salt); - return "salts/create"; - } - uiModel.asMap().clear(); - salt = saltStructureService.saveStructure(salt); - if (salt.getCdId() > 0 && salt.getCdId() != -1) { - salt.persist(); - return "redirect:/salts/" + encodeUrlPathSegment(salt.getId().toString(), httpServletRequest); - } else { - //remove the salt from the Salt_Structure table?? - uiModel.addAttribute("salt", salt); - return "salts/create"; - } - } - - @ModelAttribute("salts") - public Collection populateSalts() { - return Salt.findAllSalts(); - } - - String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - Salt salt = Salt.findSalt(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - if (salt == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(salt.toJson(), headers, HttpStatus.OK); - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - return new ResponseEntity(Salt.toJsonArray(Salt.findAllSalts()), headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json) throws CmpdRegMolFormatException { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - Salt salt = Salt.fromJsonToSalt(json); - salt.setAbbrev(salt.getAbbrev().trim()); - salt.setName(salt.getName().trim()); - ArrayList errors = new ArrayList(); - boolean validSalt = true; - List saltsByName = Salt.findSaltsByNameEquals(salt.getName()).getResultList(); - if (saltsByName.size() > 0) { - logger.error("Number of salts found: " + saltsByName.size()); - validSalt = false; - ErrorMessage error = new ErrorMessage(); - error.setLevel("error"); - error.setMessage("Duplicate salt name. Another salt exist with the same name."); - errors.add(error); - } - List saltsByAbbrev = Salt.findSaltsByAbbrevEquals(salt.getAbbrev()).getResultList(); - if (saltsByAbbrev.size() > 0) { - logger.error("Number of salts found: " + saltsByAbbrev.size()); - validSalt = false; - ErrorMessage error = new ErrorMessage(); - error.setLevel("error"); - error.setMessage("Duplicate salt abbreviation. Another salt exist with the same abbreviation."); - errors.add(error); - } - if (validSalt) { - try{ - salt = saltStructureService.saveStructure(salt); - } catch (CmpdRegMolFormatException e) { - logger.error("Error saving salt: " + e.getMessage()); - validSalt = false; - ErrorMessage error = new ErrorMessage(); - error.setLevel("error"); - error.setMessage("Error saving salt: " + e.getMessage()); - errors.add(error); - return new ResponseEntity(ErrorMessage.toJsonArray(errors), headers, HttpStatus.BAD_REQUEST); - } - } - if (salt.getCdId() == -1) { - ErrorMessage error = new ErrorMessage(); - error.setLevel("error"); - error.setMessage("Bad molformat. Please fix the molfile: " + salt.getMolStructure()); - errors.add(error); - return new ResponseEntity(ErrorMessage.toJsonArray(errors), headers, HttpStatus.BAD_REQUEST); - } else if (salt.getCdId() > 0) { - salt.persist(); - return showJson(salt.getId()); - } else { - ErrorMessage error = new ErrorMessage(); - error.setLevel("warning"); - error.setMessage("Duplicate salt found. Please select existing salt."); - errors.add(error); - return new ResponseEntity(ErrorMessage.toJsonArray(errors), headers, HttpStatus.CONFLICT); - } - } - - @RequestMapping(method = RequestMethod.OPTIONS) - public ResponseEntity getSaltOptions() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text, text/html"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Max-Age", "86400"); - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.PUT) - public String update(@Valid Salt salt, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - uiModel.addAttribute("salt", salt); - return "salts/update"; - } - uiModel.asMap().clear(); - try { - logger.debug("Salt weight: " + chemStructureService.getMolWeight(salt.getMolStructure())); - } catch (CmpdRegMolFormatException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } - Salt updatedSalt = null; - try{ - updatedSalt = saltStructureService.update(salt); - }catch (CmpdRegMolFormatException e) { - logger.error("Bad mol format",e); - updatedSalt = null; - } - ArrayList errors = new ArrayList(); - if (updatedSalt == null) { - ErrorMessage error = new ErrorMessage(); - error.setLevel("error"); - error.setMessage("Bad molformat. Please fix the molfile: " + salt.getMolStructure()); - errors.add(error); - return "redirect:/salts/"; - } - return "redirect:/salts/" + encodeUrlPathSegment(salt.getId().toString(), httpServletRequest); - } - - @RequestMapping(method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - try { - Salt updatedSalt = saltStructureService.update(Salt.fromJsonToSalt(json)); - ArrayList errors = new ArrayList(); - if (updatedSalt == null) { - return new ResponseEntity(ErrorMessage.toJsonArray(errors), headers, HttpStatus.CONFLICT); - } else { - return new ResponseEntity(updatedSalt.toJson(), headers, HttpStatus.OK); - } - }catch (CmpdRegMolFormatException e) { - return new ResponseEntity("ERROR: Bad molfile:"+e.getMessage(), headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/saveMissingStructures", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity saveMissingStructures() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - try { - Collection missingSaltStructures = saltStructureService.saveMissingStructures(); - return new ResponseEntity(Salt.toJsonArray(missingSaltStructures), headers, HttpStatus.OK); - }catch (StructureSaveException e) { - return new ResponseEntity("ERROR: Saving missing structures:"+e.getMessage(), headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SaltController_Roo_Controller.aj deleted file mode 100644 index 26acb4d0d..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltController_Roo_Controller.aj +++ /dev/null @@ -1,63 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Salt; -import com.labsynch.labseer.web.SaltController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect SaltController_Roo_Controller { - - @RequestMapping(params = "form", produces = "text/html") - public String SaltController.createForm(Model uiModel) { - populateEditForm(uiModel, new Salt()); - return "salts/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String SaltController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("salt", Salt.findSalt(id)); - uiModel.addAttribute("itemId", id); - return "salts/show"; - } - - @RequestMapping(produces = "text/html") - public String SaltController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("salts", Salt.findSaltEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) Salt.countSalts() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("salts", Salt.findAllSalts(sortFieldName, sortOrder)); - } - return "salts/list"; - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String SaltController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, Salt.findSalt(id)); - return "salts/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String SaltController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - Salt salt = Salt.findSalt(id); - salt.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/salts"; - } - - void SaltController.populateEditForm(Model uiModel, Salt salt) { - uiModel.addAttribute("salt", salt); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/SaltController_Roo_Controller_Finder.aj deleted file mode 100644 index 679be0cff..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,110 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Salt; -import com.labsynch.labseer.web.SaltController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect SaltController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByAbbrevEquals", "form" }, method = RequestMethod.GET) - public String SaltController.findSaltsByAbbrevEqualsForm(Model uiModel) { - return "salts/findSaltsByAbbrevEquals"; - } - - @RequestMapping(params = "find=ByAbbrevEquals", method = RequestMethod.GET) - public String SaltController.findSaltsByAbbrevEquals(@RequestParam("abbrev") String abbrev, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("salts", Salt.findSaltsByAbbrevEquals(abbrev, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Salt.countFindSaltsByAbbrevEquals(abbrev) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("salts", Salt.findSaltsByAbbrevEquals(abbrev, sortFieldName, sortOrder).getResultList()); - } - return "salts/list"; - } - - @RequestMapping(params = { "find=ByAbbrevEqualsAndNameEquals", "form" }, method = RequestMethod.GET) - public String SaltController.findSaltsByAbbrevEqualsAndNameEqualsForm(Model uiModel) { - return "salts/findSaltsByAbbrevEqualsAndNameEquals"; - } - - @RequestMapping(params = "find=ByAbbrevEqualsAndNameEquals", method = RequestMethod.GET) - public String SaltController.findSaltsByAbbrevEqualsAndNameEquals(@RequestParam("abbrev") String abbrev, @RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("salts", Salt.findSaltsByAbbrevEqualsAndNameEquals(abbrev, name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Salt.countFindSaltsByAbbrevEqualsAndNameEquals(abbrev, name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("salts", Salt.findSaltsByAbbrevEqualsAndNameEquals(abbrev, name, sortFieldName, sortOrder).getResultList()); - } - return "salts/list"; - } - - @RequestMapping(params = { "find=ByAbbrevLike", "form" }, method = RequestMethod.GET) - public String SaltController.findSaltsByAbbrevLikeForm(Model uiModel) { - return "salts/findSaltsByAbbrevLike"; - } - - @RequestMapping(params = "find=ByAbbrevLike", method = RequestMethod.GET) - public String SaltController.findSaltsByAbbrevLike(@RequestParam("abbrev") String abbrev, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("salts", Salt.findSaltsByAbbrevLike(abbrev, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Salt.countFindSaltsByAbbrevLike(abbrev) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("salts", Salt.findSaltsByAbbrevLike(abbrev, sortFieldName, sortOrder).getResultList()); - } - return "salts/list"; - } - - @RequestMapping(params = { "find=ByCdId", "form" }, method = RequestMethod.GET) - public String SaltController.findSaltsByCdIdForm(Model uiModel) { - return "salts/findSaltsByCdId"; - } - - @RequestMapping(params = "find=ByCdId", method = RequestMethod.GET) - public String SaltController.findSaltsByCdId(@RequestParam("cdId") int cdId, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("salts", Salt.findSaltsByCdId(cdId, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Salt.countFindSaltsByCdId(cdId) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("salts", Salt.findSaltsByCdId(cdId, sortFieldName, sortOrder).getResultList()); - } - return "salts/list"; - } - - @RequestMapping(params = { "find=ByNameEquals", "form" }, method = RequestMethod.GET) - public String SaltController.findSaltsByNameEqualsForm(Model uiModel) { - return "salts/findSaltsByNameEquals"; - } - - @RequestMapping(params = "find=ByNameEquals", method = RequestMethod.GET) - public String SaltController.findSaltsByNameEquals(@RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("salts", Salt.findSaltsByNameEquals(name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Salt.countFindSaltsByNameEquals(name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("salts", Salt.findSaltsByNameEquals(name, sortFieldName, sortOrder).getResultList()); - } - return "salts/list"; - } - -} From bab6c19d863cd2e73816d29c5920826bbd6120ff Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 08:46:34 -0700 Subject: [PATCH 33/73] Isotope controller --- .../ApiIsotopeController.java} | 31 +++----- .../web/IsotopeController_Roo_Controller.aj | 16 ----- ...IsotopeController_Roo_Controller_Finder.aj | 72 ------------------- 3 files changed, 11 insertions(+), 108 deletions(-) rename src/main/java/com/labsynch/labseer/{web/IsotopeController.java => api/ApiIsotopeController.java} (95%) mode change 100755 => 100644 delete mode 100644 src/main/java/com/labsynch/labseer/web/IsotopeController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/IsotopeController_Roo_Controller_Finder.aj diff --git a/src/main/java/com/labsynch/labseer/web/IsotopeController.java b/src/main/java/com/labsynch/labseer/api/ApiIsotopeController.java old mode 100755 new mode 100644 similarity index 95% rename from src/main/java/com/labsynch/labseer/web/IsotopeController.java rename to src/main/java/com/labsynch/labseer/api/ApiIsotopeController.java index 4792c5177..da6f86221 --- a/src/main/java/com/labsynch/labseer/web/IsotopeController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiIsotopeController.java @@ -1,21 +1,22 @@ -package com.labsynch.labseer.web; -import java.io.UnsupportedEncodingException; +package com.labsynch.labseer.api; + import java.util.ArrayList; import java.util.Collection; import java.util.List; -import java.util.Map; + import javax.servlet.http.HttpServletRequest; import javax.validation.Valid; +import com.labsynch.labseer.domain.Isotope; +import com.labsynch.labseer.service.ErrorList; +import com.labsynch.labseer.service.ErrorMessage; + import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; import org.springframework.ui.Model; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.ModelAttribute; @@ -28,21 +29,11 @@ import org.springframework.web.util.UriUtils; import org.springframework.web.util.WebUtils; -import com.labsynch.labseer.domain.Isotope; -import com.labsynch.labseer.service.ErrorList; -import com.labsynch.labseer.service.ErrorMessage; -import com.mysema.query.BooleanBuilder; -import com.mysema.query.types.path.PathBuilder; - -@RooWebScaffold(path = "isotopes", formBackingObject = Isotope.class) -@RequestMapping("/isotopes") -@Transactional +@RequestMapping(value = {"/api/v1/isotopes"}) @Controller - -@RooWebFinder -public class IsotopeController { - - private static final Logger logger = LoggerFactory.getLogger(IsotopeController.class); +public class ApiIsotopeController { + + private static final Logger logger = LoggerFactory.getLogger(ApiIsotopeController.class); @RequestMapping(method = RequestMethod.POST) public String create(@Valid Isotope isotope, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { diff --git a/src/main/java/com/labsynch/labseer/web/IsotopeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/IsotopeController_Roo_Controller.aj deleted file mode 100644 index 758aa59e6..000000000 --- a/src/main/java/com/labsynch/labseer/web/IsotopeController_Roo_Controller.aj +++ /dev/null @@ -1,16 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Isotope; -import com.labsynch.labseer.web.IsotopeController; -import org.springframework.ui.Model; - -privileged aspect IsotopeController_Roo_Controller { - - void IsotopeController.populateEditForm(Model uiModel, Isotope isotope) { - uiModel.addAttribute("isotope", isotope); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/IsotopeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/IsotopeController_Roo_Controller_Finder.aj deleted file mode 100644 index 24a04fe4c..000000000 --- a/src/main/java/com/labsynch/labseer/web/IsotopeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,72 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Isotope; -import com.labsynch.labseer.web.IsotopeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect IsotopeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByAbbrevEquals", "form" }, method = RequestMethod.GET) - public String IsotopeController.findIsotopesByAbbrevEqualsForm(Model uiModel) { - return "isotopes/findIsotopesByAbbrevEquals"; - } - - @RequestMapping(params = "find=ByAbbrevEquals", method = RequestMethod.GET) - public String IsotopeController.findIsotopesByAbbrevEquals(@RequestParam("abbrev") String abbrev, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("isotopes", Isotope.findIsotopesByAbbrevEquals(abbrev, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Isotope.countFindIsotopesByAbbrevEquals(abbrev) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("isotopes", Isotope.findIsotopesByAbbrevEquals(abbrev, sortFieldName, sortOrder).getResultList()); - } - return "isotopes/list"; - } - - @RequestMapping(params = { "find=ByAbbrevEqualsAndNameEquals", "form" }, method = RequestMethod.GET) - public String IsotopeController.findIsotopesByAbbrevEqualsAndNameEqualsForm(Model uiModel) { - return "isotopes/findIsotopesByAbbrevEqualsAndNameEquals"; - } - - @RequestMapping(params = "find=ByAbbrevEqualsAndNameEquals", method = RequestMethod.GET) - public String IsotopeController.findIsotopesByAbbrevEqualsAndNameEquals(@RequestParam("abbrev") String abbrev, @RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("isotopes", Isotope.findIsotopesByAbbrevEqualsAndNameEquals(abbrev, name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Isotope.countFindIsotopesByAbbrevEqualsAndNameEquals(abbrev, name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("isotopes", Isotope.findIsotopesByAbbrevEqualsAndNameEquals(abbrev, name, sortFieldName, sortOrder).getResultList()); - } - return "isotopes/list"; - } - - @RequestMapping(params = { "find=ByNameEquals", "form" }, method = RequestMethod.GET) - public String IsotopeController.findIsotopesByNameEqualsForm(Model uiModel) { - return "isotopes/findIsotopesByNameEquals"; - } - - @RequestMapping(params = "find=ByNameEquals", method = RequestMethod.GET) - public String IsotopeController.findIsotopesByNameEquals(@RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("isotopes", Isotope.findIsotopesByNameEquals(name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Isotope.countFindIsotopesByNameEquals(name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("isotopes", Isotope.findIsotopesByNameEquals(name, sortFieldName, sortOrder).getResultList()); - } - return "isotopes/list"; - } - -} From d8e744853201d85df212edee71ef0e02ca268e33 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 08:56:40 -0700 Subject: [PATCH 34/73] Remove unused stereocategory controller --- .../labseer/web/StereoCategoryController.java | 143 ------------------ ...StereoCategoryController_Roo_Controller.aj | 100 ------------ ...ategoryController_Roo_Controller_Finder.aj | 53 ------- 3 files changed, 296 deletions(-) delete mode 100755 src/main/java/com/labsynch/labseer/web/StereoCategoryController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/StereoCategoryController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/StereoCategoryController_Roo_Controller_Finder.aj diff --git a/src/main/java/com/labsynch/labseer/web/StereoCategoryController.java b/src/main/java/com/labsynch/labseer/web/StereoCategoryController.java deleted file mode 100755 index 7fd9b18b2..000000000 --- a/src/main/java/com/labsynch/labseer/web/StereoCategoryController.java +++ /dev/null @@ -1,143 +0,0 @@ -package com.labsynch.labseer.web; -import javax.servlet.http.HttpServletRequest; - -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -import com.labsynch.labseer.domain.StereoCategory; - -import com.labsynch.labseer.utils.PropertiesUtilService; -import org.springframework.beans.factory.annotation.Autowired; - -@RooWebScaffold(path = "stereocategorys", formBackingObject = StereoCategory.class) -@RequestMapping({ "/stereoCategorys", "/stereocategorys", "/stereoCategories" }) -@Transactional -@Controller - -@RooWebFinder -public class StereoCategoryController { - - - @Autowired - private PropertiesUtilService propertiesUtilService; - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - StereoCategory stereocategory = StereoCategory.findStereoCategory(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - if (stereocategory == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(stereocategory.toJson(), headers, HttpStatus.OK); - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - - if (propertiesUtilService.getOrderSelectLists()){ - return new ResponseEntity(StereoCategory.toJsonArray(StereoCategory.findAllStereoCategorys("name","ASC")), headers, HttpStatus.OK); - } else { - return new ResponseEntity(StereoCategory.toJsonArray(StereoCategory.findAllStereoCategorys()), headers, HttpStatus.OK); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json) { - StereoCategory.fromJsonToStereoCategory(json).persist(); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - for (StereoCategory stereoCategory : StereoCategory.fromJsonArrayToStereoCategorys(json)) { - stereoCategory.persist(); - } - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - if (StereoCategory.fromJsonToStereoCategory(json).merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - for (StereoCategory stereoCategory : StereoCategory.fromJsonArrayToStereoCategorys(json)) { - if (stereoCategory.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - StereoCategory stereocategory = StereoCategory.findStereoCategory(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - if (stereocategory == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - stereocategory.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.OPTIONS) - public ResponseEntity getOptions() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text, text/html"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Max-Age", "86400"); - return new ResponseEntity(headers, HttpStatus.OK); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/StereoCategoryController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/StereoCategoryController_Roo_Controller.aj deleted file mode 100644 index 795184894..000000000 --- a/src/main/java/com/labsynch/labseer/web/StereoCategoryController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.StereoCategory; -import com.labsynch.labseer.web.StereoCategoryController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect StereoCategoryController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String StereoCategoryController.create(@Valid StereoCategory stereoCategory, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, stereoCategory); - return "stereocategorys/create"; - } - uiModel.asMap().clear(); - stereoCategory.persist(); - return "redirect:/stereocategorys/" + encodeUrlPathSegment(stereoCategory.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String StereoCategoryController.createForm(Model uiModel) { - populateEditForm(uiModel, new StereoCategory()); - return "stereocategorys/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String StereoCategoryController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("stereocategory", StereoCategory.findStereoCategory(id)); - uiModel.addAttribute("itemId", id); - return "stereocategorys/show"; - } - - @RequestMapping(produces = "text/html") - public String StereoCategoryController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("stereocategorys", StereoCategory.findStereoCategoryEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) StereoCategory.countStereoCategorys() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("stereocategorys", StereoCategory.findAllStereoCategorys(sortFieldName, sortOrder)); - } - return "stereocategorys/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String StereoCategoryController.update(@Valid StereoCategory stereoCategory, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, stereoCategory); - return "stereocategorys/update"; - } - uiModel.asMap().clear(); - stereoCategory.merge(); - return "redirect:/stereocategorys/" + encodeUrlPathSegment(stereoCategory.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String StereoCategoryController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, StereoCategory.findStereoCategory(id)); - return "stereocategorys/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String StereoCategoryController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - StereoCategory stereoCategory = StereoCategory.findStereoCategory(id); - stereoCategory.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/stereocategorys"; - } - - void StereoCategoryController.populateEditForm(Model uiModel, StereoCategory stereoCategory) { - uiModel.addAttribute("stereoCategory", stereoCategory); - } - - String StereoCategoryController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/StereoCategoryController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/StereoCategoryController_Roo_Controller_Finder.aj deleted file mode 100644 index 21720359d..000000000 --- a/src/main/java/com/labsynch/labseer/web/StereoCategoryController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,53 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.StereoCategory; -import com.labsynch.labseer.web.StereoCategoryController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect StereoCategoryController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeEquals", "form" }, method = RequestMethod.GET) - public String StereoCategoryController.findStereoCategorysByCodeEqualsForm(Model uiModel) { - return "stereocategorys/findStereoCategorysByCodeEquals"; - } - - @RequestMapping(params = "find=ByCodeEquals", method = RequestMethod.GET) - public String StereoCategoryController.findStereoCategorysByCodeEquals(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("stereocategorys", StereoCategory.findStereoCategorysByCodeEquals(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) StereoCategory.countFindStereoCategorysByCodeEquals(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("stereocategorys", StereoCategory.findStereoCategorysByCodeEquals(code, sortFieldName, sortOrder).getResultList()); - } - return "stereocategorys/list"; - } - - @RequestMapping(params = { "find=ByCodeLike", "form" }, method = RequestMethod.GET) - public String StereoCategoryController.findStereoCategorysByCodeLikeForm(Model uiModel) { - return "stereocategorys/findStereoCategorysByCodeLike"; - } - - @RequestMapping(params = "find=ByCodeLike", method = RequestMethod.GET) - public String StereoCategoryController.findStereoCategorysByCodeLike(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("stereocategorys", StereoCategory.findStereoCategorysByCodeLike(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) StereoCategory.countFindStereoCategorysByCodeLike(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("stereocategorys", StereoCategory.findStereoCategorysByCodeLike(code, sortFieldName, sortOrder).getResultList()); - } - return "stereocategorys/list"; - } - -} From b2bd088a8f6ae496a2200a58eba03986bfc61a0f Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 09:04:50 -0700 Subject: [PATCH 35/73] Compound type controller --- .../ApiCompoundTypeController.java} | 19 +--- .../CompoundTypeController_Roo_Controller.aj | 100 ------------------ ...undTypeController_Roo_Controller_Finder.aj | 34 ------ 3 files changed, 4 insertions(+), 149 deletions(-) rename src/main/java/com/labsynch/labseer/{web/CompoundTypeController.java => api/ApiCompoundTypeController.java} (90%) delete mode 100644 src/main/java/com/labsynch/labseer/web/CompoundTypeController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/CompoundTypeController_Roo_Controller_Finder.aj diff --git a/src/main/java/com/labsynch/labseer/web/CompoundTypeController.java b/src/main/java/com/labsynch/labseer/api/ApiCompoundTypeController.java similarity index 90% rename from src/main/java/com/labsynch/labseer/web/CompoundTypeController.java rename to src/main/java/com/labsynch/labseer/api/ApiCompoundTypeController.java index 572d44495..0a46d1df4 100644 --- a/src/main/java/com/labsynch/labseer/web/CompoundTypeController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiCompoundTypeController.java @@ -1,30 +1,19 @@ -package com.labsynch.labseer.web; -import javax.servlet.http.HttpServletRequest; +package com.labsynch.labseer.api; +import com.labsynch.labseer.domain.CompoundType; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; -import com.labsynch.labseer.domain.CompoundType; - -@RooWebScaffold(path = "compoundTypes", formBackingObject = CompoundType.class) -@RequestMapping("/compoundTypes") -@Transactional +@RequestMapping(value = {"/api/v1/compoundTypes"}) @Controller - -@RooWebFinder -public class CompoundTypeController { +public class ApiCompoundTypeController { @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") diff --git a/src/main/java/com/labsynch/labseer/web/CompoundTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CompoundTypeController_Roo_Controller.aj deleted file mode 100644 index 18b369622..000000000 --- a/src/main/java/com/labsynch/labseer/web/CompoundTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CompoundType; -import com.labsynch.labseer.web.CompoundTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect CompoundTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String CompoundTypeController.create(@Valid CompoundType compoundType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, compoundType); - return "compoundTypes/create"; - } - uiModel.asMap().clear(); - compoundType.persist(); - return "redirect:/compoundTypes/" + encodeUrlPathSegment(compoundType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String CompoundTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new CompoundType()); - return "compoundTypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String CompoundTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("compoundtype", CompoundType.findCompoundType(id)); - uiModel.addAttribute("itemId", id); - return "compoundTypes/show"; - } - - @RequestMapping(produces = "text/html") - public String CompoundTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("compoundtypes", CompoundType.findCompoundTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) CompoundType.countCompoundTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("compoundtypes", CompoundType.findAllCompoundTypes(sortFieldName, sortOrder)); - } - return "compoundTypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String CompoundTypeController.update(@Valid CompoundType compoundType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, compoundType); - return "compoundTypes/update"; - } - uiModel.asMap().clear(); - compoundType.merge(); - return "redirect:/compoundTypes/" + encodeUrlPathSegment(compoundType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String CompoundTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, CompoundType.findCompoundType(id)); - return "compoundTypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String CompoundTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - CompoundType compoundType = CompoundType.findCompoundType(id); - compoundType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/compoundTypes"; - } - - void CompoundTypeController.populateEditForm(Model uiModel, CompoundType compoundType) { - uiModel.addAttribute("compoundType", compoundType); - } - - String CompoundTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CompoundTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/CompoundTypeController_Roo_Controller_Finder.aj deleted file mode 100644 index 22b0f2300..000000000 --- a/src/main/java/com/labsynch/labseer/web/CompoundTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CompoundType; -import com.labsynch.labseer.web.CompoundTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect CompoundTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeEquals", "form" }, method = RequestMethod.GET) - public String CompoundTypeController.findCompoundTypesByCodeEqualsForm(Model uiModel) { - return "compoundTypes/findCompoundTypesByCodeEquals"; - } - - @RequestMapping(params = "find=ByCodeEquals", method = RequestMethod.GET) - public String CompoundTypeController.findCompoundTypesByCodeEquals(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("compoundtypes", CompoundType.findCompoundTypesByCodeEquals(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) CompoundType.countFindCompoundTypesByCodeEquals(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("compoundtypes", CompoundType.findCompoundTypesByCodeEquals(code, sortFieldName, sortOrder).getResultList()); - } - return "compoundTypes/list"; - } - -} From 82595f3f6cbd025a2a826ab6e3bf2955e1b8d8e9 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 09:12:34 -0700 Subject: [PATCH 36/73] Parent annotations controller --- .../ApiParentAnnotationController.java} | 9 +- ...rentAnnotationController_Roo_Controller.aj | 100 ------------------ ...otationController_Roo_Controller_Finder.aj | 34 ------ 3 files changed, 3 insertions(+), 140 deletions(-) rename src/main/java/com/labsynch/labseer/{web/ParentAnnotationController.java => api/ApiParentAnnotationController.java} (96%) delete mode 100644 src/main/java/com/labsynch/labseer/web/ParentAnnotationController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ParentAnnotationController_Roo_Controller_Finder.aj diff --git a/src/main/java/com/labsynch/labseer/web/ParentAnnotationController.java b/src/main/java/com/labsynch/labseer/api/ApiParentAnnotationController.java similarity index 96% rename from src/main/java/com/labsynch/labseer/web/ParentAnnotationController.java rename to src/main/java/com/labsynch/labseer/api/ApiParentAnnotationController.java index fbfe75b50..4d2d16327 100644 --- a/src/main/java/com/labsynch/labseer/web/ParentAnnotationController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiParentAnnotationController.java @@ -1,4 +1,4 @@ -package com.labsynch.labseer.web; +package com.labsynch.labseer.api; import javax.servlet.http.HttpServletRequest; import org.springframework.http.HttpHeaders; @@ -18,13 +18,10 @@ import com.labsynch.labseer.domain.ParentAnnotation; -@RooWebScaffold(path = "parentAnnotations", formBackingObject = ParentAnnotation.class) -@RequestMapping("/parentAnnotations") +@RequestMapping(value = {"/api/v1/parentAnnotations"}) @Transactional @Controller - -@RooWebFinder -public class ParentAnnotationController { +public class ApiParentAnnotationController { @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") @ResponseBody diff --git a/src/main/java/com/labsynch/labseer/web/ParentAnnotationController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ParentAnnotationController_Roo_Controller.aj deleted file mode 100644 index 38e5f01da..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentAnnotationController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ParentAnnotation; -import com.labsynch.labseer.web.ParentAnnotationController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ParentAnnotationController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ParentAnnotationController.create(@Valid ParentAnnotation parentAnnotation, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, parentAnnotation); - return "parentAnnotations/create"; - } - uiModel.asMap().clear(); - parentAnnotation.persist(); - return "redirect:/parentAnnotations/" + encodeUrlPathSegment(parentAnnotation.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ParentAnnotationController.createForm(Model uiModel) { - populateEditForm(uiModel, new ParentAnnotation()); - return "parentAnnotations/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ParentAnnotationController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("parentannotation", ParentAnnotation.findParentAnnotation(id)); - uiModel.addAttribute("itemId", id); - return "parentAnnotations/show"; - } - - @RequestMapping(produces = "text/html") - public String ParentAnnotationController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parentannotations", ParentAnnotation.findParentAnnotationEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ParentAnnotation.countParentAnnotations() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parentannotations", ParentAnnotation.findAllParentAnnotations(sortFieldName, sortOrder)); - } - return "parentAnnotations/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ParentAnnotationController.update(@Valid ParentAnnotation parentAnnotation, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, parentAnnotation); - return "parentAnnotations/update"; - } - uiModel.asMap().clear(); - parentAnnotation.merge(); - return "redirect:/parentAnnotations/" + encodeUrlPathSegment(parentAnnotation.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ParentAnnotationController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ParentAnnotation.findParentAnnotation(id)); - return "parentAnnotations/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ParentAnnotationController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ParentAnnotation parentAnnotation = ParentAnnotation.findParentAnnotation(id); - parentAnnotation.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/parentAnnotations"; - } - - void ParentAnnotationController.populateEditForm(Model uiModel, ParentAnnotation parentAnnotation) { - uiModel.addAttribute("parentAnnotation", parentAnnotation); - } - - String ParentAnnotationController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ParentAnnotationController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ParentAnnotationController_Roo_Controller_Finder.aj deleted file mode 100644 index 27c4913e7..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentAnnotationController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ParentAnnotation; -import com.labsynch.labseer.web.ParentAnnotationController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ParentAnnotationController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeEquals", "form" }, method = RequestMethod.GET) - public String ParentAnnotationController.findParentAnnotationsByCodeEqualsForm(Model uiModel) { - return "parentAnnotations/findParentAnnotationsByCodeEquals"; - } - - @RequestMapping(params = "find=ByCodeEquals", method = RequestMethod.GET) - public String ParentAnnotationController.findParentAnnotationsByCodeEquals(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parentannotations", ParentAnnotation.findParentAnnotationsByCodeEquals(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ParentAnnotation.countFindParentAnnotationsByCodeEquals(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parentannotations", ParentAnnotation.findParentAnnotationsByCodeEquals(code, sortFieldName, sortOrder).getResultList()); - } - return "parentAnnotations/list"; - } - -} From daf5ad41c12e9d0509cd1502c2f7f07294017378 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 09:15:16 -0700 Subject: [PATCH 37/73] Add back transactional --- .../com/labsynch/labseer/api/ApiCompoundTypeController.java | 2 ++ src/main/java/com/labsynch/labseer/api/ApiSaltController.java | 2 ++ .../com/labsynch/labseer/api/ApiSolutionUnitController.java | 1 + 3 files changed, 5 insertions(+) diff --git a/src/main/java/com/labsynch/labseer/api/ApiCompoundTypeController.java b/src/main/java/com/labsynch/labseer/api/ApiCompoundTypeController.java index 0a46d1df4..386e1f88d 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiCompoundTypeController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiCompoundTypeController.java @@ -5,6 +5,7 @@ import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; +import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -12,6 +13,7 @@ import org.springframework.web.bind.annotation.ResponseBody; @RequestMapping(value = {"/api/v1/compoundTypes"}) +@Transactional @Controller public class ApiCompoundTypeController { diff --git a/src/main/java/com/labsynch/labseer/api/ApiSaltController.java b/src/main/java/com/labsynch/labseer/api/ApiSaltController.java index 329d40b65..16c583d75 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiSaltController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiSaltController.java @@ -22,6 +22,7 @@ import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; +import org.springframework.transaction.annotation.Transactional; import org.springframework.ui.Model; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.ModelAttribute; @@ -35,6 +36,7 @@ import org.springframework.web.util.WebUtils; @RequestMapping(value = {"/api/v1/salts"}) +@Transactional @Controller public class ApiSaltController { diff --git a/src/main/java/com/labsynch/labseer/api/ApiSolutionUnitController.java b/src/main/java/com/labsynch/labseer/api/ApiSolutionUnitController.java index 651430af6..77e49bfe2 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiSolutionUnitController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiSolutionUnitController.java @@ -37,6 +37,7 @@ import org.springframework.web.bind.annotation.ResponseBody; @RequestMapping(value = {"/api/v1/solutionUnits"}) +@Transactional @Controller public class ApiSolutionUnitController { From d94e236e2d61c983629b4b759631ba1677a7b51e Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 09:25:31 -0700 Subject: [PATCH 38/73] Physical state controller --- .../ApiPhysicalStateController.java} | 9 +-- .../PhysicalStateController_Roo_Controller.aj | 16 ----- ...alStateController_Roo_Controller_Finder.aj | 72 ------------------- 3 files changed, 3 insertions(+), 94 deletions(-) rename src/main/java/com/labsynch/labseer/{web/PhysicalStateController.java => api/ApiPhysicalStateController.java} (97%) delete mode 100644 src/main/java/com/labsynch/labseer/web/PhysicalStateController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/PhysicalStateController_Roo_Controller_Finder.aj diff --git a/src/main/java/com/labsynch/labseer/web/PhysicalStateController.java b/src/main/java/com/labsynch/labseer/api/ApiPhysicalStateController.java similarity index 97% rename from src/main/java/com/labsynch/labseer/web/PhysicalStateController.java rename to src/main/java/com/labsynch/labseer/api/ApiPhysicalStateController.java index a761ce754..d9a50b706 100755 --- a/src/main/java/com/labsynch/labseer/web/PhysicalStateController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiPhysicalStateController.java @@ -1,4 +1,4 @@ -package com.labsynch.labseer.web; +package com.labsynch.labseer.api; import java.io.UnsupportedEncodingException; import java.util.Collection; @@ -29,13 +29,10 @@ import com.labsynch.labseer.utils.PropertiesUtilService; import org.springframework.beans.factory.annotation.Autowired; -@RooWebScaffold(path = "physicalstates", formBackingObject = PhysicalState.class) -@RequestMapping({ "/physicalstates", "/physicalStates" }) +@RequestMapping(value = {"/api/v1/physicalStates"}) @Transactional @Controller - -@RooWebFinder -public class PhysicalStateController { +public class ApiPhysicalStateController { @Autowired private PropertiesUtilService propertiesUtilService; diff --git a/src/main/java/com/labsynch/labseer/web/PhysicalStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/PhysicalStateController_Roo_Controller.aj deleted file mode 100644 index 7596b4417..000000000 --- a/src/main/java/com/labsynch/labseer/web/PhysicalStateController_Roo_Controller.aj +++ /dev/null @@ -1,16 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.PhysicalState; -import com.labsynch.labseer.web.PhysicalStateController; -import org.springframework.ui.Model; - -privileged aspect PhysicalStateController_Roo_Controller { - - void PhysicalStateController.populateEditForm(Model uiModel, PhysicalState physicalState) { - uiModel.addAttribute("physicalState", physicalState); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/PhysicalStateController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/PhysicalStateController_Roo_Controller_Finder.aj deleted file mode 100644 index fa6b5cc4c..000000000 --- a/src/main/java/com/labsynch/labseer/web/PhysicalStateController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,72 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.PhysicalState; -import com.labsynch.labseer.web.PhysicalStateController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect PhysicalStateController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeEquals", "form" }, method = RequestMethod.GET) - public String PhysicalStateController.findPhysicalStatesByCodeEqualsForm(Model uiModel) { - return "physicalstates/findPhysicalStatesByCodeEquals"; - } - - @RequestMapping(params = "find=ByCodeEquals", method = RequestMethod.GET) - public String PhysicalStateController.findPhysicalStatesByCodeEquals(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("physicalstates", PhysicalState.findPhysicalStatesByCodeEquals(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) PhysicalState.countFindPhysicalStatesByCodeEquals(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("physicalstates", PhysicalState.findPhysicalStatesByCodeEquals(code, sortFieldName, sortOrder).getResultList()); - } - return "physicalstates/list"; - } - - @RequestMapping(params = { "find=ByNameEquals", "form" }, method = RequestMethod.GET) - public String PhysicalStateController.findPhysicalStatesByNameEqualsForm(Model uiModel) { - return "physicalstates/findPhysicalStatesByNameEquals"; - } - - @RequestMapping(params = "find=ByNameEquals", method = RequestMethod.GET) - public String PhysicalStateController.findPhysicalStatesByNameEquals(@RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("physicalstates", PhysicalState.findPhysicalStatesByNameEquals(name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) PhysicalState.countFindPhysicalStatesByNameEquals(name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("physicalstates", PhysicalState.findPhysicalStatesByNameEquals(name, sortFieldName, sortOrder).getResultList()); - } - return "physicalstates/list"; - } - - @RequestMapping(params = { "find=ByNameLike", "form" }, method = RequestMethod.GET) - public String PhysicalStateController.findPhysicalStatesByNameLikeForm(Model uiModel) { - return "physicalstates/findPhysicalStatesByNameLike"; - } - - @RequestMapping(params = "find=ByNameLike", method = RequestMethod.GET) - public String PhysicalStateController.findPhysicalStatesByNameLike(@RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("physicalstates", PhysicalState.findPhysicalStatesByNameLike(name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) PhysicalState.countFindPhysicalStatesByNameLike(name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("physicalstates", PhysicalState.findPhysicalStatesByNameLike(name, sortFieldName, sortOrder).getResultList()); - } - return "physicalstates/list"; - } - -} From bc6a8a92e54867dfaa6621ec9a401557ec481bd4 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 09:35:02 -0700 Subject: [PATCH 39/73] Operator controller --- .../ApiOperatorController.java} | 9 +- .../web/OperatorController_Roo_Controller.aj | 100 ------------------ ...peratorController_Roo_Controller_Finder.aj | 53 ---------- 3 files changed, 3 insertions(+), 159 deletions(-) rename src/main/java/com/labsynch/labseer/{web/OperatorController.java => api/ApiOperatorController.java} (97%) delete mode 100644 src/main/java/com/labsynch/labseer/web/OperatorController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/OperatorController_Roo_Controller_Finder.aj diff --git a/src/main/java/com/labsynch/labseer/web/OperatorController.java b/src/main/java/com/labsynch/labseer/api/ApiOperatorController.java similarity index 97% rename from src/main/java/com/labsynch/labseer/web/OperatorController.java rename to src/main/java/com/labsynch/labseer/api/ApiOperatorController.java index 4e34f9e2e..64a4dc22a 100755 --- a/src/main/java/com/labsynch/labseer/web/OperatorController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiOperatorController.java @@ -1,4 +1,4 @@ -package com.labsynch.labseer.web; +package com.labsynch.labseer.api; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; @@ -14,13 +14,10 @@ import org.springframework.web.bind.annotation.ResponseBody; import com.labsynch.labseer.domain.Operator; -@RooWebScaffold(path = "operators", formBackingObject = Operator.class) -@RequestMapping("/operators") +@RequestMapping(value = {"/api/v1/operators"}) @Transactional @Controller - -@RooWebFinder -public class OperatorController { +public class ApiOperatorController { @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") @ResponseBody diff --git a/src/main/java/com/labsynch/labseer/web/OperatorController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/OperatorController_Roo_Controller.aj deleted file mode 100644 index 2a3b7a6b1..000000000 --- a/src/main/java/com/labsynch/labseer/web/OperatorController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Operator; -import com.labsynch.labseer.web.OperatorController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect OperatorController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String OperatorController.create(@Valid Operator operator, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, operator); - return "operators/create"; - } - uiModel.asMap().clear(); - operator.persist(); - return "redirect:/operators/" + encodeUrlPathSegment(operator.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String OperatorController.createForm(Model uiModel) { - populateEditForm(uiModel, new Operator()); - return "operators/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String OperatorController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("operator", Operator.findOperator(id)); - uiModel.addAttribute("itemId", id); - return "operators/show"; - } - - @RequestMapping(produces = "text/html") - public String OperatorController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("operators", Operator.findOperatorEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) Operator.countOperators() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("operators", Operator.findAllOperators(sortFieldName, sortOrder)); - } - return "operators/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String OperatorController.update(@Valid Operator operator, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, operator); - return "operators/update"; - } - uiModel.asMap().clear(); - operator.merge(); - return "redirect:/operators/" + encodeUrlPathSegment(operator.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String OperatorController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, Operator.findOperator(id)); - return "operators/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String OperatorController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - Operator operator = Operator.findOperator(id); - operator.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/operators"; - } - - void OperatorController.populateEditForm(Model uiModel, Operator operator) { - uiModel.addAttribute("operator", operator); - } - - String OperatorController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/OperatorController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/OperatorController_Roo_Controller_Finder.aj deleted file mode 100644 index 416723ae3..000000000 --- a/src/main/java/com/labsynch/labseer/web/OperatorController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,53 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Operator; -import com.labsynch.labseer.web.OperatorController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect OperatorController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeEquals", "form" }, method = RequestMethod.GET) - public String OperatorController.findOperatorsByCodeEqualsForm(Model uiModel) { - return "operators/findOperatorsByCodeEquals"; - } - - @RequestMapping(params = "find=ByCodeEquals", method = RequestMethod.GET) - public String OperatorController.findOperatorsByCodeEquals(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("operators", Operator.findOperatorsByCodeEquals(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Operator.countFindOperatorsByCodeEquals(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("operators", Operator.findOperatorsByCodeEquals(code, sortFieldName, sortOrder).getResultList()); - } - return "operators/list"; - } - - @RequestMapping(params = { "find=ByNameEquals", "form" }, method = RequestMethod.GET) - public String OperatorController.findOperatorsByNameEqualsForm(Model uiModel) { - return "operators/findOperatorsByNameEquals"; - } - - @RequestMapping(params = "find=ByNameEquals", method = RequestMethod.GET) - public String OperatorController.findOperatorsByNameEquals(@RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("operators", Operator.findOperatorsByNameEquals(name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Operator.countFindOperatorsByNameEquals(name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("operators", Operator.findOperatorsByNameEquals(name, sortFieldName, sortOrder).getResultList()); - } - return "operators/list"; - } - -} From dc6b15772f6e01bd52b7872f45a6b8d44e34cb6a Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 09:39:14 -0700 Subject: [PATCH 40/73] Purity measured by controller --- .../ApiPurityMeasuredByController.java} | 7 +- ...rityMeasuredByController_Roo_Controller.aj | 100 ------------------ ...suredByController_Roo_Controller_Finder.aj | 72 ------------- ...easuredByController_Roo_Controller_Json.aj | 53 ---------- 4 files changed, 2 insertions(+), 230 deletions(-) rename src/main/java/com/labsynch/labseer/{web/PurityMeasuredByController.java => api/ApiPurityMeasuredByController.java} (96%) delete mode 100644 src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller_Json.aj diff --git a/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController.java b/src/main/java/com/labsynch/labseer/api/ApiPurityMeasuredByController.java similarity index 96% rename from src/main/java/com/labsynch/labseer/web/PurityMeasuredByController.java rename to src/main/java/com/labsynch/labseer/api/ApiPurityMeasuredByController.java index efcdaa486..3731fbb95 100755 --- a/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiPurityMeasuredByController.java @@ -22,13 +22,10 @@ import org.springframework.beans.factory.annotation.Autowired; -@RequestMapping({"/puritymeasuredbys","/purityMeasuredBys"}) +@RequestMapping(value = {"/api/v1/purityMeasuredBys"}) @Controller -@RooWebJson(jsonObject = PurityMeasuredBy.class) -@RooWebScaffold(path = "puritymeasuredbys", formBackingObject = PurityMeasuredBy.class) -@RooWebFinder -public class PurityMeasuredByController { +public class ApiPurityMeasuredByController { @Autowired diff --git a/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller.aj deleted file mode 100644 index c5929897b..000000000 --- a/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.PurityMeasuredBy; -import com.labsynch.labseer.web.PurityMeasuredByController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect PurityMeasuredByController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String PurityMeasuredByController.create(@Valid PurityMeasuredBy purityMeasuredBy, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, purityMeasuredBy); - return "puritymeasuredbys/create"; - } - uiModel.asMap().clear(); - purityMeasuredBy.persist(); - return "redirect:/puritymeasuredbys/" + encodeUrlPathSegment(purityMeasuredBy.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String PurityMeasuredByController.createForm(Model uiModel) { - populateEditForm(uiModel, new PurityMeasuredBy()); - return "puritymeasuredbys/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String PurityMeasuredByController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("puritymeasuredby", PurityMeasuredBy.findPurityMeasuredBy(id)); - uiModel.addAttribute("itemId", id); - return "puritymeasuredbys/show"; - } - - @RequestMapping(produces = "text/html") - public String PurityMeasuredByController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("puritymeasuredbys", PurityMeasuredBy.findPurityMeasuredByEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) PurityMeasuredBy.countPurityMeasuredBys() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("puritymeasuredbys", PurityMeasuredBy.findAllPurityMeasuredBys(sortFieldName, sortOrder)); - } - return "puritymeasuredbys/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String PurityMeasuredByController.update(@Valid PurityMeasuredBy purityMeasuredBy, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, purityMeasuredBy); - return "puritymeasuredbys/update"; - } - uiModel.asMap().clear(); - purityMeasuredBy.merge(); - return "redirect:/puritymeasuredbys/" + encodeUrlPathSegment(purityMeasuredBy.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String PurityMeasuredByController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, PurityMeasuredBy.findPurityMeasuredBy(id)); - return "puritymeasuredbys/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String PurityMeasuredByController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - PurityMeasuredBy purityMeasuredBy = PurityMeasuredBy.findPurityMeasuredBy(id); - purityMeasuredBy.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/puritymeasuredbys"; - } - - void PurityMeasuredByController.populateEditForm(Model uiModel, PurityMeasuredBy purityMeasuredBy) { - uiModel.addAttribute("purityMeasuredBy", purityMeasuredBy); - } - - String PurityMeasuredByController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller_Finder.aj deleted file mode 100644 index b7a7e6359..000000000 --- a/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,72 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.PurityMeasuredBy; -import com.labsynch.labseer.web.PurityMeasuredByController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect PurityMeasuredByController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeEquals", "form" }, method = RequestMethod.GET) - public String PurityMeasuredByController.findPurityMeasuredBysByCodeEqualsForm(Model uiModel) { - return "puritymeasuredbys/findPurityMeasuredBysByCodeEquals"; - } - - @RequestMapping(params = "find=ByCodeEquals", method = RequestMethod.GET) - public String PurityMeasuredByController.findPurityMeasuredBysByCodeEquals(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("puritymeasuredbys", PurityMeasuredBy.findPurityMeasuredBysByCodeEquals(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) PurityMeasuredBy.countFindPurityMeasuredBysByCodeEquals(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("puritymeasuredbys", PurityMeasuredBy.findPurityMeasuredBysByCodeEquals(code, sortFieldName, sortOrder).getResultList()); - } - return "puritymeasuredbys/list"; - } - - @RequestMapping(params = { "find=ByNameEquals", "form" }, method = RequestMethod.GET) - public String PurityMeasuredByController.findPurityMeasuredBysByNameEqualsForm(Model uiModel) { - return "puritymeasuredbys/findPurityMeasuredBysByNameEquals"; - } - - @RequestMapping(params = "find=ByNameEquals", method = RequestMethod.GET) - public String PurityMeasuredByController.findPurityMeasuredBysByNameEquals(@RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("puritymeasuredbys", PurityMeasuredBy.findPurityMeasuredBysByNameEquals(name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) PurityMeasuredBy.countFindPurityMeasuredBysByNameEquals(name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("puritymeasuredbys", PurityMeasuredBy.findPurityMeasuredBysByNameEquals(name, sortFieldName, sortOrder).getResultList()); - } - return "puritymeasuredbys/list"; - } - - @RequestMapping(params = { "find=ByNameLike", "form" }, method = RequestMethod.GET) - public String PurityMeasuredByController.findPurityMeasuredBysByNameLikeForm(Model uiModel) { - return "puritymeasuredbys/findPurityMeasuredBysByNameLike"; - } - - @RequestMapping(params = "find=ByNameLike", method = RequestMethod.GET) - public String PurityMeasuredByController.findPurityMeasuredBysByNameLike(@RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("puritymeasuredbys", PurityMeasuredBy.findPurityMeasuredBysByNameLike(name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) PurityMeasuredBy.countFindPurityMeasuredBysByNameLike(name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("puritymeasuredbys", PurityMeasuredBy.findPurityMeasuredBysByNameLike(name, sortFieldName, sortOrder).getResultList()); - } - return "puritymeasuredbys/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller_Json.aj deleted file mode 100644 index 5d40bedeb..000000000 --- a/src/main/java/com/labsynch/labseer/web/PurityMeasuredByController_Roo_Controller_Json.aj +++ /dev/null @@ -1,53 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.PurityMeasuredBy; -import com.labsynch.labseer.web.PurityMeasuredByController; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -privileged aspect PurityMeasuredByController_Roo_Controller_Json { - - @RequestMapping(params = "find=ByCodeEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity PurityMeasuredByController.jsonFindPurityMeasuredBysByCodeEquals(@RequestParam("code") String code) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(PurityMeasuredBy.toJsonArray(PurityMeasuredBy.findPurityMeasuredBysByCodeEquals(code).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity PurityMeasuredByController.jsonFindPurityMeasuredBysByNameEquals(@RequestParam("name") String name) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(PurityMeasuredBy.toJsonArray(PurityMeasuredBy.findPurityMeasuredBysByNameEquals(name).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByNameLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity PurityMeasuredByController.jsonFindPurityMeasuredBysByNameLike(@RequestParam("name") String name) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(PurityMeasuredBy.toJsonArray(PurityMeasuredBy.findPurityMeasuredBysByNameLike(name).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} From 6aa3875f31e798c9592f4dd234a6967485549f64 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 09:42:13 -0700 Subject: [PATCH 41/73] Remove unused vendor controller --- .../labseer/web/VendorController.java | 152 ------------------ .../web/VendorController_Roo_Controller.aj | 100 ------------ .../VendorController_Roo_Controller_Finder.aj | 91 ----------- 3 files changed, 343 deletions(-) delete mode 100755 src/main/java/com/labsynch/labseer/web/VendorController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/VendorController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/VendorController_Roo_Controller_Finder.aj diff --git a/src/main/java/com/labsynch/labseer/web/VendorController.java b/src/main/java/com/labsynch/labseer/web/VendorController.java deleted file mode 100755 index 2158c34e8..000000000 --- a/src/main/java/com/labsynch/labseer/web/VendorController.java +++ /dev/null @@ -1,152 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import com.labsynch.labseer.domain.Vendor; - -import com.labsynch.labseer.utils.PropertiesUtilService; - -@RooWebScaffold(path = "vendors", formBackingObject = Vendor.class) -@RequestMapping("/vendors") -@Transactional -@Controller -@RooWebFinder -public class VendorController { - - @Autowired - private PropertiesUtilService propertiesUtilService; - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - Vendor vendor = Vendor.findVendor(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - if (vendor == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(vendor.toJson(), headers, HttpStatus.OK); - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - if (propertiesUtilService.getOrderSelectLists()) { - return new ResponseEntity(Vendor.toJsonArray(Vendor.findAllVendors("name", "ASC")), headers, HttpStatus.OK); - } else { - return new ResponseEntity(Vendor.toJsonArray(Vendor.findAllVendors()), headers, HttpStatus.OK); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json) { - Vendor.fromJsonToVendor(json).persist(); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - for (Vendor vendor : Vendor.fromJsonArrayToVendors(json)) { - vendor.persist(); - } - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - if (Vendor.fromJsonToVendor(json).merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - for (Vendor vendor : Vendor.fromJsonArrayToVendors(json)) { - if (vendor.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - Vendor vendor = Vendor.findVendor(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - if (vendor == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - vendor.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.OPTIONS) - public ResponseEntity getOptions() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - return new ResponseEntity(headers, HttpStatus.OK); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/VendorController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/VendorController_Roo_Controller.aj deleted file mode 100644 index e4538512c..000000000 --- a/src/main/java/com/labsynch/labseer/web/VendorController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Vendor; -import com.labsynch.labseer.web.VendorController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect VendorController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String VendorController.create(@Valid Vendor vendor, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, vendor); - return "vendors/create"; - } - uiModel.asMap().clear(); - vendor.persist(); - return "redirect:/vendors/" + encodeUrlPathSegment(vendor.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String VendorController.createForm(Model uiModel) { - populateEditForm(uiModel, new Vendor()); - return "vendors/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String VendorController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("vendor", Vendor.findVendor(id)); - uiModel.addAttribute("itemId", id); - return "vendors/show"; - } - - @RequestMapping(produces = "text/html") - public String VendorController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("vendors", Vendor.findVendorEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) Vendor.countVendors() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("vendors", Vendor.findAllVendors(sortFieldName, sortOrder)); - } - return "vendors/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String VendorController.update(@Valid Vendor vendor, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, vendor); - return "vendors/update"; - } - uiModel.asMap().clear(); - vendor.merge(); - return "redirect:/vendors/" + encodeUrlPathSegment(vendor.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String VendorController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, Vendor.findVendor(id)); - return "vendors/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String VendorController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - Vendor vendor = Vendor.findVendor(id); - vendor.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/vendors"; - } - - void VendorController.populateEditForm(Model uiModel, Vendor vendor) { - uiModel.addAttribute("vendor", vendor); - } - - String VendorController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/VendorController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/VendorController_Roo_Controller_Finder.aj deleted file mode 100644 index dec485713..000000000 --- a/src/main/java/com/labsynch/labseer/web/VendorController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,91 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Vendor; -import com.labsynch.labseer.web.VendorController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect VendorController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeEquals", "form" }, method = RequestMethod.GET) - public String VendorController.findVendorsByCodeEqualsForm(Model uiModel) { - return "vendors/findVendorsByCodeEquals"; - } - - @RequestMapping(params = "find=ByCodeEquals", method = RequestMethod.GET) - public String VendorController.findVendorsByCodeEquals(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("vendors", Vendor.findVendorsByCodeEquals(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Vendor.countFindVendorsByCodeEquals(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("vendors", Vendor.findVendorsByCodeEquals(code, sortFieldName, sortOrder).getResultList()); - } - return "vendors/list"; - } - - @RequestMapping(params = { "find=ByCodeLike", "form" }, method = RequestMethod.GET) - public String VendorController.findVendorsByCodeLikeForm(Model uiModel) { - return "vendors/findVendorsByCodeLike"; - } - - @RequestMapping(params = "find=ByCodeLike", method = RequestMethod.GET) - public String VendorController.findVendorsByCodeLike(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("vendors", Vendor.findVendorsByCodeLike(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Vendor.countFindVendorsByCodeLike(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("vendors", Vendor.findVendorsByCodeLike(code, sortFieldName, sortOrder).getResultList()); - } - return "vendors/list"; - } - - @RequestMapping(params = { "find=ByNameEquals", "form" }, method = RequestMethod.GET) - public String VendorController.findVendorsByNameEqualsForm(Model uiModel) { - return "vendors/findVendorsByNameEquals"; - } - - @RequestMapping(params = "find=ByNameEquals", method = RequestMethod.GET) - public String VendorController.findVendorsByNameEquals(@RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("vendors", Vendor.findVendorsByNameEquals(name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Vendor.countFindVendorsByNameEquals(name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("vendors", Vendor.findVendorsByNameEquals(name, sortFieldName, sortOrder).getResultList()); - } - return "vendors/list"; - } - - @RequestMapping(params = { "find=ByNameLike", "form" }, method = RequestMethod.GET) - public String VendorController.findVendorsByNameLikeForm(Model uiModel) { - return "vendors/findVendorsByNameLike"; - } - - @RequestMapping(params = "find=ByNameLike", method = RequestMethod.GET) - public String VendorController.findVendorsByNameLike(@RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("vendors", Vendor.findVendorsByNameLike(name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Vendor.countFindVendorsByNameLike(name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("vendors", Vendor.findVendorsByNameLike(name, sortFieldName, sortOrder).getResultList()); - } - return "vendors/list"; - } - -} From c3c537a837e9c79c283d1572ad57e6107d5a7fdd Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 09:56:40 -0700 Subject: [PATCH 42/73] File type controller --- .../ApiFileTypeController.java} | 10 +- .../web/FileTypeController_Roo_Controller.aj | 100 ---------------- ...ileTypeController_Roo_Controller_Finder.aj | 34 ------ .../FileTypeController_Roo_Controller_Json.aj | 110 ------------------ 4 files changed, 3 insertions(+), 251 deletions(-) rename src/main/java/com/labsynch/labseer/{web/FileTypeController.java => api/ApiFileTypeController.java} (91%) delete mode 100644 src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller_Json.aj diff --git a/src/main/java/com/labsynch/labseer/web/FileTypeController.java b/src/main/java/com/labsynch/labseer/api/ApiFileTypeController.java similarity index 91% rename from src/main/java/com/labsynch/labseer/web/FileTypeController.java rename to src/main/java/com/labsynch/labseer/api/ApiFileTypeController.java index 978789380..afe2ea868 100755 --- a/src/main/java/com/labsynch/labseer/web/FileTypeController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiFileTypeController.java @@ -1,4 +1,4 @@ -package com.labsynch.labseer.web; +package com.labsynch.labseer.api; import javax.servlet.http.HttpServletRequest; import org.springframework.http.HttpHeaders; @@ -19,13 +19,9 @@ import com.labsynch.labseer.utils.PropertiesUtilService; import org.springframework.beans.factory.annotation.Autowired; -@RequestMapping({"/filetypes", "/fileTypes"}) +@RequestMapping(value = {"/api/v1/fileTypes"}) @Controller - -@RooWebJson(jsonObject = FileType.class) -@RooWebScaffold(path = "filetypes", formBackingObject = FileType.class) -@RooWebFinder -public class FileTypeController { +public class ApiFileTypeController { @Autowired private PropertiesUtilService propertiesUtilService; diff --git a/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller.aj deleted file mode 100644 index 73bf10b64..000000000 --- a/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.FileType; -import com.labsynch.labseer.web.FileTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect FileTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String FileTypeController.create(@Valid FileType fileType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, fileType); - return "filetypes/create"; - } - uiModel.asMap().clear(); - fileType.persist(); - return "redirect:/filetypes/" + encodeUrlPathSegment(fileType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String FileTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new FileType()); - return "filetypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String FileTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("filetype", FileType.findFileType(id)); - uiModel.addAttribute("itemId", id); - return "filetypes/show"; - } - - @RequestMapping(produces = "text/html") - public String FileTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("filetypes", FileType.findFileTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) FileType.countFileTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("filetypes", FileType.findAllFileTypes(sortFieldName, sortOrder)); - } - return "filetypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String FileTypeController.update(@Valid FileType fileType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, fileType); - return "filetypes/update"; - } - uiModel.asMap().clear(); - fileType.merge(); - return "redirect:/filetypes/" + encodeUrlPathSegment(fileType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String FileTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, FileType.findFileType(id)); - return "filetypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String FileTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - FileType fileType = FileType.findFileType(id); - fileType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/filetypes"; - } - - void FileTypeController.populateEditForm(Model uiModel, FileType fileType) { - uiModel.addAttribute("fileType", fileType); - } - - String FileTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller_Finder.aj deleted file mode 100644 index 7545d460a..000000000 --- a/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.FileType; -import com.labsynch.labseer.web.FileTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect FileTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeEquals", "form" }, method = RequestMethod.GET) - public String FileTypeController.findFileTypesByCodeEqualsForm(Model uiModel) { - return "filetypes/findFileTypesByCodeEquals"; - } - - @RequestMapping(params = "find=ByCodeEquals", method = RequestMethod.GET) - public String FileTypeController.findFileTypesByCodeEquals(@RequestParam("code") String code, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("filetypes", FileType.findFileTypesByCodeEquals(code, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) FileType.countFindFileTypesByCodeEquals(code) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("filetypes", FileType.findFileTypesByCodeEquals(code, sortFieldName, sortOrder).getResultList()); - } - return "filetypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller_Json.aj deleted file mode 100644 index 7eef91541..000000000 --- a/src/main/java/com/labsynch/labseer/web/FileTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,110 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.FileType; -import com.labsynch.labseer.web.FileTypeController; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect FileTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity FileTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - FileType fileType = FileType.findFileType(id); - if (fileType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(fileType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity FileTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - FileType fileType = FileType.fromJsonToFileType(json); - fileType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+fileType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity FileTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (FileType fileType: FileType.fromJsonArrayToFileTypes(json)) { - fileType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity FileTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - FileType fileType = FileType.fromJsonToFileType(json); - fileType.setId(id); - if (fileType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity FileTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - FileType fileType = FileType.findFileType(id); - if (fileType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - fileType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity FileTypeController.jsonFindFileTypesByCodeEquals(@RequestParam("code") String code) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(FileType.toJsonArray(FileType.findFileTypesByCodeEquals(code).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} From b45361437d7985f285946b8cec76649a50fb0f12 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 11:25:45 -0700 Subject: [PATCH 43/73] File save controller --- .../ApiFileSaveController.java} | 9 ++++----- .../java/com/labsynch/labseer/utils/MimeTypeUtil.java | 4 ++-- .../com/labsynch/labseer/web/ExportSDFController.java | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) rename src/main/java/com/labsynch/labseer/{web/FileSaveController.java => api/ApiFileSaveController.java} (96%) diff --git a/src/main/java/com/labsynch/labseer/web/FileSaveController.java b/src/main/java/com/labsynch/labseer/api/ApiFileSaveController.java similarity index 96% rename from src/main/java/com/labsynch/labseer/web/FileSaveController.java rename to src/main/java/com/labsynch/labseer/api/ApiFileSaveController.java index 1ff1b7cd4..593fded22 100755 --- a/src/main/java/com/labsynch/labseer/web/FileSaveController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiFileSaveController.java @@ -1,4 +1,4 @@ -package com.labsynch.labseer.web; +package com.labsynch.labseer.api; import java.io.BufferedInputStream; import java.io.File; @@ -35,15 +35,14 @@ import com.labsynch.labseer.dto.FileSaveSendDTO; import com.labsynch.labseer.utils.MimeTypeUtil; -@RooWebScaffold(path = "filesave", formBackingObject = FileSaveSendDTO.class) -@RequestMapping({"/filesave", "/MultipleFilePicker"}) +@RequestMapping({"/api/v1/filesave", "/api/v1/MultipleFilePicker"}) @Controller -public class FileSaveController { +public class ApiFileSaveController { //simplified controller. This will just save the file to the directory path //does not save the database info - private static final Logger logger = LoggerFactory.getLogger(FileSaveController.class); + private static final Logger logger = LoggerFactory.getLogger(ApiFileSaveController.class); @RequestMapping(method = RequestMethod.POST) public HttpEntity create(@RequestParam("description[]") List description, diff --git a/src/main/java/com/labsynch/labseer/utils/MimeTypeUtil.java b/src/main/java/com/labsynch/labseer/utils/MimeTypeUtil.java index 0d193ef9e..912bf6e81 100755 --- a/src/main/java/com/labsynch/labseer/utils/MimeTypeUtil.java +++ b/src/main/java/com/labsynch/labseer/utils/MimeTypeUtil.java @@ -7,7 +7,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.labsynch.labseer.web.FileSaveController; +import com.labsynch.labseer.api.ApiFileSaveController; public class MimeTypeUtil { @@ -23,7 +23,7 @@ public static String getContentTypeFromExtension(String originalFilename) { String fileExtension = getFileExtension(originalFilename); logger.debug("here is the file extension: " + fileExtension); try { - mimeTypeStream = FileSaveController.class.getClassLoader().getResourceAsStream(MIME_PROP_FILE); + mimeTypeStream = ApiFileSaveController.class.getClassLoader().getResourceAsStream(MIME_PROP_FILE); Properties mimeTypeProps = new Properties(); mimeTypeProps.load(mimeTypeStream); contentType = mimeTypeProps.getProperty(fileExtension); diff --git a/src/main/java/com/labsynch/labseer/web/ExportSDFController.java b/src/main/java/com/labsynch/labseer/web/ExportSDFController.java index b8c3eb9fd..d28c0828d 100755 --- a/src/main/java/com/labsynch/labseer/web/ExportSDFController.java +++ b/src/main/java/com/labsynch/labseer/web/ExportSDFController.java @@ -23,7 +23,7 @@ @Controller public class ExportSDFController { - private static final Logger logger = LoggerFactory.getLogger(FileSaveController.class); + private static final Logger logger = LoggerFactory.getLogger(ExportSDFController.class); @Autowired private StructureImageService structureImageService; From ce239564c519f4f43261979d430a304d05566880 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 11:41:33 -0700 Subject: [PATCH 44/73] Metalot controller --- .../ApiMetalotController.java} | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) rename src/main/java/com/labsynch/labseer/{web/MetalotController.java => api/ApiMetalotController.java} (97%) diff --git a/src/main/java/com/labsynch/labseer/web/MetalotController.java b/src/main/java/com/labsynch/labseer/api/ApiMetalotController.java similarity index 97% rename from src/main/java/com/labsynch/labseer/web/MetalotController.java rename to src/main/java/com/labsynch/labseer/api/ApiMetalotController.java index 12c8708cd..396806213 100755 --- a/src/main/java/com/labsynch/labseer/web/MetalotController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiMetalotController.java @@ -1,4 +1,4 @@ -package com.labsynch.labseer.web; +package com.labsynch.labseer.api; import java.io.UnsupportedEncodingException; import java.util.List; @@ -36,11 +36,10 @@ import com.labsynch.labseer.service.ErrorMessage; import com.labsynch.labseer.service.MetalotService; -@RooWebScaffold(path = "metalots", formBackingObject = Metalot.class) -@RequestMapping("/metalots") +@RequestMapping(value="/api/v1/metalots") @Controller //@Transactional -public class MetalotController { +public class ApiMetalotController { @Autowired private MetalotService metalotService; @@ -48,7 +47,7 @@ public class MetalotController { @Autowired private ChemStructureService chemStructService; - private static final Logger logger = LoggerFactory.getLogger(MetalotController.class); + private static final Logger logger = LoggerFactory.getLogger(ApiMetalotController.class); @Transactional @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") From c23e446539fbdd22e449815b6df2f3bfa3ed998e Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 12:25:09 -0700 Subject: [PATCH 45/73] Search form controller --- .../ApiSearchFormController.java} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename src/main/java/com/labsynch/labseer/{web/SearchFormController.java => api/ApiSearchFormController.java} (97%) diff --git a/src/main/java/com/labsynch/labseer/web/SearchFormController.java b/src/main/java/com/labsynch/labseer/api/ApiSearchFormController.java similarity index 97% rename from src/main/java/com/labsynch/labseer/web/SearchFormController.java rename to src/main/java/com/labsynch/labseer/api/ApiSearchFormController.java index 568bedcbf..8c3cc6d13 100755 --- a/src/main/java/com/labsynch/labseer/web/SearchFormController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiSearchFormController.java @@ -1,4 +1,4 @@ -package com.labsynch.labseer.web; +package com.labsynch.labseer.api; import java.util.ArrayList; import java.util.List; @@ -25,9 +25,9 @@ //@RooWebScaffold(path = "searchforms", formBackingObject = SearchForm.class) @RequestMapping(value = {"/searchforms", "/search"}) @Controller -public class SearchFormController { +public class ApiSearchFormController { - Logger logger = LoggerFactory.getLogger(SearchFormController.class); + Logger logger = LoggerFactory.getLogger(ApiSearchFormController.class); From a6e018d4295feaf8c3a1123b591f6627a8fe0ec2 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 12:31:45 -0700 Subject: [PATCH 46/73] Fix api/v1 path for search form controller --- .../java/com/labsynch/labseer/api/ApiSearchFormController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/api/ApiSearchFormController.java b/src/main/java/com/labsynch/labseer/api/ApiSearchFormController.java index 8c3cc6d13..67101ade8 100755 --- a/src/main/java/com/labsynch/labseer/api/ApiSearchFormController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiSearchFormController.java @@ -23,7 +23,7 @@ import com.labsynch.labseer.service.SearchFormService; //@RooWebScaffold(path = "searchforms", formBackingObject = SearchForm.class) -@RequestMapping(value = {"/searchforms", "/search"}) +@RequestMapping(value = {"/api/v1/searchforms", "/api/v1/search"}) @Controller public class ApiSearchFormController { From 592ba7ec1e9970134c4f6894db759ab0cda677b9 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 12:31:56 -0700 Subject: [PATCH 47/73] Reg search controller --- .../ApiRegSearchController.java} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename src/main/java/com/labsynch/labseer/{web/RegSearchController.java => api/ApiRegSearchController.java} (94%) diff --git a/src/main/java/com/labsynch/labseer/web/RegSearchController.java b/src/main/java/com/labsynch/labseer/api/ApiRegSearchController.java similarity index 94% rename from src/main/java/com/labsynch/labseer/web/RegSearchController.java rename to src/main/java/com/labsynch/labseer/api/ApiRegSearchController.java index e6070aad7..a7efc0692 100755 --- a/src/main/java/com/labsynch/labseer/web/RegSearchController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiRegSearchController.java @@ -1,4 +1,4 @@ -package com.labsynch.labseer.web; +package com.labsynch.labseer.api; import java.io.IOException; import java.io.UnsupportedEncodingException; @@ -25,14 +25,14 @@ import com.labsynch.labseer.service.RegSearchService; //@RooWebScaffold(path = "regsearches", formBackingObject = RegSearch.class) -@RequestMapping(value ={"/regsearches", "/regSearches"}) +@RequestMapping(value ={"/api/v1/regsearches", "/api/v1/regSearches"}) @Controller -public class RegSearchController { +public class ApiRegSearchController { @Autowired private RegSearchService regSearchService; - Logger logger = LoggerFactory.getLogger(RegSearchController.class); + Logger logger = LoggerFactory.getLogger(ApiRegSearchController.class); String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { From 14737154d23886dbb217fc6a028dcba572e09ee6 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 12:39:47 -0700 Subject: [PATCH 48/73] Structure image controller --- .../ApiStructureImageController.java} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename src/main/java/com/labsynch/labseer/{web/StructureImageController.java => api/ApiStructureImageController.java} (98%) diff --git a/src/main/java/com/labsynch/labseer/web/StructureImageController.java b/src/main/java/com/labsynch/labseer/api/ApiStructureImageController.java similarity index 98% rename from src/main/java/com/labsynch/labseer/web/StructureImageController.java rename to src/main/java/com/labsynch/labseer/api/ApiStructureImageController.java index e35c35f23..7ed9fab0f 100755 --- a/src/main/java/com/labsynch/labseer/web/StructureImageController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiStructureImageController.java @@ -1,4 +1,4 @@ -package com.labsynch.labseer.web; +package com.labsynch.labseer.api; import java.util.List; @@ -24,12 +24,12 @@ import com.labsynch.labseer.domain.StandardizationDryRunCompound; import com.labsynch.labseer.service.StructureImageService; -@RequestMapping("/structureimage") +@RequestMapping("/api/v1/structureimage") @Controller @Transactional -public class StructureImageController { +public class ApiStructureImageController { - Logger logger = LoggerFactory.getLogger(StructureImageController.class); + Logger logger = LoggerFactory.getLogger(ApiStructureImageController.class); @Autowired private StructureImageService structureImageService; From 3d27c13d37f84c8a49b5733a3488e091eec7c536 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Wed, 27 Apr 2022 13:26:11 -0700 Subject: [PATCH 49/73] Fix package --- .../com/labsynch/labseer/api/ApiPurityMeasuredByController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/labsynch/labseer/api/ApiPurityMeasuredByController.java b/src/main/java/com/labsynch/labseer/api/ApiPurityMeasuredByController.java index 3731fbb95..70ebb58b6 100755 --- a/src/main/java/com/labsynch/labseer/api/ApiPurityMeasuredByController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiPurityMeasuredByController.java @@ -1,4 +1,4 @@ -package com.labsynch.labseer.web; +package com.labsynch.labseer.api; import javax.servlet.http.HttpServletRequest; import org.springframework.http.HttpHeaders; From c8c276ab703216455e0f4136006b5e1ab9a87462 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Thu, 28 Apr 2022 15:50:16 -0700 Subject: [PATCH 50/73] Remove unused web controllers --- .../labseer/api/ApiAuthorController.java | 17 +- .../labseer/api/ApiAuthorRoleController.java | 3 +- .../api/ApiTreatmentGroupController.java | 3 +- .../com/labsynch/labseer/domain/FileList.java | 4 +- .../labseer/web/AnalysisGroupController.java | 40 -- .../AnalysisGroupController_Roo_Controller.aj | 120 ----- ...isGroupController_Roo_Controller_Finder.aj | 79 ---- ...ysisGroupController_Roo_Controller_Json.aj | 150 ------- .../web/AnalysisGroupLabelController.java | 31 -- ...ysisGroupLabelController_Roo_Controller.aj | 119 ----- ...upLabelController_Roo_Controller_Finder.aj | 57 --- ...roupLabelController_Roo_Controller_Json.aj | 137 ------ .../web/AnalysisGroupStateController.java | 50 --- ...ysisGroupStateController_Roo_Controller.aj | 121 ----- ...upStateController_Roo_Controller_Finder.aj | 118 ----- ...roupStateController_Roo_Controller_Json.aj | 173 -------- .../AnalysisGroupValueBaseDTOController.java | 13 - .../web/AnalysisGroupValueController.java | 278 ------------ ...upValueController_Roo_Controller_Finder.aj | 137 ------ .../web/AnalysisGroupValueDTOController.java | 13 - .../labsynch/labseer/web/ApiController.java | 68 --- ...eFactoryBean_Roo_ConversionService.aj.orig | 111 ----- .../web/ApplicationSettingController.java | 128 ------ ...icationSettingController_Roo_Controller.aj | 109 ----- ...SettingController_Roo_Controller_Finder.aj | 55 --- .../labseer/web/AuthorController.java | 17 - .../web/AuthorController_Roo_Controller.aj | 119 ----- .../AuthorController_Roo_Controller_Finder.aj | 75 ---- .../AuthorController_Roo_Controller_Json.aj | 148 ------- .../labseer/web/AuthorLabelController.java | 12 - .../AuthorLabelController_Roo_Controller.aj | 119 ----- .../labseer/web/AuthorNameDTOController.java | 13 - .../labseer/web/AuthorRoleController.java | 39 -- .../AuthorRoleController_Roo_Controller.aj | 114 ----- ...horRoleController_Roo_Controller_Finder.aj | 78 ---- ...uthorRoleController_Roo_Controller_Json.aj | 150 ------- .../labseer/web/AuthorStateController.java | 12 - .../AuthorStateController_Roo_Controller.aj | 121 ----- .../labseer/web/AuthorValueController.java | 12 - .../AuthorValueController_Roo_Controller.aj | 120 ----- .../labseer/web/AutoLabelDTOController.java | 13 - .../labseer/web/BatchCodeDTOController.java | 13 - .../labseer/web/BulkLoadFileController.java | 13 - .../BulkLoadFileController_Roo_Controller.aj | 100 ----- ...oadFileController_Roo_Controller_Finder.aj | 53 --- .../web/BulkLoadTemplateController.java | 13 - ...lkLoadTemplateController_Roo_Controller.aj | 100 ----- ...emplateController_Roo_Controller_Finder.aj | 72 --- .../web/BulkTransferPart1DTOController.java | 13 - .../labseer/web/ChangePasswordController.java | 95 ---- .../labseer/web/ChangePasswordForm.java | 40 -- .../labseer/web/ChangePasswordValidator.java | 105 ----- .../web/CmpdRegAppSettingController.java | 22 - ...dRegAppSettingController_Roo_Controller.aj | 109 ----- .../labseer/web/CodeKindController.java | 16 - .../web/CodeKindController_Roo_Controller.aj | 109 ----- ...odeKindController_Roo_Controller_Finder.aj | 75 ---- .../CodeKindController_Roo_Controller_Json.aj | 149 ------- .../labseer/web/CodeOriginController.java | 12 - .../CodeOriginController_Roo_Controller.aj | 100 ----- .../labseer/web/CodeTableDTOController.java | 13 - .../labseer/web/CodeTypeController.java | 16 - .../web/CodeTypeController_Roo_Controller.aj | 100 ----- ...odeTypeController_Roo_Controller_Finder.aj | 34 -- .../CodeTypeController_Roo_Controller_Json.aj | 124 ------ .../labseer/web/CompoundController.java | 13 - .../web/CompoundController_Roo_Controller.aj | 110 ----- ...ompoundController_Roo_Controller_Finder.aj | 55 --- .../labseer/web/ContainerController.java | 35 -- .../web/ContainerController_Roo_Controller.aj | 120 ----- ...ContainerController_Roo_Controller_Json.aj | 148 ------- .../labseer/web/ContainerKindController.java | 22 - .../ContainerKindController_Roo_Controller.aj | 109 ----- ...ainerKindController_Roo_Controller_Json.aj | 125 ------ .../labseer/web/ContainerLabelController.java | 35 -- ...ContainerLabelController_Roo_Controller.aj | 119 ----- ...erLabelController_Roo_Controller_Finder.aj | 97 ----- ...inerLabelController_Roo_Controller_Json.aj | 161 ------- .../web/ContainerMiniDTOController.java | 13 - .../labseer/web/ContainerStateController.java | 53 --- ...ContainerStateController_Roo_Controller.aj | 121 ----- ...erStateController_Roo_Controller_Finder.aj | 78 ---- ...inerStateController_Roo_Controller_Json.aj | 149 ------- .../web/ContainerStateMiniDTOController.java | 13 - .../labseer/web/ContainerTypeController.java | 24 - .../ContainerTypeController_Roo_Controller.aj | 100 ----- ...nerTypeController_Roo_Controller_Finder.aj | 34 -- ...ainerTypeController_Roo_Controller_Json.aj | 124 ------ .../labseer/web/ContainerValueController.java | 37 -- ...ContainerValueController_Roo_Controller.aj | 120 ----- ...erValueController_Roo_Controller_Finder.aj | 57 --- ...inerValueController_Roo_Controller_Json.aj | 137 ------ .../labseer/web/CorpNameController.java | 19 - .../web/CorpNameController_Roo_Controller.aj | 100 ----- .../labseer/web/CronJobController.java | 12 - .../web/CronJobController_Roo_Controller.aj | 100 ----- .../labseer/web/DDictKindController.java | 23 - .../web/DDictKindController_Roo_Controller.aj | 96 ---- ...ictKindController_Roo_Controller_Finder.aj | 34 -- ...DDictKindController_Roo_Controller_Json.aj | 124 ------ .../labseer/web/DDictTypeController.java | 16 - .../web/DDictTypeController_Roo_Controller.aj | 100 ----- ...ictTypeController_Roo_Controller_Finder.aj | 34 -- ...DDictTypeController_Roo_Controller_Json.aj | 124 ------ .../labseer/web/DDictValueController.java | 37 -- .../DDictValueController_Roo_Controller.aj | 96 ---- ...ctValueController_Roo_Controller_Finder.aj | 148 ------- ...DictValueController_Roo_Controller_Json.aj | 196 --------- .../web/DoseReponseParamsDTOController.java | 13 - .../web/EntrezDbGeneDTOController.java | 13 - .../labseer/web/ErrorMessageController.java | 13 - .../web/ErrorMessageDTOController.java | 13 - .../labseer/web/ExperimentController.java | 82 ---- .../ExperimentController_Roo_Controller.aj | 131 ------ ...erimentController_Roo_Controller_Finder.aj | 217 --------- ...xperimentController_Roo_Controller_Json.aj | 233 ---------- .../web/ExperimentFilterDTOController.java | 13 - .../ExperimentFilterSearchDTOController.java | 13 - .../web/ExperimentGuiStubDTOController.java | 12 - .../labseer/web/ExperimentKindController.java | 24 - ...ExperimentKindController_Roo_Controller.aj | 109 ----- ...imentKindController_Roo_Controller_Json.aj | 125 ------ .../web/ExperimentLabelController.java | 35 -- ...xperimentLabelController_Roo_Controller.aj | 119 ----- ...ntLabelController_Roo_Controller_Finder.aj | 118 ----- ...mentLabelController_Roo_Controller_Json.aj | 173 -------- .../ExperimentSearchRequestDTOController.java | 13 - .../web/ExperimentStateController.java | 34 -- ...xperimentStateController_Roo_Controller.aj | 121 ----- ...ntStateController_Roo_Controller_Finder.aj | 37 -- ...mentStateController_Roo_Controller_Json.aj | 125 ------ .../labseer/web/ExperimentTypeController.java | 26 -- ...ExperimentTypeController_Roo_Controller.aj | 100 ----- ...entTypeController_Roo_Controller_Finder.aj | 34 -- ...imentTypeController_Roo_Controller_Json.aj | 124 ------ .../web/ExperimentValueController.java | 41 -- ...xperimentValueController_Roo_Controller.aj | 120 ----- ...ntValueController_Roo_Controller_Finder.aj | 98 ----- ...mentValueController_Roo_Controller_Json.aj | 161 ------- .../labseer/web/ExportSDFController.java | 61 --- .../labseer/web/FileListController.java | 323 -------------- .../web/FileListController_Roo_Controller.aj | 18 - ...ileListController_Roo_Controller_Finder.aj | 55 --- .../labseer/web/FileThingController.java | 14 - .../web/FileThingController_Roo_Controller.aj | 112 ----- ...FileThingController_Roo_Controller_Json.aj | 111 ----- .../labseer/web/ForgotPasswordController.java | 93 ---- .../labseer/web/ForgotPasswordForm.java | 28 -- .../labseer/web/GeneIdDTOController.java | 13 - .../web/IdCollectionDTOController.java | 13 - .../web/InteractionKindController.java | 22 - ...nteractionKindController_Roo_Controller.aj | 109 ----- ...ctionKindController_Roo_Controller_Json.aj | 137 ------ .../web/InteractionTypeController.java | 22 - ...nteractionTypeController_Roo_Controller.aj | 100 ----- ...ctionTypeController_Roo_Controller_Json.aj | 136 ------ .../labseer/web/IsoSaltController.java | 223 ---------- .../web/IsoSaltController_Roo_Controller.aj | 22 - ...IsoSaltController_Roo_Controller_Finder.aj | 44 -- .../web/ItxContainerContainerController.java | 37 -- ...ainerContainerController_Roo_Controller.aj | 126 ------ ...ntainerController_Roo_Controller_Finder.aj | 78 ---- ...ContainerController_Roo_Controller_Json.aj | 149 ------- .../ItxContainerContainerStateController.java | 34 -- ...ContainerStateController_Roo_Controller.aj | 114 ----- ...inerStateController_Roo_Controller_Json.aj | 111 ----- .../ItxContainerContainerValueController.java | 32 -- ...ContainerValueController_Roo_Controller.aj | 113 ----- ...inerValueController_Roo_Controller_Json.aj | 111 ----- .../ItxExperimentExperimentController.java | 16 - ...mentExperimentController_Roo_Controller.aj | 126 ------ ...erimentController_Roo_Controller_Finder.aj | 78 ---- ...xperimentController_Roo_Controller_Json.aj | 149 ------- ...txExperimentExperimentStateController.java | 14 - ...xperimentStateController_Roo_Controller.aj | 114 ----- ...mentStateController_Roo_Controller_Json.aj | 111 ----- ...txExperimentExperimentValueController.java | 14 - ...xperimentValueController_Roo_Controller.aj | 113 ----- ...mentValueController_Roo_Controller_Json.aj | 111 ----- .../web/ItxLsThingLsThingController.java | 16 - ...LsThingLsThingController_Roo_Controller.aj | 126 ------ ...LsThingController_Roo_Controller_Finder.aj | 78 ---- ...ngLsThingController_Roo_Controller_Json.aj | 149 ------- .../web/ItxLsThingLsThingStateController.java | 14 - ...ngLsThingStateController_Roo_Controller.aj | 114 ----- ...hingStateController_Roo_Controller_Json.aj | 111 ----- .../web/ItxLsThingLsThingValueController.java | 14 - ...ngLsThingValueController_Roo_Controller.aj | 113 ----- ...hingValueController_Roo_Controller_Json.aj | 136 ------ .../web/ItxProtocolProtocolController.java | 16 - ...otocolProtocolController_Roo_Controller.aj | 126 ------ ...rotocolController_Roo_Controller_Finder.aj | 78 ---- ...lProtocolController_Roo_Controller_Json.aj | 149 ------- .../ItxProtocolProtocolStateController.java | 14 - ...lProtocolStateController_Roo_Controller.aj | 114 ----- ...ocolStateController_Roo_Controller_Json.aj | 111 ----- .../ItxProtocolProtocolValueController.java | 14 - ...lProtocolValueController_Roo_Controller.aj | 113 ----- ...ocolValueController_Roo_Controller_Json.aj | 111 ----- .../web/ItxSubjectContainerController.java | 35 -- ...bjectContainerController_Roo_Controller.aj | 128 ------ ...ntainerController_Roo_Controller_Finder.aj | 99 ----- ...ContainerController_Roo_Controller_Json.aj | 162 ------- .../ItxSubjectContainerStateController.java | 31 -- ...ContainerStateController_Roo_Controller.aj | 114 ----- ...inerStateController_Roo_Controller_Json.aj | 111 ----- .../ItxSubjectContainerValueController.java | 29 -- ...ContainerValueController_Roo_Controller.aj | 113 ----- ...inerValueController_Roo_Controller_Json.aj | 111 ----- .../labseer/web/JSTreeNodeDTOController.java | 13 - .../labseer/web/KeyValueDTOController.java | 12 - .../labseer/web/LabelKindController.java | 24 - .../web/LabelKindController_Roo_Controller.aj | 102 ----- ...belKindController_Roo_Controller_Finder.aj | 75 ---- ...LabelKindController_Roo_Controller_Json.aj | 149 ------- .../labseer/web/LabelSequenceController.java | 33 -- .../LabelSequenceController_Roo_Controller.aj | 111 ----- ...equenceController_Roo_Controller_Finder.aj | 95 ---- ...lSequenceController_Roo_Controller_Json.aj | 160 ------- .../web/LabelSequenceDTOController.java | 13 - .../web/LabelSequenceRoleController.java | 12 - ...elSequenceRoleController_Roo_Controller.aj | 114 ----- .../labseer/web/LabelTypeController.java | 24 - .../web/LabelTypeController_Roo_Controller.aj | 100 ----- ...belTypeController_Roo_Controller_Finder.aj | 34 -- ...LabelTypeController_Roo_Controller_Json.aj | 124 ------ .../labseer/web/LotAliasController.java | 23 - .../web/LotAliasController_Roo_Controller.aj | 102 ----- ...otAliasController_Roo_Controller_Finder.aj | 75 ---- .../LotAliasController_Roo_Controller_Json.aj | 149 ------- .../labseer/web/LotAliasKindController.java | 162 ------- .../LotAliasKindController_Roo_Controller.aj | 109 ----- .../labseer/web/LotAliasTypeController.java | 163 ------- .../LotAliasTypeController_Roo_Controller.aj | 100 ----- .../labsynch/labseer/web/LotController.java | 412 ------------------ .../web/LotController_Roo_Controller.aj | 37 -- .../labseer/web/LsInteractionController.java | 22 - .../LsInteractionController_Roo_Controller.aj | 112 ----- ...teractionController_Roo_Controller_Json.aj | 111 ----- .../labseer/web/LsRoleController.java | 123 ------ .../LsRoleController_Roo_Controller_Finder.aj | 129 ------ .../LsRoleController_Roo_Controller_Json.aj | 184 -------- .../labseer/web/LsSeqAnlGrpController.java | 12 - .../LsSeqAnlGrpController_Roo_Controller.aj | 100 ----- .../labseer/web/LsSeqContainerController.java | 12 - ...LsSeqContainerController_Roo_Controller.aj | 100 ----- .../labseer/web/LsSeqExptController.java | 12 - .../web/LsSeqExptController_Roo_Controller.aj | 100 ----- .../web/LsSeqItxCntrCntrController.java | 12 - ...SeqItxCntrCntrController_Roo_Controller.aj | 100 ----- ...sSeqItxExperimentExperimentController.java | 12 - ...mentExperimentController_Roo_Controller.aj | 100 ----- .../web/LsSeqItxLsThingLsThingController.java | 12 - ...LsThingLsThingController_Roo_Controller.aj | 100 ----- .../LsSeqItxProtocolProtocolController.java | 12 - ...otocolProtocolController_Roo_Controller.aj | 100 ----- .../web/LsSeqItxSubjCntrController.java | 12 - ...SeqItxSubjCntrController_Roo_Controller.aj | 100 ----- .../labseer/web/LsSeqProtocolController.java | 12 - .../LsSeqProtocolController_Roo_Controller.aj | 100 ----- .../labseer/web/LsSeqSubjectController.java | 12 - .../LsSeqSubjectController_Roo_Controller.aj | 100 ----- .../labseer/web/LsSeqTrtGrpController.java | 12 - .../LsSeqTrtGrpController_Roo_Controller.aj | 100 ----- .../labsynch/labseer/web/LsTagController.java | 38 -- .../web/LsTagController_Roo_Controller.aj | 115 ----- .../LsTagController_Roo_Controller_Finder.aj | 55 --- .../LsTagController_Roo_Controller_Json.aj | 136 ------ .../labseer/web/LsThingController.java | 35 -- .../web/LsThingController_Roo_Controller.aj | 120 ----- ...LsThingController_Roo_Controller_Finder.aj | 239 ---------- .../LsThingController_Roo_Controller_Json.aj | 246 ----------- .../labseer/web/LsThingLabelController.java | 16 - .../LsThingLabelController_Roo_Controller.aj | 119 ----- ...ngLabelController_Roo_Controller_Finder.aj | 117 ----- ...hingLabelController_Roo_Controller_Json.aj | 173 -------- .../labseer/web/LsThingStateController.java | 16 - .../LsThingStateController_Roo_Controller.aj | 121 ----- ...ngStateController_Roo_Controller_Finder.aj | 57 --- ...hingStateController_Roo_Controller_Json.aj | 137 ------ .../labseer/web/LsThingValueController.java | 16 - .../LsThingValueController_Roo_Controller.aj | 120 ----- ...ngValueController_Roo_Controller_Finder.aj | 283 ------------ ...hingValueController_Roo_Controller_Json.aj | 272 ------------ .../labseer/web/LsTransactionController.java | 22 - .../LsTransactionController_Roo_Controller.aj | 114 ----- ...ansactionController_Roo_Controller_Json.aj | 111 ----- .../labseer/web/OperatorKindController.java | 22 - .../OperatorKindController_Roo_Controller.aj | 109 ----- ...ratorKindController_Roo_Controller_Json.aj | 125 ------ .../labseer/web/OperatorTypeController.java | 24 - .../OperatorTypeController_Roo_Controller.aj | 100 ----- ...torTypeController_Roo_Controller_Finder.aj | 34 -- ...ratorTypeController_Roo_Controller_Json.aj | 124 ------ .../labseer/web/ParentAliasController.java | 26 -- .../ParentAliasController_Roo_Controller.aj | 102 ----- ...ntAliasController_Roo_Controller_Finder.aj | 114 ----- ...rentAliasController_Roo_Controller_Json.aj | 173 -------- .../web/ParentAliasKindController.java | 162 ------- ...arentAliasKindController_Roo_Controller.aj | 109 ----- .../web/ParentAliasTypeController.java | 163 ------- ...arentAliasTypeController_Roo_Controller.aj | 100 ----- .../labseer/web/ParentController.java | 298 ------------- .../web/ParentController_Roo_Controller.aj | 29 -- .../ParentController_Roo_Controller_Finder.aj | 140 ------ .../web/PreDef_CorpNameController.java | 18 - ...reDef_CorpNameController_Roo_Controller.aj | 100 ----- .../web/PreferredNameDTOController.java | 13 - .../PreferredNameRequestDTOController.java | 13 - .../PreferredNameResultsDTOController.java | 13 - .../PreferredNameWithErrorDTOController.java | 13 - .../labseer/web/ProtocolController.java | 48 -- .../web/ProtocolController_Roo_Controller.aj | 122 ------ ...rotocolController_Roo_Controller_Finder.aj | 255 ----------- .../ProtocolController_Roo_Controller_Json.aj | 256 ----------- .../labseer/web/ProtocolKindController.java | 26 -- .../ProtocolKindController_Roo_Controller.aj | 109 ----- ...colKindController_Roo_Controller_Finder.aj | 36 -- ...tocolKindController_Roo_Controller_Json.aj | 125 ------ .../labseer/web/ProtocolLabelController.java | 34 -- .../ProtocolLabelController_Roo_Controller.aj | 119 ----- ...olLabelController_Roo_Controller_Finder.aj | 97 ----- ...ocolLabelController_Roo_Controller_Json.aj | 161 ------- .../labseer/web/ProtocolStateController.java | 44 -- .../ProtocolStateController_Roo_Controller.aj | 121 ----- ...olStateController_Roo_Controller_Finder.aj | 57 --- ...ocolStateController_Roo_Controller_Json.aj | 137 ------ .../labseer/web/ProtocolTypeController.java | 26 -- .../ProtocolTypeController_Roo_Controller.aj | 100 ----- ...colTypeController_Roo_Controller_Finder.aj | 34 -- ...tocolTypeController_Roo_Controller_Json.aj | 124 ------ .../labseer/web/ProtocolValueController.java | 44 -- .../ProtocolValueController_Roo_Controller.aj | 120 ----- ...olValueController_Roo_Controller_Finder.aj | 97 ----- ...ocolValueController_Roo_Controller_Json.aj | 161 ------- .../labseer/web/RequestNameDTOController.java | 13 - .../labseer/web/RoleKindController.java | 21 - .../web/RoleKindController_Roo_Controller.aj | 109 ----- ...oleKindController_Roo_Controller_Finder.aj | 56 --- .../RoleKindController_Roo_Controller_Json.aj | 137 ------ .../labseer/web/RoleTypeController.java | 21 - .../web/RoleTypeController_Roo_Controller.aj | 100 ----- ...oleTypeController_Roo_Controller_Finder.aj | 34 -- .../RoleTypeController_Roo_Controller_Json.aj | 124 ------ .../labseer/web/SaltFormAliasController.java | 13 - .../SaltFormAliasController_Roo_Controller.aj | 102 ----- ...rmAliasController_Roo_Controller_Finder.aj | 55 --- .../web/SaltFormAliasKindController.java | 11 - ...tFormAliasKindController_Roo_Controller.aj | 109 ----- .../web/SaltFormAliasTypeController.java | 11 - ...tFormAliasTypeController_Roo_Controller.aj | 100 ----- .../labseer/web/SaltFormController.java | 189 -------- .../web/SaltFormController_Roo_Controller.aj | 31 -- ...altFormController_Roo_Controller_Finder.aj | 119 ----- .../labseer/web/SaltLoaderController.java | 11 - .../SaltLoaderController_Roo_Controller.aj | 109 ----- .../labseer/web/SetupDBController.java | 140 ------ .../labseer/web/SignUpController.java | 170 -------- .../labsynch/labseer/web/SignUpValidator.java | 56 --- .../labseer/web/StateKindController.java | 24 - .../web/StateKindController_Roo_Controller.aj | 109 ----- ...ateKindController_Roo_Controller_Finder.aj | 75 ---- ...StateKindController_Roo_Controller_Json.aj | 149 ------- .../labseer/web/StateTypeController.java | 24 - .../web/StateTypeController_Roo_Controller.aj | 100 ----- ...ateTypeController_Roo_Controller_Finder.aj | 34 -- ...StateTypeController_Roo_Controller_Json.aj | 124 ------ .../web/StringCollectionDTOController.java | 13 - .../labseer/web/SubjectController.java | 39 -- .../web/SubjectController_Roo_Controller.aj | 120 ----- ...SubjectController_Roo_Controller_Finder.aj | 78 ---- .../SubjectController_Roo_Controller_Json.aj | 150 ------- .../labseer/web/SubjectDTOController.java | 13 - .../labseer/web/SubjectLabelController.java | 31 -- .../SubjectLabelController_Roo_Controller.aj | 119 ----- ...ctLabelController_Roo_Controller_Finder.aj | 37 -- ...jectLabelController_Roo_Controller_Json.aj | 125 ------ .../web/SubjectLabelDTOController.java | 13 - .../labseer/web/SubjectMiniDTOController.java | 13 - .../labseer/web/SubjectStateController.java | 46 -- .../SubjectStateController_Roo_Controller.aj | 121 ----- ...ctStateController_Roo_Controller_Finder.aj | 58 --- ...jectStateController_Roo_Controller_Json.aj | 137 ------ .../web/SubjectStateDTOController.java | 13 - .../web/SubjectStateMiniDTOController.java | 13 - .../labseer/web/SubjectValueController.java | 46 -- .../SubjectValueController_Roo_Controller.aj | 120 ----- ...ctValueController_Roo_Controller_Finder.aj | 118 ----- ...jectValueController_Roo_Controller_Json.aj | 173 -------- .../web/SubjectValueDTOController.java | 13 - .../web/TempSelectTableController.java | 12 - ...empSelectTableController_Roo_Controller.aj | 109 ----- .../labseer/web/ThingKindController.java | 24 - .../web/ThingKindController_Roo_Controller.aj | 109 ----- ...ingKindController_Roo_Controller_Finder.aj | 75 ---- ...ThingKindController_Roo_Controller_Json.aj | 149 ------- .../web/ThingPageArchiveController.java | 97 ----- ...ingPageArchiveController_Roo_Controller.aj | 110 ----- .../labseer/web/ThingPageController.java | 109 ----- .../web/ThingPageController_Roo_Controller.aj | 121 ----- .../labseer/web/ThingTypeController.java | 24 - .../web/ThingTypeController_Roo_Controller.aj | 100 ----- ...ingTypeController_Roo_Controller_Finder.aj | 34 -- ...ThingTypeController_Roo_Controller_Json.aj | 124 ------ .../labseer/web/TreatmentGroupController.java | 37 -- ...TreatmentGroupController_Roo_Controller.aj | 120 ----- ...ntGroupController_Roo_Controller_Finder.aj | 78 ---- ...mentGroupController_Roo_Controller_Json.aj | 150 ------- .../web/TreatmentGroupLabelController.java | 31 -- ...mentGroupLabelController_Roo_Controller.aj | 119 ----- ...upLabelController_Roo_Controller_Finder.aj | 57 --- ...roupLabelController_Roo_Controller_Json.aj | 137 ------ .../web/TreatmentGroupMiniDTOController.java | 13 - .../web/TreatmentGroupStateController.java | 34 -- ...mentGroupStateController_Roo_Controller.aj | 121 ----- ...upStateController_Roo_Controller_Finder.aj | 77 ---- ...roupStateController_Roo_Controller_Json.aj | 149 ------- .../web/TreatmentGroupValueController.java | 32 -- ...mentGroupValueController_Roo_Controller.aj | 120 ----- ...upValueController_Roo_Controller_Finder.aj | 97 ----- ...roupValueController_Roo_Controller_Json.aj | 161 ------- .../web/UncertaintyKindController.java | 14 - ...ncertaintyKindController_Roo_Controller.aj | 100 ----- ...aintyKindController_Roo_Controller_Json.aj | 111 ----- .../labseer/web/UnitKindController.java | 22 - .../web/UnitKindController_Roo_Controller.aj | 109 ----- .../UnitKindController_Roo_Controller_Json.aj | 125 ------ .../labseer/web/UnitTypeController.java | 24 - .../web/UnitTypeController_Roo_Controller.aj | 100 ----- ...nitTypeController_Roo_Controller_Finder.aj | 34 -- .../UnitTypeController_Roo_Controller_Json.aj | 124 ------ .../labseer/web/UpdateLogController.java | 12 - .../web/UpdateLogController_Roo_Controller.aj | 109 ----- .../labseer/web/UserRegistrationForm.java | 156 ------- .../labseer/web/ValueKindController.java | 24 - .../web/ValueKindController_Roo_Controller.aj | 109 ----- ...lueKindController_Roo_Controller_Finder.aj | 56 --- ...ValueKindController_Roo_Controller_Json.aj | 137 ------ .../labseer/web/ValueTypeController.java | 24 - .../web/ValueTypeController_Roo_Controller.aj | 100 ----- ...lueTypeController_Roo_Controller_Finder.aj | 34 -- ...ValueTypeController_Roo_Controller_Json.aj | 124 ------ .../web/ValueTypeKindDTOController.java | 13 - .../web/menu/BaseURLContextMenuStrategy.java | 239 ---------- .../labseer/web/menu/ContextMenuStrategy.java | 36 -- .../com/labsynch/labseer/web/menu/Menu.java | 73 ---- .../labsynch/labseer/web/menu/MenuItem.java | 273 ------------ .../labsynch/labseer/web/menu/MenuLoader.java | 147 ------- .../menu/URLBrothersContextMenuStrategy.java | 52 --- .../menu/URLChildrenContextMenuStrategy.java | 51 --- 450 files changed, 11 insertions(+), 37842 deletions(-) delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupValueBaseDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupValueController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupValueController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AnalysisGroupValueDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ApiController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj.orig delete mode 100755 src/main/java/com/labsynch/labseer/web/ApplicationSettingController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ApplicationSettingController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ApplicationSettingController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AuthorController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/AuthorLabelController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/AuthorLabelController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AuthorNameDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/AuthorRoleController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/AuthorStateController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/AuthorStateController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/AuthorValueController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/AuthorValueController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/AutoLabelDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/BatchCodeDTOController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/BulkLoadFileController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/BulkLoadFileController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/BulkLoadFileController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/BulkTransferPart1DTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ChangePasswordController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ChangePasswordForm.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ChangePasswordValidator.java delete mode 100644 src/main/java/com/labsynch/labseer/web/CmpdRegAppSettingController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/CmpdRegAppSettingController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/CodeKindController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/CodeOriginController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/CodeOriginController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/CodeTableDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/CodeTypeController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/CompoundController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/CompoundController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/CompoundController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ContainerController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerKindController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerKindController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ContainerKindController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerLabelController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerMiniDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerStateController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerStateMiniDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerTypeController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerValueController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/CorpNameController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/CorpNameController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/CronJobController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/CronJobController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/DDictKindController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/DDictTypeController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/DDictValueController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/DoseReponseParamsDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/EntrezDbGeneDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ErrorMessageController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ErrorMessageDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentFilterDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentFilterSearchDTOController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ExperimentGuiStubDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentKindController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentKindController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ExperimentKindController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentLabelController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentSearchRequestDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentStateController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentTypeController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentValueController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ExportSDFController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/FileListController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/FileListController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/FileListController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/FileThingController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/FileThingController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/FileThingController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ForgotPasswordController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ForgotPasswordForm.java delete mode 100755 src/main/java/com/labsynch/labseer/web/GeneIdDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/IdCollectionDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/InteractionKindController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/InteractionKindController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/InteractionKindController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/InteractionTypeController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/InteractionTypeController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/InteractionTypeController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/IsoSaltController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/IsoSaltController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/IsoSaltController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxContainerContainerController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/JSTreeNodeDTOController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/KeyValueDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelKindController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelSequenceController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelSequenceDTOController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LabelSequenceRoleController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LabelSequenceRoleController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelTypeController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LotAliasController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LotAliasKindController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LotAliasKindController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LotAliasTypeController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LotAliasTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LotController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LotController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsInteractionController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/LsInteractionController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsInteractionController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsRoleController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsRoleController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsRoleController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqAnlGrpController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqAnlGrpController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqContainerController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqContainerController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqExptController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqExptController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqItxCntrCntrController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqItxCntrCntrController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqItxExperimentExperimentController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqItxExperimentExperimentController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqItxLsThingLsThingController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqItxLsThingLsThingController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqItxProtocolProtocolController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqItxProtocolProtocolController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqItxSubjCntrController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqItxSubjCntrController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqProtocolController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqProtocolController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqSubjectController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqSubjectController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqTrtGrpController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsSeqTrtGrpController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsTagController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingLabelController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingStateController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingValueController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/LsTransactionController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/LsTransactionController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/LsTransactionController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/OperatorKindController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/OperatorKindController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/OperatorKindController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/OperatorTypeController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ParentAliasController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ParentAliasKindController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ParentAliasKindController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ParentAliasTypeController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ParentAliasTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ParentController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ParentController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ParentController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/PreDef_CorpNameController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/PreDef_CorpNameController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/PreferredNameDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/PreferredNameRequestDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/PreferredNameResultsDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/PreferredNameWithErrorDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolKindController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolLabelController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolStateController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolTypeController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolValueController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/RequestNameDTOController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/RoleKindController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/RoleTypeController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller_Json.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/SaltFormAliasController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/SaltFormAliasController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/SaltFormAliasController_Roo_Controller_Finder.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/SaltFormAliasKindController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/SaltFormAliasKindController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/SaltFormAliasTypeController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/SaltFormAliasTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SaltFormController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/SaltFormController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/SaltFormController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SaltLoaderController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/SaltLoaderController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SetupDBController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/SignUpController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/SignUpValidator.java delete mode 100755 src/main/java/com/labsynch/labseer/web/StateKindController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/StateTypeController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/StringCollectionDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectLabelController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectLabelDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectMiniDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectStateController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectStateDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectStateMiniDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectValueController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/SubjectValueDTOController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/TempSelectTableController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/TempSelectTableController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ThingKindController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ThingPageArchiveController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ThingPageArchiveController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ThingPageController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ThingPageController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ThingTypeController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupMiniDTOController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/UncertaintyKindController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/UncertaintyKindController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/UncertaintyKindController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/UnitKindController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/UnitKindController_Roo_Controller.aj delete mode 100644 src/main/java/com/labsynch/labseer/web/UnitKindController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/UnitTypeController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/UpdateLogController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/UpdateLogController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/UserRegistrationForm.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ValueKindController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ValueTypeController.java delete mode 100755 src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller_Finder.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller_Json.aj delete mode 100755 src/main/java/com/labsynch/labseer/web/ValueTypeKindDTOController.java delete mode 100644 src/main/java/com/labsynch/labseer/web/menu/BaseURLContextMenuStrategy.java delete mode 100644 src/main/java/com/labsynch/labseer/web/menu/ContextMenuStrategy.java delete mode 100644 src/main/java/com/labsynch/labseer/web/menu/Menu.java delete mode 100644 src/main/java/com/labsynch/labseer/web/menu/MenuItem.java delete mode 100644 src/main/java/com/labsynch/labseer/web/menu/MenuLoader.java delete mode 100644 src/main/java/com/labsynch/labseer/web/menu/URLBrothersContextMenuStrategy.java delete mode 100644 src/main/java/com/labsynch/labseer/web/menu/URLChildrenContextMenuStrategy.java diff --git a/src/main/java/com/labsynch/labseer/api/ApiAuthorController.java b/src/main/java/com/labsynch/labseer/api/ApiAuthorController.java index afffa8e48..15f4db7c9 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiAuthorController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiAuthorController.java @@ -31,14 +31,21 @@ import com.labsynch.labseer.service.AuthorService; import com.labsynch.labseer.utils.PropertiesFileService; import com.labsynch.labseer.utils.PropertiesUtilService; -import com.labsynch.labseer.web.AuthorController; @Controller @RequestMapping("api/v1/authors") public class ApiAuthorController { + private static final Logger logger = LoggerFactory.getLogger(ApiAuthorController.class); + @Autowired private AuthorService authorService; + + @Autowired + private PropertiesUtilService propertiesUtilService; + + @Autowired + private PropertiesFileService propertiesFileService; @RequestMapping(value="/{format}", method = RequestMethod.GET, headers = "Accept=application/json") @ResponseBody @@ -100,14 +107,6 @@ public ResponseEntity listAuthorsByRoleTypeAndRoleKindAndRoleN } } - private static final Logger logger = LoggerFactory.getLogger(AuthorController.class); - - @Autowired - private PropertiesUtilService propertiesUtilService; - - @Autowired - private PropertiesFileService propertiesFileService; - @RequestMapping(value = "/findbyname", method = RequestMethod.POST, headers = "Accept=application/json") @ResponseBody public ResponseEntity jsonFindAuthorsByName(@RequestBody AuthorNameDTO authorName) { diff --git a/src/main/java/com/labsynch/labseer/api/ApiAuthorRoleController.java b/src/main/java/com/labsynch/labseer/api/ApiAuthorRoleController.java index b48ae3d06..baabc1319 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiAuthorRoleController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiAuthorRoleController.java @@ -21,7 +21,6 @@ import com.labsynch.labseer.domain.AuthorRole; import com.labsynch.labseer.dto.AuthorRoleDTO; import com.labsynch.labseer.service.AuthorRoleService; -import com.labsynch.labseer.web.AuthorRoleController; @Controller @RequestMapping("api/v1/authorroles") @@ -30,7 +29,7 @@ public class ApiAuthorRoleController { @Autowired private AuthorRoleService authorRoleService; - private static final Logger logger = LoggerFactory.getLogger(AuthorRoleController.class); + private static final Logger logger = LoggerFactory.getLogger(ApiAuthorRoleController.class); @RequestMapping(value = "/{id}", headers = "Accept=application/json") diff --git a/src/main/java/com/labsynch/labseer/api/ApiTreatmentGroupController.java b/src/main/java/com/labsynch/labseer/api/ApiTreatmentGroupController.java index 044405727..b0473bf09 100644 --- a/src/main/java/com/labsynch/labseer/api/ApiTreatmentGroupController.java +++ b/src/main/java/com/labsynch/labseer/api/ApiTreatmentGroupController.java @@ -29,7 +29,6 @@ import com.labsynch.labseer.service.SubjectValueService; import com.labsynch.labseer.service.TreatmentGroupService; import com.labsynch.labseer.utils.PropertiesUtilService; -import com.labsynch.labseer.web.TreatmentGroupController; import flexjson.JSONTokener; @@ -38,7 +37,7 @@ @Transactional public class ApiTreatmentGroupController { - private static final Logger logger = LoggerFactory.getLogger(TreatmentGroupController.class); + private static final Logger logger = LoggerFactory.getLogger(ApiTreatmentGroupController.class); @Autowired private PropertiesUtilService propertiesUtilService; diff --git a/src/main/java/com/labsynch/labseer/domain/FileList.java b/src/main/java/com/labsynch/labseer/domain/FileList.java index 572ca0f67..8d1132cd4 100755 --- a/src/main/java/com/labsynch/labseer/domain/FileList.java +++ b/src/main/java/com/labsynch/labseer/domain/FileList.java @@ -22,8 +22,6 @@ import org.springframework.roo.addon.tostring.RooToString; import org.springframework.web.multipart.MultipartFile; -import com.labsynch.labseer.web.FileListController; - @RooJavaBean @RooToString @RooJson @@ -31,7 +29,7 @@ public class FileList { - private static final Logger logger = LoggerFactory.getLogger(FileListController.class); + private static final Logger logger = LoggerFactory.getLogger(FileList.class); @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "lot") diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupController.java b/src/main/java/com/labsynch/labseer/web/AnalysisGroupController.java deleted file mode 100755 index cf3cd7e08..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupController.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.dto.IdCollectionDTO; -import com.labsynch.labseer.service.AnalysisGroupService; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.FileReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = AnalysisGroup.class) -@Controller -@RequestMapping("/analysisgroups") -@RooWebScaffold(path = "analysisgroups", formBackingObject = AnalysisGroup.class) -@RooWebFinder -public class AnalysisGroupController { -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller.aj deleted file mode 100755 index c5e40de78..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller.aj +++ /dev/null @@ -1,120 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.AnalysisGroupLabel; -import com.labsynch.labseer.domain.AnalysisGroupState; -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.web.AnalysisGroupController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect AnalysisGroupController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String AnalysisGroupController.create(@Valid AnalysisGroup analysisGroup, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, analysisGroup); - return "analysisgroups/create"; - } - uiModel.asMap().clear(); - analysisGroup.persist(); - return "redirect:/analysisgroups/" + encodeUrlPathSegment(analysisGroup.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String AnalysisGroupController.createForm(Model uiModel) { - populateEditForm(uiModel, new AnalysisGroup()); - return "analysisgroups/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String AnalysisGroupController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("analysisgroup", AnalysisGroup.findAnalysisGroup(id)); - uiModel.addAttribute("itemId", id); - return "analysisgroups/show"; - } - - @RequestMapping(produces = "text/html") - public String AnalysisGroupController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAnalysisGroupEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) AnalysisGroup.countAnalysisGroups() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAllAnalysisGroups(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroups/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String AnalysisGroupController.update(@Valid AnalysisGroup analysisGroup, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, analysisGroup); - return "analysisgroups/update"; - } - uiModel.asMap().clear(); - analysisGroup.merge(); - return "redirect:/analysisgroups/" + encodeUrlPathSegment(analysisGroup.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String AnalysisGroupController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, AnalysisGroup.findAnalysisGroup(id)); - return "analysisgroups/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String AnalysisGroupController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - AnalysisGroup analysisGroup = AnalysisGroup.findAnalysisGroup(id); - analysisGroup.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/analysisgroups"; - } - - void AnalysisGroupController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("analysisGroup_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("analysisGroup_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void AnalysisGroupController.populateEditForm(Model uiModel, AnalysisGroup analysisGroup) { - uiModel.addAttribute("analysisGroup", analysisGroup); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("analysisgrouplabels", AnalysisGroupLabel.findAllAnalysisGroupLabels()); - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAllAnalysisGroupStates()); - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findAllTreatmentGroups()); - } - - String AnalysisGroupController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller_Finder.aj deleted file mode 100755 index d36d7d9af..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,79 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.web.AnalysisGroupController; -import java.util.Set; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect AnalysisGroupController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByExperiments", "form" }, method = RequestMethod.GET) - public String AnalysisGroupController.findAnalysisGroupsByExperimentsForm(Model uiModel) { - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - return "analysisgroups/findAnalysisGroupsByExperiments"; - } - - @RequestMapping(params = "find=ByExperiments", method = RequestMethod.GET) - public String AnalysisGroupController.findAnalysisGroupsByExperiments(@RequestParam("experiments") Set experiments, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAnalysisGroupsByExperiments(experiments, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroup.countFindAnalysisGroupsByExperiments(experiments) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAnalysisGroupsByExperiments(experiments, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroups/list"; - } - - @RequestMapping(params = { "find=ByExperimentsAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String AnalysisGroupController.findAnalysisGroupsByExperimentsAndIgnoredNotForm(Model uiModel) { - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - return "analysisgroups/findAnalysisGroupsByExperimentsAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByExperimentsAndIgnoredNot", method = RequestMethod.GET) - public String AnalysisGroupController.findAnalysisGroupsByExperimentsAndIgnoredNot(@RequestParam("experiments") Set experiments, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAnalysisGroupsByExperimentsAndIgnoredNot(experiments, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroup.countFindAnalysisGroupsByExperimentsAndIgnoredNot(experiments, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAnalysisGroupsByExperimentsAndIgnoredNot(experiments, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroups/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String AnalysisGroupController.findAnalysisGroupsByLsTransactionEqualsForm(Model uiModel) { - return "analysisgroups/findAnalysisGroupsByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String AnalysisGroupController.findAnalysisGroupsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAnalysisGroupsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroup.countFindAnalysisGroupsByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAnalysisGroupsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroups/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller_Json.aj deleted file mode 100755 index 4e967cb4c..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupController_Roo_Controller_Json.aj +++ /dev/null @@ -1,150 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.web.AnalysisGroupController; -import java.util.List; -import java.util.Set; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect AnalysisGroupController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - AnalysisGroup analysisGroup = AnalysisGroup.findAnalysisGroup(id); - if (analysisGroup == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(analysisGroup.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = AnalysisGroup.findAllAnalysisGroups(); - return new ResponseEntity(AnalysisGroup.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity AnalysisGroupController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - AnalysisGroup analysisGroup = AnalysisGroup.fromJsonToAnalysisGroup(json); - analysisGroup.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+analysisGroup.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity AnalysisGroupController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (AnalysisGroup analysisGroup: AnalysisGroup.fromJsonArrayToAnalysisGroups(json)) { - analysisGroup.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity AnalysisGroupController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - AnalysisGroup analysisGroup = AnalysisGroup.fromJsonToAnalysisGroup(json); - analysisGroup.setId(id); - if (analysisGroup.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity AnalysisGroupController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - AnalysisGroup analysisGroup = AnalysisGroup.findAnalysisGroup(id); - if (analysisGroup == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - analysisGroup.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByExperiments", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupController.jsonFindAnalysisGroupsByExperiments(@RequestParam("experiments") Set experiments) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroup.toJsonArray(AnalysisGroup.findAnalysisGroupsByExperiments(experiments).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByExperimentsAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupController.jsonFindAnalysisGroupsByExperimentsAndIgnoredNot(@RequestParam("experiments") Set experiments, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroup.toJsonArray(AnalysisGroup.findAnalysisGroupsByExperimentsAndIgnoredNot(experiments, ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupController.jsonFindAnalysisGroupsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroup.toJsonArray(AnalysisGroup.findAnalysisGroupsByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController.java b/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController.java deleted file mode 100755 index a316ba387..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroupLabel; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = AnalysisGroupLabel.class) -@Controller -@RequestMapping("/analysisgrouplabels") -@RooWebScaffold(path = "analysisgrouplabels", formBackingObject = AnalysisGroupLabel.class) -@RooWebFinder -public class AnalysisGroupLabelController { -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller.aj deleted file mode 100755 index b2a7aa756..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller.aj +++ /dev/null @@ -1,119 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.AnalysisGroupLabel; -import com.labsynch.labseer.web.AnalysisGroupLabelController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect AnalysisGroupLabelController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String AnalysisGroupLabelController.create(@Valid AnalysisGroupLabel analysisGroupLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, analysisGroupLabel); - return "analysisgrouplabels/create"; - } - uiModel.asMap().clear(); - analysisGroupLabel.persist(); - return "redirect:/analysisgrouplabels/" + encodeUrlPathSegment(analysisGroupLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String AnalysisGroupLabelController.createForm(Model uiModel) { - populateEditForm(uiModel, new AnalysisGroupLabel()); - List dependencies = new ArrayList(); - if (AnalysisGroup.countAnalysisGroups() == 0) { - dependencies.add(new String[] { "analysisGroup", "analysisgroups" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "analysisgrouplabels/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String AnalysisGroupLabelController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("analysisgrouplabel", AnalysisGroupLabel.findAnalysisGroupLabel(id)); - uiModel.addAttribute("itemId", id); - return "analysisgrouplabels/show"; - } - - @RequestMapping(produces = "text/html") - public String AnalysisGroupLabelController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgrouplabels", AnalysisGroupLabel.findAnalysisGroupLabelEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) AnalysisGroupLabel.countAnalysisGroupLabels() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgrouplabels", AnalysisGroupLabel.findAllAnalysisGroupLabels(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgrouplabels/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String AnalysisGroupLabelController.update(@Valid AnalysisGroupLabel analysisGroupLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, analysisGroupLabel); - return "analysisgrouplabels/update"; - } - uiModel.asMap().clear(); - analysisGroupLabel.merge(); - return "redirect:/analysisgrouplabels/" + encodeUrlPathSegment(analysisGroupLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String AnalysisGroupLabelController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, AnalysisGroupLabel.findAnalysisGroupLabel(id)); - return "analysisgrouplabels/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String AnalysisGroupLabelController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - AnalysisGroupLabel analysisGroupLabel = AnalysisGroupLabel.findAnalysisGroupLabel(id); - analysisGroupLabel.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/analysisgrouplabels"; - } - - void AnalysisGroupLabelController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("analysisGroupLabel_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("analysisGroupLabel_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void AnalysisGroupLabelController.populateEditForm(Model uiModel, AnalysisGroupLabel analysisGroupLabel) { - uiModel.addAttribute("analysisGroupLabel", analysisGroupLabel); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAllAnalysisGroups()); - } - - String AnalysisGroupLabelController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller_Finder.aj deleted file mode 100755 index 74fd42986..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,57 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.AnalysisGroupLabel; -import com.labsynch.labseer.web.AnalysisGroupLabelController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect AnalysisGroupLabelController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByAnalysisGroup", "form" }, method = RequestMethod.GET) - public String AnalysisGroupLabelController.findAnalysisGroupLabelsByAnalysisGroupForm(Model uiModel) { - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAllAnalysisGroups()); - return "analysisgrouplabels/findAnalysisGroupLabelsByAnalysisGroup"; - } - - @RequestMapping(params = "find=ByAnalysisGroup", method = RequestMethod.GET) - public String AnalysisGroupLabelController.findAnalysisGroupLabelsByAnalysisGroup(@RequestParam("analysisGroup") AnalysisGroup analysisGroup, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgrouplabels", AnalysisGroupLabel.findAnalysisGroupLabelsByAnalysisGroup(analysisGroup, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupLabel.countFindAnalysisGroupLabelsByAnalysisGroup(analysisGroup) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgrouplabels", AnalysisGroupLabel.findAnalysisGroupLabelsByAnalysisGroup(analysisGroup, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgrouplabels/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String AnalysisGroupLabelController.findAnalysisGroupLabelsByLsTransactionEqualsForm(Model uiModel) { - return "analysisgrouplabels/findAnalysisGroupLabelsByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String AnalysisGroupLabelController.findAnalysisGroupLabelsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgrouplabels", AnalysisGroupLabel.findAnalysisGroupLabelsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupLabel.countFindAnalysisGroupLabelsByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgrouplabels", AnalysisGroupLabel.findAnalysisGroupLabelsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgrouplabels/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller_Json.aj deleted file mode 100755 index dc151e9aa..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupLabelController_Roo_Controller_Json.aj +++ /dev/null @@ -1,137 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.AnalysisGroupLabel; -import com.labsynch.labseer.web.AnalysisGroupLabelController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect AnalysisGroupLabelController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupLabelController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - AnalysisGroupLabel analysisGroupLabel = AnalysisGroupLabel.findAnalysisGroupLabel(id); - if (analysisGroupLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(analysisGroupLabel.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupLabelController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = AnalysisGroupLabel.findAllAnalysisGroupLabels(); - return new ResponseEntity(AnalysisGroupLabel.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity AnalysisGroupLabelController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - AnalysisGroupLabel analysisGroupLabel = AnalysisGroupLabel.fromJsonToAnalysisGroupLabel(json); - analysisGroupLabel.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+analysisGroupLabel.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity AnalysisGroupLabelController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (AnalysisGroupLabel analysisGroupLabel: AnalysisGroupLabel.fromJsonArrayToAnalysisGroupLabels(json)) { - analysisGroupLabel.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity AnalysisGroupLabelController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - AnalysisGroupLabel analysisGroupLabel = AnalysisGroupLabel.fromJsonToAnalysisGroupLabel(json); - analysisGroupLabel.setId(id); - if (analysisGroupLabel.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity AnalysisGroupLabelController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - AnalysisGroupLabel analysisGroupLabel = AnalysisGroupLabel.findAnalysisGroupLabel(id); - if (analysisGroupLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - analysisGroupLabel.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByAnalysisGroup", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupLabelController.jsonFindAnalysisGroupLabelsByAnalysisGroup(@RequestParam("analysisGroup") AnalysisGroup analysisGroup) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupLabel.toJsonArray(AnalysisGroupLabel.findAnalysisGroupLabelsByAnalysisGroup(analysisGroup).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupLabelController.jsonFindAnalysisGroupLabelsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupLabel.toJsonArray(AnalysisGroupLabel.findAnalysisGroupLabelsByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController.java b/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController.java deleted file mode 100755 index 3561bbb83..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.AnalysisGroupState; -import com.labsynch.labseer.domain.AnalysisGroupValue; -import com.labsynch.labseer.service.AnalysisGroupStateService; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.FileReader; -import java.io.StringReader; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.apache.commons.io.IOUtils; -import org.joda.time.format.DateTimeFormat; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -@RooWebJson(jsonObject = AnalysisGroupState.class) -@Controller -@RequestMapping("/analysisgroupstates") -@RooWebScaffold(path = "analysisgroupstates", formBackingObject = AnalysisGroupState.class) -@RooWebFinder -@Transactional -public class AnalysisGroupStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller.aj deleted file mode 100644 index 1b127f2db..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller.aj +++ /dev/null @@ -1,121 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.AnalysisGroupState; -import com.labsynch.labseer.domain.AnalysisGroupValue; -import com.labsynch.labseer.web.AnalysisGroupStateController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect AnalysisGroupStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String AnalysisGroupStateController.create(@Valid AnalysisGroupState analysisGroupState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, analysisGroupState); - return "analysisgroupstates/create"; - } - uiModel.asMap().clear(); - analysisGroupState.persist(); - return "redirect:/analysisgroupstates/" + encodeUrlPathSegment(analysisGroupState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String AnalysisGroupStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new AnalysisGroupState()); - List dependencies = new ArrayList(); - if (AnalysisGroup.countAnalysisGroups() == 0) { - dependencies.add(new String[] { "analysisGroup", "analysisgroups" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "analysisgroupstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String AnalysisGroupStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("analysisgroupstate", AnalysisGroupState.findAnalysisGroupState(id)); - uiModel.addAttribute("itemId", id); - return "analysisgroupstates/show"; - } - - @RequestMapping(produces = "text/html") - public String AnalysisGroupStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAnalysisGroupStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) AnalysisGroupState.countAnalysisGroupStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAllAnalysisGroupStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String AnalysisGroupStateController.update(@Valid AnalysisGroupState analysisGroupState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, analysisGroupState); - return "analysisgroupstates/update"; - } - uiModel.asMap().clear(); - analysisGroupState.merge(); - return "redirect:/analysisgroupstates/" + encodeUrlPathSegment(analysisGroupState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String AnalysisGroupStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, AnalysisGroupState.findAnalysisGroupState(id)); - return "analysisgroupstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String AnalysisGroupStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - AnalysisGroupState analysisGroupState = AnalysisGroupState.findAnalysisGroupState(id); - analysisGroupState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/analysisgroupstates"; - } - - void AnalysisGroupStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("analysisGroupState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("analysisGroupState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void AnalysisGroupStateController.populateEditForm(Model uiModel, AnalysisGroupState analysisGroupState) { - uiModel.addAttribute("analysisGroupState", analysisGroupState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAllAnalysisGroups()); - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAllAnalysisGroupValues()); - } - - String AnalysisGroupStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller_Finder.aj deleted file mode 100755 index 28c0f683c..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,118 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.AnalysisGroupState; -import com.labsynch.labseer.web.AnalysisGroupStateController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect AnalysisGroupStateController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByAnalysisGroup", "form" }, method = RequestMethod.GET) - public String AnalysisGroupStateController.findAnalysisGroupStatesByAnalysisGroupForm(Model uiModel) { - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAllAnalysisGroups()); - return "analysisgroupstates/findAnalysisGroupStatesByAnalysisGroup"; - } - - @RequestMapping(params = "find=ByAnalysisGroup", method = RequestMethod.GET) - public String AnalysisGroupStateController.findAnalysisGroupStatesByAnalysisGroup(@RequestParam("analysisGroup") AnalysisGroup analysisGroup, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAnalysisGroupStatesByAnalysisGroup(analysisGroup, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupState.countFindAnalysisGroupStatesByAnalysisGroup(analysisGroup) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAnalysisGroupStatesByAnalysisGroup(analysisGroup, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupstates/list"; - } - - @RequestMapping(params = { "find=ByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String AnalysisGroupStateController.findAnalysisGroupStatesByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNotForm(Model uiModel) { - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAllAnalysisGroups()); - return "analysisgroupstates/findAnalysisGroupStatesByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot", method = RequestMethod.GET) - public String AnalysisGroupStateController.findAnalysisGroupStatesByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot(@RequestParam("analysisGroup") AnalysisGroup analysisGroup, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAnalysisGroupStatesByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot(analysisGroup, lsType, lsKind, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupState.countFindAnalysisGroupStatesByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot(analysisGroup, lsType, lsKind, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAnalysisGroupStatesByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot(analysisGroup, lsType, lsKind, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupstates/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String AnalysisGroupStateController.findAnalysisGroupStatesByLsTransactionEqualsForm(Model uiModel) { - return "analysisgroupstates/findAnalysisGroupStatesByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String AnalysisGroupStateController.findAnalysisGroupStatesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAnalysisGroupStatesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupState.countFindAnalysisGroupStatesByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAnalysisGroupStatesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupstates/list"; - } - - @RequestMapping(params = { "find=ByLsTypeAndKindEquals", "form" }, method = RequestMethod.GET) - public String AnalysisGroupStateController.findAnalysisGroupStatesByLsTypeAndKindEqualsForm(Model uiModel) { - return "analysisgroupstates/findAnalysisGroupStatesByLsTypeAndKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeAndKindEquals", method = RequestMethod.GET) - public String AnalysisGroupStateController.findAnalysisGroupStatesByLsTypeAndKindEquals(@RequestParam("lsTypeAndKind") String lsTypeAndKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAnalysisGroupStatesByLsTypeAndKindEquals(lsTypeAndKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupState.countFindAnalysisGroupStatesByLsTypeAndKindEquals(lsTypeAndKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAnalysisGroupStatesByLsTypeAndKindEquals(lsTypeAndKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupstates/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String AnalysisGroupStateController.findAnalysisGroupStatesByLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - return "analysisgroupstates/findAnalysisGroupStatesByLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String AnalysisGroupStateController.findAnalysisGroupStatesByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAnalysisGroupStatesByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupState.countFindAnalysisGroupStatesByLsTypeEqualsAndLsKindEquals(lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAnalysisGroupStatesByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupstates/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller_Json.aj deleted file mode 100755 index 92451530f..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupStateController_Roo_Controller_Json.aj +++ /dev/null @@ -1,173 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.AnalysisGroupState; -import com.labsynch.labseer.web.AnalysisGroupStateController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect AnalysisGroupStateController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupStateController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - AnalysisGroupState analysisGroupState = AnalysisGroupState.findAnalysisGroupState(id); - if (analysisGroupState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(analysisGroupState.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupStateController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = AnalysisGroupState.findAllAnalysisGroupStates(); - return new ResponseEntity(AnalysisGroupState.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity AnalysisGroupStateController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - AnalysisGroupState analysisGroupState = AnalysisGroupState.fromJsonToAnalysisGroupState(json); - analysisGroupState.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+analysisGroupState.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity AnalysisGroupStateController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (AnalysisGroupState analysisGroupState: AnalysisGroupState.fromJsonArrayToAnalysisGroupStates(json)) { - analysisGroupState.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity AnalysisGroupStateController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - AnalysisGroupState analysisGroupState = AnalysisGroupState.fromJsonToAnalysisGroupState(json); - analysisGroupState.setId(id); - if (analysisGroupState.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity AnalysisGroupStateController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - AnalysisGroupState analysisGroupState = AnalysisGroupState.findAnalysisGroupState(id); - if (analysisGroupState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - analysisGroupState.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByAnalysisGroup", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupStateController.jsonFindAnalysisGroupStatesByAnalysisGroup(@RequestParam("analysisGroup") AnalysisGroup analysisGroup) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupState.toJsonArray(AnalysisGroupState.findAnalysisGroupStatesByAnalysisGroup(analysisGroup).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupStateController.jsonFindAnalysisGroupStatesByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot(@RequestParam("analysisGroup") AnalysisGroup analysisGroup, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupState.toJsonArray(AnalysisGroupState.findAnalysisGroupStatesByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot(analysisGroup, lsType, lsKind, ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupStateController.jsonFindAnalysisGroupStatesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupState.toJsonArray(AnalysisGroupState.findAnalysisGroupStatesByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeAndKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupStateController.jsonFindAnalysisGroupStatesByLsTypeAndKindEquals(@RequestParam("lsTypeAndKind") String lsTypeAndKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupState.toJsonArray(AnalysisGroupState.findAnalysisGroupStatesByLsTypeAndKindEquals(lsTypeAndKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AnalysisGroupStateController.jsonFindAnalysisGroupStatesByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupState.toJsonArray(AnalysisGroupState.findAnalysisGroupStatesByLsTypeEqualsAndLsKindEquals(lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueBaseDTOController.java b/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueBaseDTOController.java deleted file mode 100755 index c393c0b19..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueBaseDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.AnalysisGroupValueBaseDTO; - -@RooWebJson(jsonObject = AnalysisGroupValueBaseDTO.class) -@Controller -@RequestMapping("/analysisgroes") -public class AnalysisGroupValueBaseDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueController.java b/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueController.java deleted file mode 100755 index 9ebe6c30f..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueController.java +++ /dev/null @@ -1,278 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroupState; -import com.labsynch.labseer.domain.AnalysisGroupValue; -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.dto.AnalysisGroupValueDTO; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONDeserializer; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.FileReader; -import java.io.IOException; -import java.io.StringReader; -import java.io.StringWriter; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.apache.commons.io.IOUtils; -import org.joda.time.format.DateTimeFormat; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; -import org.supercsv.cellprocessor.ift.CellProcessor; -import org.supercsv.io.CsvBeanWriter; -import org.supercsv.io.ICsvBeanWriter; -import org.supercsv.prefs.CsvPreference; - -@RooWebJson(jsonObject = AnalysisGroupValue.class) -@Controller -@RequestMapping("/analysisgroupvalues") -@RooWebScaffold(path = "analysisgroupvalues", formBackingObject = AnalysisGroupValue.class) -@Transactional -@RooWebFinder -public class AnalysisGroupValueController { - - private static final Logger logger = LoggerFactory.getLogger(AnalysisGroupValueController.class); - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String create(@Valid AnalysisGroupValue analysisGroupValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, analysisGroupValue); - return "analysisgroupvalues/create"; - } - uiModel.asMap().clear(); - analysisGroupValue.persist(); - return "redirect:/analysisgroupvalues/" + encodeUrlPathSegment(analysisGroupValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String createForm(Model uiModel) { - populateEditForm(uiModel, new AnalysisGroupValue()); - List dependencies = new ArrayList(); - if (AnalysisGroupState.countAnalysisGroupStates() == 0) { - dependencies.add(new String[] { "analysisgroupstate", "analysisgroupstates" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "analysisgroupvalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("analysisgroupvalue", AnalysisGroupValue.findAnalysisGroupValue(id)); - uiModel.addAttribute("itemId", id); - return "analysisgroupvalues/show"; - } - - @RequestMapping(produces = "text/html") - public String list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValueEntries(firstResult, sizeNo)); - float nrOfPages = (float) AnalysisGroupValue.countAnalysisGroupValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAllAnalysisGroupValues()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupvalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String update(@Valid AnalysisGroupValue analysisGroupValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, analysisGroupValue); - return "analysisgroupvalues/update"; - } - uiModel.asMap().clear(); - analysisGroupValue.merge(); - return "redirect:/analysisgroupvalues/" + encodeUrlPathSegment(analysisGroupValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, AnalysisGroupValue.findAnalysisGroupValue(id)); - return "analysisgroupvalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - AnalysisGroupValue analysisGroupValue = AnalysisGroupValue.findAnalysisGroupValue(id); - analysisGroupValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/analysisgroupvalues"; - } - - void addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("analysisGroupValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("analysisGroupValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("analysisGroupValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void populateEditForm(Model uiModel, AnalysisGroupValue analysisGroupValue) { - uiModel.addAttribute("analysisGroupValue", analysisGroupValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAllAnalysisGroupStates()); - } - - String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - - @RequestMapping(value = "/{id}", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - AnalysisGroupValue analysisGroupValue = AnalysisGroupValue.findAnalysisGroupValue(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - if (analysisGroupValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(analysisGroupValue.toJson(), headers, HttpStatus.OK); - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - List result = AnalysisGroupValue.findAllAnalysisGroupValues(); - return new ResponseEntity(AnalysisGroupValue.toJsonArray(result), headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json) { - AnalysisGroupValue analysisGroupValue = AnalysisGroupValue.fromJsonToAnalysisGroupValue(json); - analysisGroupValue.persist(); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - for (AnalysisGroupValue analysisGroupValue : AnalysisGroupValue.fromJsonArrayToAnalysisGroupValues(json)) { - analysisGroupValue.persist(); - } - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - AnalysisGroupValue analysisGroupValue = AnalysisGroupValue.fromJsonToAnalysisGroupValue(json); - if (analysisGroupValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - for (AnalysisGroupValue analysisGroupValue : AnalysisGroupValue.fromJsonArrayToAnalysisGroupValues(json)) { - if (analysisGroupValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - AnalysisGroupValue analysisGroupValue = AnalysisGroupValue.findAnalysisGroupValue(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - if (analysisGroupValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - analysisGroupValue.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(params = "find=ByCodeValueEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity jsonFindAnalysisGroupValuesByCodeValueEquals(@RequestParam("codeValue") String codeValue) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupValue.toJsonArray(AnalysisGroupValue.findAnalysisGroupValuesByCodeValueEquals(codeValue).getResultList()), headers, HttpStatus.OK); - } - - @RequestMapping(params = "find=ByIgnoredNotAndCodeValueEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity jsonFindAnalysisGroupValuesByIgnoredNotAndCodeValueEquals(@RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam("codeValue") String codeValue) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupValue.toJsonArray(AnalysisGroupValue.findAnalysisGroupValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue).getResultList()), headers, HttpStatus.OK); - } - - @RequestMapping(params = "find=ByLsState", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity jsonFindAnalysisGroupValuesByLsState(@RequestParam("lsState") AnalysisGroupState lsState) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupValue.toJsonArray(AnalysisGroupValue.findAnalysisGroupValuesByLsState(lsState).getResultList()), headers, HttpStatus.OK); - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity jsonFindAnalysisGroupValuesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupValue.toJsonArray(AnalysisGroupValue.findAnalysisGroupValuesByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity jsonFindAnalysisGroupValuesByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupValue.toJsonArray(AnalysisGroupValue.findAnalysisGroupValuesByLsTypeEqualsAndLsKindEquals(lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity jsonFindAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam("stringValue") String stringValue, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AnalysisGroupValue.toJsonArray(AnalysisGroupValue.findAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot(lsType, lsKind, stringValue, ignored).getResultList()), headers, HttpStatus.OK); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueController_Roo_Controller_Finder.aj deleted file mode 100755 index fec5a4148..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,137 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroupState; -import com.labsynch.labseer.domain.AnalysisGroupValue; -import com.labsynch.labseer.web.AnalysisGroupValueController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect AnalysisGroupValueController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeValueEquals", "form" }, method = RequestMethod.GET) - public String AnalysisGroupValueController.findAnalysisGroupValuesByCodeValueEqualsForm(Model uiModel) { - return "analysisgroupvalues/findAnalysisGroupValuesByCodeValueEquals"; - } - - @RequestMapping(params = "find=ByCodeValueEquals", method = RequestMethod.GET) - public String AnalysisGroupValueController.findAnalysisGroupValuesByCodeValueEquals(@RequestParam("codeValue") String codeValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValuesByCodeValueEquals(codeValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupValue.countFindAnalysisGroupValuesByCodeValueEquals(codeValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValuesByCodeValueEquals(codeValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupvalues/list"; - } - - @RequestMapping(params = { "find=ByIgnoredNotAndCodeValueEquals", "form" }, method = RequestMethod.GET) - public String AnalysisGroupValueController.findAnalysisGroupValuesByIgnoredNotAndCodeValueEqualsForm(Model uiModel) { - return "analysisgroupvalues/findAnalysisGroupValuesByIgnoredNotAndCodeValueEquals"; - } - - @RequestMapping(params = "find=ByIgnoredNotAndCodeValueEquals", method = RequestMethod.GET) - public String AnalysisGroupValueController.findAnalysisGroupValuesByIgnoredNotAndCodeValueEquals(@RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam("codeValue") String codeValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupValue.countFindAnalysisGroupValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupvalues/list"; - } - - @RequestMapping(params = { "find=ByLsState", "form" }, method = RequestMethod.GET) - public String AnalysisGroupValueController.findAnalysisGroupValuesByLsStateForm(Model uiModel) { - uiModel.addAttribute("analysisgroupstates", AnalysisGroupState.findAllAnalysisGroupStates()); - return "analysisgroupvalues/findAnalysisGroupValuesByLsState"; - } - - @RequestMapping(params = "find=ByLsState", method = RequestMethod.GET) - public String AnalysisGroupValueController.findAnalysisGroupValuesByLsState(@RequestParam("lsState") AnalysisGroupState lsState, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValuesByLsState(lsState, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupValue.countFindAnalysisGroupValuesByLsState(lsState) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValuesByLsState(lsState, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupvalues/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String AnalysisGroupValueController.findAnalysisGroupValuesByLsTransactionEqualsForm(Model uiModel) { - return "analysisgroupvalues/findAnalysisGroupValuesByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String AnalysisGroupValueController.findAnalysisGroupValuesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValuesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupValue.countFindAnalysisGroupValuesByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValuesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupvalues/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String AnalysisGroupValueController.findAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - return "analysisgroupvalues/findAnalysisGroupValuesByLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String AnalysisGroupValueController.findAnalysisGroupValuesByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValuesByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupValue.countFindAnalysisGroupValuesByLsTypeEqualsAndLsKindEquals(lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValuesByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupvalues/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String AnalysisGroupValueController.findAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNotForm(Model uiModel) { - return "analysisgroupvalues/findAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot", method = RequestMethod.GET) - public String AnalysisGroupValueController.findAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam("stringValue") String stringValue, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot(lsType, lsKind, stringValue, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AnalysisGroupValue.countFindAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot(lsType, lsKind, stringValue, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("analysisgroupvalues", AnalysisGroupValue.findAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot(lsType, lsKind, stringValue, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "analysisgroupvalues/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueDTOController.java b/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueDTOController.java deleted file mode 100755 index 676df3bc1..000000000 --- a/src/main/java/com/labsynch/labseer/web/AnalysisGroupValueDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.AnalysisGroupValueDTO; - -@RooWebJson(jsonObject = AnalysisGroupValueDTO.class) -@Controller -@RequestMapping("/analysisgroes") -public class AnalysisGroupValueDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ApiController.java b/src/main/java/com/labsynch/labseer/web/ApiController.java deleted file mode 100755 index dd090a613..000000000 --- a/src/main/java/com/labsynch/labseer/web/ApiController.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.labsynch.labseer.web; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.MediaType; -import org.springframework.http.ResponseEntity; -import org.springframework.stereotype.Controller; -import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; - -import com.labsynch.labseer.service.CorpNameService; - -@RequestMapping("/api") -@Controller -public class ApiController { - - private static final Logger logger = LoggerFactory.getLogger(ApiController.class); - - @Autowired - private CorpNameService corpNameService; - - @RequestMapping - public void get(ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) { - } - - - @RequestMapping(value = "/compound/convertBuid/", method = RequestMethod.POST, headers = "Accept=application/text") - public ResponseEntity post(@RequestBody String aliasList) { - HttpHeaders headers= new HttpHeaders(); - headers.setContentType(MediaType.TEXT_HTML); - logger.debug("Input aliasList: " + aliasList); - String preferredIds = corpNameService.getPreferredNameFromBuid(aliasList); - - return new ResponseEntity(preferredIds, headers, HttpStatus.OK); - } - - @RequestMapping(value = "/compound/buidLotNumber/", method = RequestMethod.POST, headers = "Accept=application/text") - public ResponseEntity buidToLotNumber(@RequestBody String aliasList) { - HttpHeaders headers= new HttpHeaders(); - headers.setContentType(MediaType.TEXT_HTML); - logger.debug("Input aliasList: " + aliasList); - String lotNumbers = corpNameService.getLotNumberFromBuid(aliasList); - - return new ResponseEntity(lotNumbers, headers, HttpStatus.OK); - } - - - @RequestMapping(method = RequestMethod.OPTIONS) - public ResponseEntity getOptions() { - HttpHeaders headers= new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control","no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma","no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - - return new ResponseEntity(headers, HttpStatus.OK); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj.orig b/src/main/java/com/labsynch/labseer/web/ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj.orig deleted file mode 100644 index 0673636c8..000000000 --- a/src/main/java/com/labsynch/labseer/web/ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj.orig +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -<<<<<<< HEAD -import com.labsynch.labseer.domain.CodeOrigin; -======= -import com.labsynch.labseer.domain.ItxExperimentExperiment; -import com.labsynch.labseer.domain.ItxExperimentExperimentState; -import com.labsynch.labseer.domain.ItxExperimentExperimentValue; ->>>>>>> many-to-many_gwhite -import com.labsynch.labseer.web.ApplicationConversionServiceFactoryBean; -import org.springframework.core.convert.converter.Converter; - -privileged aspect ApplicationConversionServiceFactoryBean_Roo_ConversionService { - -<<<<<<< HEAD - public Converter ApplicationConversionServiceFactoryBean.getCodeOriginToStringConverter() { - return new org.springframework.core.convert.converter.Converter() { - public String convert(CodeOrigin codeOrigin) { - return new StringBuilder().append(codeOrigin.getName()).toString(); -======= - public Converter ApplicationConversionServiceFactoryBean.getItxExperimentExperimentToStringConverter() { - return new org.springframework.core.convert.converter.Converter() { - public String convert(ItxExperimentExperiment itxExperimentExperiment) { - return new StringBuilder().append(itxExperimentExperiment.getLsType()).append(' ').append(itxExperimentExperiment.getLsKind()).append(' ').append(itxExperimentExperiment.getLsTypeAndKind()).append(' ').append(itxExperimentExperiment.getCodeName()).toString(); ->>>>>>> many-to-many_gwhite - } - }; - } - -<<<<<<< HEAD - public Converter ApplicationConversionServiceFactoryBean.getIdToCodeOriginConverter() { - return new org.springframework.core.convert.converter.Converter() { - public com.labsynch.labseer.domain.CodeOrigin convert(java.lang.Long id) { - return CodeOrigin.findCodeOrigin(id); -======= - public Converter ApplicationConversionServiceFactoryBean.getIdToItxExperimentExperimentConverter() { - return new org.springframework.core.convert.converter.Converter() { - public com.labsynch.labseer.domain.ItxExperimentExperiment convert(java.lang.Long id) { - return ItxExperimentExperiment.findItxExperimentExperiment(id); ->>>>>>> many-to-many_gwhite - } - }; - } - -<<<<<<< HEAD - public Converter ApplicationConversionServiceFactoryBean.getStringToCodeOriginConverter() { - return new org.springframework.core.convert.converter.Converter() { - public com.labsynch.labseer.domain.CodeOrigin convert(String id) { - return getObject().convert(getObject().convert(id, Long.class), CodeOrigin.class); -======= - public Converter ApplicationConversionServiceFactoryBean.getStringToItxExperimentExperimentConverter() { - return new org.springframework.core.convert.converter.Converter() { - public com.labsynch.labseer.domain.ItxExperimentExperiment convert(String id) { - return getObject().convert(getObject().convert(id, Long.class), ItxExperimentExperiment.class); - } - }; - } - - public Converter ApplicationConversionServiceFactoryBean.getItxExperimentExperimentStateToStringConverter() { - return new org.springframework.core.convert.converter.Converter() { - public String convert(ItxExperimentExperimentState itxExperimentExperimentState) { - return new StringBuilder().append(itxExperimentExperimentState.getRecordedBy()).append(' ').append(itxExperimentExperimentState.getRecordedDate()).append(' ').append(itxExperimentExperimentState.getModifiedBy()).append(' ').append(itxExperimentExperimentState.getModifiedDate()).toString(); - } - }; - } - - public Converter ApplicationConversionServiceFactoryBean.getIdToItxExperimentExperimentStateConverter() { - return new org.springframework.core.convert.converter.Converter() { - public com.labsynch.labseer.domain.ItxExperimentExperimentState convert(java.lang.Long id) { - return ItxExperimentExperimentState.findItxExperimentExperimentState(id); - } - }; - } - - public Converter ApplicationConversionServiceFactoryBean.getStringToItxExperimentExperimentStateConverter() { - return new org.springframework.core.convert.converter.Converter() { - public com.labsynch.labseer.domain.ItxExperimentExperimentState convert(String id) { - return getObject().convert(getObject().convert(id, Long.class), ItxExperimentExperimentState.class); - } - }; - } - - public Converter ApplicationConversionServiceFactoryBean.getItxExperimentExperimentValueToStringConverter() { - return new org.springframework.core.convert.converter.Converter() { - public String convert(ItxExperimentExperimentValue itxExperimentExperimentValue) { - return new StringBuilder().append(itxExperimentExperimentValue.getLsType()).append(' ').append(itxExperimentExperimentValue.getLsKind()).append(' ').append(itxExperimentExperimentValue.getLsTypeAndKind()).append(' ').append(itxExperimentExperimentValue.getCodeType()).toString(); - } - }; - } - - public Converter ApplicationConversionServiceFactoryBean.getIdToItxExperimentExperimentValueConverter() { - return new org.springframework.core.convert.converter.Converter() { - public com.labsynch.labseer.domain.ItxExperimentExperimentValue convert(java.lang.Long id) { - return ItxExperimentExperimentValue.findItxExperimentExperimentValue(id); - } - }; - } - - public Converter ApplicationConversionServiceFactoryBean.getStringToItxExperimentExperimentValueConverter() { - return new org.springframework.core.convert.converter.Converter() { - public com.labsynch.labseer.domain.ItxExperimentExperimentValue convert(String id) { - return getObject().convert(getObject().convert(id, Long.class), ItxExperimentExperimentValue.class); ->>>>>>> many-to-many_gwhite - } - }; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ApplicationSettingController.java b/src/main/java/com/labsynch/labseer/web/ApplicationSettingController.java deleted file mode 100755 index 9f55c19b7..000000000 --- a/src/main/java/com/labsynch/labseer/web/ApplicationSettingController.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ApplicationSetting; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -@RequestMapping("/applicationsettings") -@Controller -@RooWebScaffold(path = "applicationsettings", formBackingObject = ApplicationSetting.class) -@RooWebJson(jsonObject = ApplicationSetting.class) -@RooWebFinder -public class ApplicationSettingController { - - @RequestMapping(value = "/{id}", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - ApplicationSetting applicationSetting = ApplicationSetting.findApplicationSetting(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - if (applicationSetting == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(applicationSetting.toJson(), headers, HttpStatus.OK); - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - List result = ApplicationSetting.findAllApplicationSettings(); - return new ResponseEntity(ApplicationSetting.toJsonArray(result), headers, HttpStatus.OK); - } - - @RequestMapping(value = "/propname/{propName}", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity getByPropName(@PathVariable("propName") String propName) { - List applicationSettings = ApplicationSetting.findApplicationSettingsByPropNameEqualsAndIgnoredNot(propName, true).getResultList(); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - if (applicationSettings.size() == 0) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(ApplicationSetting.toJsonArray(applicationSettings), headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json) { - ApplicationSetting applicationSetting = ApplicationSetting.fromJsonToApplicationSetting(json); - applicationSetting.persist(); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - for (ApplicationSetting applicationSetting : ApplicationSetting.fromJsonArrayToApplicationSettings(json)) { - applicationSetting.persist(); - } - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(value = { "/", "/{id}" }, method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - ApplicationSetting applicationSetting = ApplicationSetting.fromJsonToApplicationSetting(json); - if (applicationSetting.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - for (ApplicationSetting applicationSetting : ApplicationSetting.fromJsonArrayToApplicationSettings(json)) { - if (applicationSetting.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - ApplicationSetting applicationSetting = ApplicationSetting.findApplicationSetting(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - if (applicationSetting == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - applicationSetting.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(params = "find=ByPropNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity jsonFindApplicationSettingsByPropNameEquals(@RequestParam("propName") String propName) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ApplicationSetting.toJsonArray(ApplicationSetting.findApplicationSettingsByPropNameEquals(propName).getResultList()), headers, HttpStatus.OK); - } - - @RequestMapping(params = "find=ByPropNameEqualsAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity jsonFindApplicationSettingsByPropNameEqualsAndIgnoredNot(@RequestParam("propName") String propName, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ApplicationSetting.toJsonArray(ApplicationSetting.findApplicationSettingsByPropNameEqualsAndIgnoredNot(propName, ignored).getResultList()), headers, HttpStatus.OK); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/ApplicationSettingController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ApplicationSettingController_Roo_Controller.aj deleted file mode 100755 index 948f8ce10..000000000 --- a/src/main/java/com/labsynch/labseer/web/ApplicationSettingController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ApplicationSetting; -import com.labsynch.labseer.web.ApplicationSettingController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ApplicationSettingController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ApplicationSettingController.create(@Valid ApplicationSetting applicationSetting, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, applicationSetting); - return "applicationsettings/create"; - } - uiModel.asMap().clear(); - applicationSetting.persist(); - return "redirect:/applicationsettings/" + encodeUrlPathSegment(applicationSetting.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ApplicationSettingController.createForm(Model uiModel) { - populateEditForm(uiModel, new ApplicationSetting()); - return "applicationsettings/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ApplicationSettingController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("applicationsetting", ApplicationSetting.findApplicationSetting(id)); - uiModel.addAttribute("itemId", id); - return "applicationsettings/show"; - } - - @RequestMapping(produces = "text/html") - public String ApplicationSettingController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("applicationsettings", ApplicationSetting.findApplicationSettingEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ApplicationSetting.countApplicationSettings() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("applicationsettings", ApplicationSetting.findAllApplicationSettings(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "applicationsettings/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ApplicationSettingController.update(@Valid ApplicationSetting applicationSetting, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, applicationSetting); - return "applicationsettings/update"; - } - uiModel.asMap().clear(); - applicationSetting.merge(); - return "redirect:/applicationsettings/" + encodeUrlPathSegment(applicationSetting.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ApplicationSettingController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ApplicationSetting.findApplicationSetting(id)); - return "applicationsettings/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ApplicationSettingController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ApplicationSetting applicationSetting = ApplicationSetting.findApplicationSetting(id); - applicationSetting.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/applicationsettings"; - } - - void ApplicationSettingController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("applicationSetting_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ApplicationSettingController.populateEditForm(Model uiModel, ApplicationSetting applicationSetting) { - uiModel.addAttribute("applicationSetting", applicationSetting); - addDateTimeFormatPatterns(uiModel); - } - - String ApplicationSettingController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ApplicationSettingController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ApplicationSettingController_Roo_Controller_Finder.aj deleted file mode 100755 index 58d22bf4a..000000000 --- a/src/main/java/com/labsynch/labseer/web/ApplicationSettingController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,55 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ApplicationSetting; -import com.labsynch.labseer.web.ApplicationSettingController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ApplicationSettingController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByPropNameEquals", "form" }, method = RequestMethod.GET) - public String ApplicationSettingController.findApplicationSettingsByPropNameEqualsForm(Model uiModel) { - return "applicationsettings/findApplicationSettingsByPropNameEquals"; - } - - @RequestMapping(params = "find=ByPropNameEquals", method = RequestMethod.GET) - public String ApplicationSettingController.findApplicationSettingsByPropNameEquals(@RequestParam("propName") String propName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("applicationsettings", ApplicationSetting.findApplicationSettingsByPropNameEquals(propName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ApplicationSetting.countFindApplicationSettingsByPropNameEquals(propName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("applicationsettings", ApplicationSetting.findApplicationSettingsByPropNameEquals(propName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "applicationsettings/list"; - } - - @RequestMapping(params = { "find=ByPropNameEqualsAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String ApplicationSettingController.findApplicationSettingsByPropNameEqualsAndIgnoredNotForm(Model uiModel) { - return "applicationsettings/findApplicationSettingsByPropNameEqualsAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByPropNameEqualsAndIgnoredNot", method = RequestMethod.GET) - public String ApplicationSettingController.findApplicationSettingsByPropNameEqualsAndIgnoredNot(@RequestParam("propName") String propName, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("applicationsettings", ApplicationSetting.findApplicationSettingsByPropNameEqualsAndIgnoredNot(propName, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ApplicationSetting.countFindApplicationSettingsByPropNameEqualsAndIgnoredNot(propName, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("applicationsettings", ApplicationSetting.findApplicationSettingsByPropNameEqualsAndIgnoredNot(propName, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "applicationsettings/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorController.java b/src/main/java/com/labsynch/labseer/web/AuthorController.java deleted file mode 100755 index e4bff42d2..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorController.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Author; - -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RooWebJson(jsonObject = Author.class) -@Controller -@RequestMapping("/authors") -@RooWebScaffold(path = "authors", formBackingObject = Author.class) -@RooWebFinder -public class AuthorController { -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller.aj deleted file mode 100755 index 23e8110db..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller.aj +++ /dev/null @@ -1,119 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.domain.AuthorLabel; -import com.labsynch.labseer.domain.AuthorRole; -import com.labsynch.labseer.domain.AuthorState; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.AuthorController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect AuthorController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String AuthorController.create(@Valid Author author, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, author); - return "authors/create"; - } - uiModel.asMap().clear(); - author.persist(); - return "redirect:/authors/" + encodeUrlPathSegment(author.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String AuthorController.createForm(Model uiModel) { - populateEditForm(uiModel, new Author()); - return "authors/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String AuthorController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("author", Author.findAuthor(id)); - uiModel.addAttribute("itemId", id); - return "authors/show"; - } - - @RequestMapping(produces = "text/html") - public String AuthorController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("authors", Author.findAuthorEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) Author.countAuthors() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("authors", Author.findAllAuthors(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "authors/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String AuthorController.update(@Valid Author author, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, author); - return "authors/update"; - } - uiModel.asMap().clear(); - author.merge(); - return "redirect:/authors/" + encodeUrlPathSegment(author.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String AuthorController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, Author.findAuthor(id)); - return "authors/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String AuthorController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - Author author = Author.findAuthor(id); - author.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/authors"; - } - - void AuthorController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("author_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("author_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("author_activationdate_date_format", DateTimeFormat.patternForStyle("M-", LocaleContextHolder.getLocale())); - } - - void AuthorController.populateEditForm(Model uiModel, Author author) { - uiModel.addAttribute("author", author); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("authorlabels", AuthorLabel.findAllAuthorLabels()); - uiModel.addAttribute("authorroles", AuthorRole.findAllAuthorRoles()); - uiModel.addAttribute("authorstates", AuthorState.findAllAuthorStates()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - } - - String AuthorController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller_Finder.aj deleted file mode 100644 index af962f1a3..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,75 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.web.AuthorController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect AuthorController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByActivationKeyAndEmailAddress", "form" }, method = RequestMethod.GET) - public String AuthorController.findAuthorsByActivationKeyAndEmailAddressForm(Model uiModel) { - return "authors/findAuthorsByActivationKeyAndEmailAddress"; - } - - @RequestMapping(params = "find=ByActivationKeyAndEmailAddress", method = RequestMethod.GET) - public String AuthorController.findAuthorsByActivationKeyAndEmailAddress(@RequestParam("activationKey") String activationKey, @RequestParam("emailAddress") String emailAddress, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("authors", Author.findAuthorsByActivationKeyAndEmailAddress(activationKey, emailAddress, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Author.countFindAuthorsByActivationKeyAndEmailAddress(activationKey, emailAddress) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("authors", Author.findAuthorsByActivationKeyAndEmailAddress(activationKey, emailAddress, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "authors/list"; - } - - @RequestMapping(params = { "find=ByEmailAddress", "form" }, method = RequestMethod.GET) - public String AuthorController.findAuthorsByEmailAddressForm(Model uiModel) { - return "authors/findAuthorsByEmailAddress"; - } - - @RequestMapping(params = "find=ByEmailAddress", method = RequestMethod.GET) - public String AuthorController.findAuthorsByEmailAddress(@RequestParam("emailAddress") String emailAddress, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("authors", Author.findAuthorsByEmailAddress(emailAddress, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Author.countFindAuthorsByEmailAddress(emailAddress) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("authors", Author.findAuthorsByEmailAddress(emailAddress, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "authors/list"; - } - - @RequestMapping(params = { "find=ByUserName", "form" }, method = RequestMethod.GET) - public String AuthorController.findAuthorsByUserNameForm(Model uiModel) { - return "authors/findAuthorsByUserName"; - } - - @RequestMapping(params = "find=ByUserName", method = RequestMethod.GET) - public String AuthorController.findAuthorsByUserName(@RequestParam("userName") String userName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("authors", Author.findAuthorsByUserName(userName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Author.countFindAuthorsByUserName(userName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("authors", Author.findAuthorsByUserName(userName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "authors/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller_Json.aj deleted file mode 100644 index 2c8e39f3a..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorController_Roo_Controller_Json.aj +++ /dev/null @@ -1,148 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.web.AuthorController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect AuthorController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AuthorController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - Author author = Author.findAuthor(id); - if (author == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(author.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AuthorController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = Author.findAllAuthors(); - return new ResponseEntity(Author.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity AuthorController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Author author = Author.fromJsonToAuthor(json); - author.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+author.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity AuthorController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (Author author: Author.fromJsonArrayToAuthors(json)) { - author.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity AuthorController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Author author = Author.fromJsonToAuthor(json); - author.setId(id); - if (author.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity AuthorController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Author author = Author.findAuthor(id); - if (author == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - author.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByActivationKeyAndEmailAddress", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AuthorController.jsonFindAuthorsByActivationKeyAndEmailAddress(@RequestParam("activationKey") String activationKey, @RequestParam("emailAddress") String emailAddress) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Author.toJsonArray(Author.findAuthorsByActivationKeyAndEmailAddress(activationKey, emailAddress).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByEmailAddress", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AuthorController.jsonFindAuthorsByEmailAddress(@RequestParam("emailAddress") String emailAddress) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Author.toJsonArray(Author.findAuthorsByEmailAddress(emailAddress).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByUserName", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AuthorController.jsonFindAuthorsByUserName(@RequestParam("userName") String userName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Author.toJsonArray(Author.findAuthorsByUserName(userName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorLabelController.java b/src/main/java/com/labsynch/labseer/web/AuthorLabelController.java deleted file mode 100644 index 1dd984dc7..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorLabelController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AuthorLabel; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/authorlabels") -@Controller -@RooWebScaffold(path = "authorlabels", formBackingObject = AuthorLabel.class) -public class AuthorLabelController { -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AuthorLabelController_Roo_Controller.aj deleted file mode 100644 index badf255c7..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorLabelController_Roo_Controller.aj +++ /dev/null @@ -1,119 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.domain.AuthorLabel; -import com.labsynch.labseer.web.AuthorLabelController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect AuthorLabelController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String AuthorLabelController.create(@Valid AuthorLabel authorLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, authorLabel); - return "authorlabels/create"; - } - uiModel.asMap().clear(); - authorLabel.persist(); - return "redirect:/authorlabels/" + encodeUrlPathSegment(authorLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String AuthorLabelController.createForm(Model uiModel) { - populateEditForm(uiModel, new AuthorLabel()); - List dependencies = new ArrayList(); - if (Author.countAuthors() == 0) { - dependencies.add(new String[] { "author", "authors" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "authorlabels/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String AuthorLabelController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("authorlabel", AuthorLabel.findAuthorLabel(id)); - uiModel.addAttribute("itemId", id); - return "authorlabels/show"; - } - - @RequestMapping(produces = "text/html") - public String AuthorLabelController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("authorlabels", AuthorLabel.findAuthorLabelEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) AuthorLabel.countAuthorLabels() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("authorlabels", AuthorLabel.findAllAuthorLabels(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "authorlabels/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String AuthorLabelController.update(@Valid AuthorLabel authorLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, authorLabel); - return "authorlabels/update"; - } - uiModel.asMap().clear(); - authorLabel.merge(); - return "redirect:/authorlabels/" + encodeUrlPathSegment(authorLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String AuthorLabelController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, AuthorLabel.findAuthorLabel(id)); - return "authorlabels/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String AuthorLabelController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - AuthorLabel authorLabel = AuthorLabel.findAuthorLabel(id); - authorLabel.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/authorlabels"; - } - - void AuthorLabelController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("authorLabel_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("authorLabel_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void AuthorLabelController.populateEditForm(Model uiModel, AuthorLabel authorLabel) { - uiModel.addAttribute("authorLabel", authorLabel); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("authors", Author.findAllAuthors()); - } - - String AuthorLabelController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorNameDTOController.java b/src/main/java/com/labsynch/labseer/web/AuthorNameDTOController.java deleted file mode 100755 index 1edc85943..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorNameDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.AuthorNameDTO; - -@RooWebJson(jsonObject = AuthorNameDTO.class) -@Controller -@RequestMapping("/authoes") -public class AuthorNameDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorRoleController.java b/src/main/java/com/labsynch/labseer/web/AuthorRoleController.java deleted file mode 100755 index b81af95d6..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorRoleController.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.domain.AuthorRole; -import com.labsynch.labseer.domain.LsRole; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -@RooWebJson(jsonObject = AuthorRole.class) -@RooWebFinder -@RequestMapping("/authorroles") -@Controller -@RooWebScaffold(path = "authorroles", formBackingObject = AuthorRole.class) -public class AuthorRoleController { - - private static final Logger logger = LoggerFactory.getLogger(AuthorRoleController.class); -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller.aj deleted file mode 100644 index f9a0599ff..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller.aj +++ /dev/null @@ -1,114 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.domain.AuthorRole; -import com.labsynch.labseer.domain.LsRole; -import com.labsynch.labseer.web.AuthorRoleController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect AuthorRoleController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String AuthorRoleController.create(@Valid AuthorRole authorRole, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, authorRole); - return "authorroles/create"; - } - uiModel.asMap().clear(); - authorRole.persist(); - return "redirect:/authorroles/" + encodeUrlPathSegment(authorRole.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String AuthorRoleController.createForm(Model uiModel) { - populateEditForm(uiModel, new AuthorRole()); - List dependencies = new ArrayList(); - if (Author.countAuthors() == 0) { - dependencies.add(new String[] { "userEntry", "authors" }); - } - if (LsRole.countLsRoles() == 0) { - dependencies.add(new String[] { "roleEntry", "lsroles" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "authorroles/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String AuthorRoleController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("authorrole", AuthorRole.findAuthorRole(id)); - uiModel.addAttribute("itemId", id); - return "authorroles/show"; - } - - @RequestMapping(produces = "text/html") - public String AuthorRoleController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("authorroles", AuthorRole.findAuthorRoleEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) AuthorRole.countAuthorRoles() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("authorroles", AuthorRole.findAllAuthorRoles(sortFieldName, sortOrder)); - } - return "authorroles/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String AuthorRoleController.update(@Valid AuthorRole authorRole, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, authorRole); - return "authorroles/update"; - } - uiModel.asMap().clear(); - authorRole.merge(); - return "redirect:/authorroles/" + encodeUrlPathSegment(authorRole.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String AuthorRoleController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, AuthorRole.findAuthorRole(id)); - return "authorroles/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String AuthorRoleController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - AuthorRole authorRole = AuthorRole.findAuthorRole(id); - authorRole.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/authorroles"; - } - - void AuthorRoleController.populateEditForm(Model uiModel, AuthorRole authorRole) { - uiModel.addAttribute("authorRole", authorRole); - uiModel.addAttribute("authors", Author.findAllAuthors()); - uiModel.addAttribute("lsroles", LsRole.findAllLsRoles()); - } - - String AuthorRoleController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller_Finder.aj deleted file mode 100755 index a44b6c94a..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,78 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.domain.AuthorRole; -import com.labsynch.labseer.domain.LsRole; -import com.labsynch.labseer.web.AuthorRoleController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect AuthorRoleController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByRoleEntry", "form" }, method = RequestMethod.GET) - public String AuthorRoleController.findAuthorRolesByRoleEntryForm(Model uiModel) { - uiModel.addAttribute("lsroles", LsRole.findAllLsRoles()); - return "authorroles/findAuthorRolesByRoleEntry"; - } - - @RequestMapping(params = "find=ByRoleEntry", method = RequestMethod.GET) - public String AuthorRoleController.findAuthorRolesByRoleEntry(@RequestParam("roleEntry") LsRole roleEntry, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("authorroles", AuthorRole.findAuthorRolesByRoleEntry(roleEntry, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AuthorRole.countFindAuthorRolesByRoleEntry(roleEntry) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("authorroles", AuthorRole.findAuthorRolesByRoleEntry(roleEntry, sortFieldName, sortOrder).getResultList()); - } - return "authorroles/list"; - } - - @RequestMapping(params = { "find=ByRoleEntryAndUserEntry", "form" }, method = RequestMethod.GET) - public String AuthorRoleController.findAuthorRolesByRoleEntryAndUserEntryForm(Model uiModel) { - uiModel.addAttribute("lsroles", LsRole.findAllLsRoles()); - uiModel.addAttribute("authors", Author.findAllAuthors()); - return "authorroles/findAuthorRolesByRoleEntryAndUserEntry"; - } - - @RequestMapping(params = "find=ByRoleEntryAndUserEntry", method = RequestMethod.GET) - public String AuthorRoleController.findAuthorRolesByRoleEntryAndUserEntry(@RequestParam("roleEntry") LsRole roleEntry, @RequestParam("userEntry") Author userEntry, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("authorroles", AuthorRole.findAuthorRolesByRoleEntryAndUserEntry(roleEntry, userEntry, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AuthorRole.countFindAuthorRolesByRoleEntryAndUserEntry(roleEntry, userEntry) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("authorroles", AuthorRole.findAuthorRolesByRoleEntryAndUserEntry(roleEntry, userEntry, sortFieldName, sortOrder).getResultList()); - } - return "authorroles/list"; - } - - @RequestMapping(params = { "find=ByUserEntry", "form" }, method = RequestMethod.GET) - public String AuthorRoleController.findAuthorRolesByUserEntryForm(Model uiModel) { - uiModel.addAttribute("authors", Author.findAllAuthors()); - return "authorroles/findAuthorRolesByUserEntry"; - } - - @RequestMapping(params = "find=ByUserEntry", method = RequestMethod.GET) - public String AuthorRoleController.findAuthorRolesByUserEntry(@RequestParam("userEntry") Author userEntry, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("authorroles", AuthorRole.findAuthorRolesByUserEntry(userEntry, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) AuthorRole.countFindAuthorRolesByUserEntry(userEntry) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("authorroles", AuthorRole.findAuthorRolesByUserEntry(userEntry, sortFieldName, sortOrder).getResultList()); - } - return "authorroles/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller_Json.aj deleted file mode 100755 index 0fbffeb1f..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorRoleController_Roo_Controller_Json.aj +++ /dev/null @@ -1,150 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.domain.AuthorRole; -import com.labsynch.labseer.domain.LsRole; -import com.labsynch.labseer.web.AuthorRoleController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect AuthorRoleController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AuthorRoleController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - AuthorRole authorRole = AuthorRole.findAuthorRole(id); - if (authorRole == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(authorRole.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AuthorRoleController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = AuthorRole.findAllAuthorRoles(); - return new ResponseEntity(AuthorRole.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity AuthorRoleController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - AuthorRole authorRole = AuthorRole.fromJsonToAuthorRole(json); - authorRole.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+authorRole.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity AuthorRoleController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (AuthorRole authorRole: AuthorRole.fromJsonArrayToAuthorRoles(json)) { - authorRole.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity AuthorRoleController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - AuthorRole authorRole = AuthorRole.fromJsonToAuthorRole(json); - authorRole.setId(id); - if (authorRole.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity AuthorRoleController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - AuthorRole authorRole = AuthorRole.findAuthorRole(id); - if (authorRole == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - authorRole.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByRoleEntry", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AuthorRoleController.jsonFindAuthorRolesByRoleEntry(@RequestParam("roleEntry") LsRole roleEntry) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AuthorRole.toJsonArray(AuthorRole.findAuthorRolesByRoleEntry(roleEntry).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByRoleEntryAndUserEntry", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AuthorRoleController.jsonFindAuthorRolesByRoleEntryAndUserEntry(@RequestParam("roleEntry") LsRole roleEntry, @RequestParam("userEntry") Author userEntry) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AuthorRole.toJsonArray(AuthorRole.findAuthorRolesByRoleEntryAndUserEntry(roleEntry, userEntry).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByUserEntry", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity AuthorRoleController.jsonFindAuthorRolesByUserEntry(@RequestParam("userEntry") Author userEntry) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(AuthorRole.toJsonArray(AuthorRole.findAuthorRolesByUserEntry(userEntry).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorStateController.java b/src/main/java/com/labsynch/labseer/web/AuthorStateController.java deleted file mode 100644 index 3152903e0..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorStateController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AuthorState; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/authorstates") -@Controller -@RooWebScaffold(path = "authorstates", formBackingObject = AuthorState.class) -public class AuthorStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AuthorStateController_Roo_Controller.aj deleted file mode 100644 index 0052b8aee..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorStateController_Roo_Controller.aj +++ /dev/null @@ -1,121 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.domain.AuthorState; -import com.labsynch.labseer.domain.AuthorValue; -import com.labsynch.labseer.web.AuthorStateController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect AuthorStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String AuthorStateController.create(@Valid AuthorState authorState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, authorState); - return "authorstates/create"; - } - uiModel.asMap().clear(); - authorState.persist(); - return "redirect:/authorstates/" + encodeUrlPathSegment(authorState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String AuthorStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new AuthorState()); - List dependencies = new ArrayList(); - if (Author.countAuthors() == 0) { - dependencies.add(new String[] { "author", "authors" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "authorstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String AuthorStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("authorstate", AuthorState.findAuthorState(id)); - uiModel.addAttribute("itemId", id); - return "authorstates/show"; - } - - @RequestMapping(produces = "text/html") - public String AuthorStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("authorstates", AuthorState.findAuthorStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) AuthorState.countAuthorStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("authorstates", AuthorState.findAllAuthorStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "authorstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String AuthorStateController.update(@Valid AuthorState authorState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, authorState); - return "authorstates/update"; - } - uiModel.asMap().clear(); - authorState.merge(); - return "redirect:/authorstates/" + encodeUrlPathSegment(authorState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String AuthorStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, AuthorState.findAuthorState(id)); - return "authorstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String AuthorStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - AuthorState authorState = AuthorState.findAuthorState(id); - authorState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/authorstates"; - } - - void AuthorStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("authorState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("authorState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void AuthorStateController.populateEditForm(Model uiModel, AuthorState authorState) { - uiModel.addAttribute("authorState", authorState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("authors", Author.findAllAuthors()); - uiModel.addAttribute("authorvalues", AuthorValue.findAllAuthorValues()); - } - - String AuthorStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorValueController.java b/src/main/java/com/labsynch/labseer/web/AuthorValueController.java deleted file mode 100644 index ac120ebaf..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorValueController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AuthorValue; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/authorvalues") -@Controller -@RooWebScaffold(path = "authorvalues", formBackingObject = AuthorValue.class) -public class AuthorValueController { -} diff --git a/src/main/java/com/labsynch/labseer/web/AuthorValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/AuthorValueController_Roo_Controller.aj deleted file mode 100644 index ab17ef64c..000000000 --- a/src/main/java/com/labsynch/labseer/web/AuthorValueController_Roo_Controller.aj +++ /dev/null @@ -1,120 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AuthorState; -import com.labsynch.labseer.domain.AuthorValue; -import com.labsynch.labseer.web.AuthorValueController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect AuthorValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String AuthorValueController.create(@Valid AuthorValue authorValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, authorValue); - return "authorvalues/create"; - } - uiModel.asMap().clear(); - authorValue.persist(); - return "redirect:/authorvalues/" + encodeUrlPathSegment(authorValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String AuthorValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new AuthorValue()); - List dependencies = new ArrayList(); - if (AuthorState.countAuthorStates() == 0) { - dependencies.add(new String[] { "lsState", "authorstates" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "authorvalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String AuthorValueController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("authorvalue", AuthorValue.findAuthorValue(id)); - uiModel.addAttribute("itemId", id); - return "authorvalues/show"; - } - - @RequestMapping(produces = "text/html") - public String AuthorValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("authorvalues", AuthorValue.findAuthorValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) AuthorValue.countAuthorValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("authorvalues", AuthorValue.findAllAuthorValues(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "authorvalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String AuthorValueController.update(@Valid AuthorValue authorValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, authorValue); - return "authorvalues/update"; - } - uiModel.asMap().clear(); - authorValue.merge(); - return "redirect:/authorvalues/" + encodeUrlPathSegment(authorValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String AuthorValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, AuthorValue.findAuthorValue(id)); - return "authorvalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String AuthorValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - AuthorValue authorValue = AuthorValue.findAuthorValue(id); - authorValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/authorvalues"; - } - - void AuthorValueController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("authorValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("authorValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("authorValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void AuthorValueController.populateEditForm(Model uiModel, AuthorValue authorValue) { - uiModel.addAttribute("authorValue", authorValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("authorstates", AuthorState.findAllAuthorStates()); - } - - String AuthorValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/AutoLabelDTOController.java b/src/main/java/com/labsynch/labseer/web/AutoLabelDTOController.java deleted file mode 100755 index de1117679..000000000 --- a/src/main/java/com/labsynch/labseer/web/AutoLabelDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.AutoLabelDTO; - -@RooWebJson(jsonObject = AutoLabelDTO.class) -@Controller -@RequestMapping("/autoes") -public class AutoLabelDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/BatchCodeDTOController.java b/src/main/java/com/labsynch/labseer/web/BatchCodeDTOController.java deleted file mode 100755 index 9f1fa0ff1..000000000 --- a/src/main/java/com/labsynch/labseer/web/BatchCodeDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.BatchCodeDTO; - -@RooWebJson(jsonObject = BatchCodeDTO.class) -@Controller -@RequestMapping("/batchcoes") -public class BatchCodeDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/BulkLoadFileController.java b/src/main/java/com/labsynch/labseer/web/BulkLoadFileController.java deleted file mode 100644 index 878af6072..000000000 --- a/src/main/java/com/labsynch/labseer/web/BulkLoadFileController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; -import com.labsynch.labseer.domain.BulkLoadFile; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; - -@RequestMapping("/bulkloadfiles") -@Controller -@RooWebScaffold(path = "bulkloadfiles", formBackingObject = BulkLoadFile.class) -@RooWebFinder -public class BulkLoadFileController { -} diff --git a/src/main/java/com/labsynch/labseer/web/BulkLoadFileController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/BulkLoadFileController_Roo_Controller.aj deleted file mode 100644 index 257bb37b3..000000000 --- a/src/main/java/com/labsynch/labseer/web/BulkLoadFileController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.BulkLoadFile; -import com.labsynch.labseer.web.BulkLoadFileController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect BulkLoadFileController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String BulkLoadFileController.create(@Valid BulkLoadFile bulkLoadFile, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, bulkLoadFile); - return "bulkloadfiles/create"; - } - uiModel.asMap().clear(); - bulkLoadFile.persist(); - return "redirect:/bulkloadfiles/" + encodeUrlPathSegment(bulkLoadFile.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String BulkLoadFileController.createForm(Model uiModel) { - populateEditForm(uiModel, new BulkLoadFile()); - return "bulkloadfiles/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String BulkLoadFileController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("bulkloadfile", BulkLoadFile.findBulkLoadFile(id)); - uiModel.addAttribute("itemId", id); - return "bulkloadfiles/show"; - } - - @RequestMapping(produces = "text/html") - public String BulkLoadFileController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("bulkloadfiles", BulkLoadFile.findBulkLoadFileEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) BulkLoadFile.countBulkLoadFiles() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("bulkloadfiles", BulkLoadFile.findAllBulkLoadFiles(sortFieldName, sortOrder)); - } - return "bulkloadfiles/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String BulkLoadFileController.update(@Valid BulkLoadFile bulkLoadFile, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, bulkLoadFile); - return "bulkloadfiles/update"; - } - uiModel.asMap().clear(); - bulkLoadFile.merge(); - return "redirect:/bulkloadfiles/" + encodeUrlPathSegment(bulkLoadFile.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String BulkLoadFileController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, BulkLoadFile.findBulkLoadFile(id)); - return "bulkloadfiles/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String BulkLoadFileController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - BulkLoadFile bulkLoadFile = BulkLoadFile.findBulkLoadFile(id); - bulkLoadFile.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/bulkloadfiles"; - } - - void BulkLoadFileController.populateEditForm(Model uiModel, BulkLoadFile bulkLoadFile) { - uiModel.addAttribute("bulkLoadFile", bulkLoadFile); - } - - String BulkLoadFileController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/BulkLoadFileController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/BulkLoadFileController_Roo_Controller_Finder.aj deleted file mode 100644 index b9ae03c23..000000000 --- a/src/main/java/com/labsynch/labseer/web/BulkLoadFileController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,53 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.BulkLoadFile; -import com.labsynch.labseer.web.BulkLoadFileController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect BulkLoadFileController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByFileNameEquals", "form" }, method = RequestMethod.GET) - public String BulkLoadFileController.findBulkLoadFilesByFileNameEqualsForm(Model uiModel) { - return "bulkloadfiles/findBulkLoadFilesByFileNameEquals"; - } - - @RequestMapping(params = "find=ByFileNameEquals", method = RequestMethod.GET) - public String BulkLoadFileController.findBulkLoadFilesByFileNameEquals(@RequestParam("fileName") String fileName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("bulkloadfiles", BulkLoadFile.findBulkLoadFilesByFileNameEquals(fileName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) BulkLoadFile.countFindBulkLoadFilesByFileNameEquals(fileName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("bulkloadfiles", BulkLoadFile.findBulkLoadFilesByFileNameEquals(fileName, sortFieldName, sortOrder).getResultList()); - } - return "bulkloadfiles/list"; - } - - @RequestMapping(params = { "find=ByRecordedByEquals", "form" }, method = RequestMethod.GET) - public String BulkLoadFileController.findBulkLoadFilesByRecordedByEqualsForm(Model uiModel) { - return "bulkloadfiles/findBulkLoadFilesByRecordedByEquals"; - } - - @RequestMapping(params = "find=ByRecordedByEquals", method = RequestMethod.GET) - public String BulkLoadFileController.findBulkLoadFilesByRecordedByEquals(@RequestParam("recordedBy") String recordedBy, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("bulkloadfiles", BulkLoadFile.findBulkLoadFilesByRecordedByEquals(recordedBy, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) BulkLoadFile.countFindBulkLoadFilesByRecordedByEquals(recordedBy) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("bulkloadfiles", BulkLoadFile.findBulkLoadFilesByRecordedByEquals(recordedBy, sortFieldName, sortOrder).getResultList()); - } - return "bulkloadfiles/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController.java b/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController.java deleted file mode 100644 index 067089b60..000000000 --- a/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; -import com.labsynch.labseer.domain.BulkLoadTemplate; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; - -@RequestMapping("/bulkloadtemplates") -@Controller -@RooWebScaffold(path = "bulkloadtemplates", formBackingObject = BulkLoadTemplate.class) -@RooWebFinder -public class BulkLoadTemplateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController_Roo_Controller.aj deleted file mode 100644 index b816d878b..000000000 --- a/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.BulkLoadTemplate; -import com.labsynch.labseer.web.BulkLoadTemplateController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect BulkLoadTemplateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String BulkLoadTemplateController.create(@Valid BulkLoadTemplate bulkLoadTemplate, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, bulkLoadTemplate); - return "bulkloadtemplates/create"; - } - uiModel.asMap().clear(); - bulkLoadTemplate.persist(); - return "redirect:/bulkloadtemplates/" + encodeUrlPathSegment(bulkLoadTemplate.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String BulkLoadTemplateController.createForm(Model uiModel) { - populateEditForm(uiModel, new BulkLoadTemplate()); - return "bulkloadtemplates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String BulkLoadTemplateController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("bulkloadtemplate", BulkLoadTemplate.findBulkLoadTemplate(id)); - uiModel.addAttribute("itemId", id); - return "bulkloadtemplates/show"; - } - - @RequestMapping(produces = "text/html") - public String BulkLoadTemplateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("bulkloadtemplates", BulkLoadTemplate.findBulkLoadTemplateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) BulkLoadTemplate.countBulkLoadTemplates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("bulkloadtemplates", BulkLoadTemplate.findAllBulkLoadTemplates(sortFieldName, sortOrder)); - } - return "bulkloadtemplates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String BulkLoadTemplateController.update(@Valid BulkLoadTemplate bulkLoadTemplate, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, bulkLoadTemplate); - return "bulkloadtemplates/update"; - } - uiModel.asMap().clear(); - bulkLoadTemplate.merge(); - return "redirect:/bulkloadtemplates/" + encodeUrlPathSegment(bulkLoadTemplate.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String BulkLoadTemplateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, BulkLoadTemplate.findBulkLoadTemplate(id)); - return "bulkloadtemplates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String BulkLoadTemplateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - BulkLoadTemplate bulkLoadTemplate = BulkLoadTemplate.findBulkLoadTemplate(id); - bulkLoadTemplate.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/bulkloadtemplates"; - } - - void BulkLoadTemplateController.populateEditForm(Model uiModel, BulkLoadTemplate bulkLoadTemplate) { - uiModel.addAttribute("bulkLoadTemplate", bulkLoadTemplate); - } - - String BulkLoadTemplateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController_Roo_Controller_Finder.aj deleted file mode 100644 index 47acba28b..000000000 --- a/src/main/java/com/labsynch/labseer/web/BulkLoadTemplateController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,72 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.BulkLoadTemplate; -import com.labsynch.labseer.web.BulkLoadTemplateController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect BulkLoadTemplateController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByRecordedByEquals", "form" }, method = RequestMethod.GET) - public String BulkLoadTemplateController.findBulkLoadTemplatesByRecordedByEqualsForm(Model uiModel) { - return "bulkloadtemplates/findBulkLoadTemplatesByRecordedByEquals"; - } - - @RequestMapping(params = "find=ByRecordedByEquals", method = RequestMethod.GET) - public String BulkLoadTemplateController.findBulkLoadTemplatesByRecordedByEquals(@RequestParam("recordedBy") String recordedBy, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("bulkloadtemplates", BulkLoadTemplate.findBulkLoadTemplatesByRecordedByEquals(recordedBy, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) BulkLoadTemplate.countFindBulkLoadTemplatesByRecordedByEquals(recordedBy) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("bulkloadtemplates", BulkLoadTemplate.findBulkLoadTemplatesByRecordedByEquals(recordedBy, sortFieldName, sortOrder).getResultList()); - } - return "bulkloadtemplates/list"; - } - - @RequestMapping(params = { "find=ByTemplateNameEquals", "form" }, method = RequestMethod.GET) - public String BulkLoadTemplateController.findBulkLoadTemplatesByTemplateNameEqualsForm(Model uiModel) { - return "bulkloadtemplates/findBulkLoadTemplatesByTemplateNameEquals"; - } - - @RequestMapping(params = "find=ByTemplateNameEquals", method = RequestMethod.GET) - public String BulkLoadTemplateController.findBulkLoadTemplatesByTemplateNameEquals(@RequestParam("templateName") String templateName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("bulkloadtemplates", BulkLoadTemplate.findBulkLoadTemplatesByTemplateNameEquals(templateName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) BulkLoadTemplate.countFindBulkLoadTemplatesByTemplateNameEquals(templateName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("bulkloadtemplates", BulkLoadTemplate.findBulkLoadTemplatesByTemplateNameEquals(templateName, sortFieldName, sortOrder).getResultList()); - } - return "bulkloadtemplates/list"; - } - - @RequestMapping(params = { "find=ByTemplateNameEqualsAndRecordedByEquals", "form" }, method = RequestMethod.GET) - public String BulkLoadTemplateController.findBulkLoadTemplatesByTemplateNameEqualsAndRecordedByEqualsForm(Model uiModel) { - return "bulkloadtemplates/findBulkLoadTemplatesByTemplateNameEqualsAndRecordedByEquals"; - } - - @RequestMapping(params = "find=ByTemplateNameEqualsAndRecordedByEquals", method = RequestMethod.GET) - public String BulkLoadTemplateController.findBulkLoadTemplatesByTemplateNameEqualsAndRecordedByEquals(@RequestParam("templateName") String templateName, @RequestParam("recordedBy") String recordedBy, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("bulkloadtemplates", BulkLoadTemplate.findBulkLoadTemplatesByTemplateNameEqualsAndRecordedByEquals(templateName, recordedBy, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) BulkLoadTemplate.countFindBulkLoadTemplatesByTemplateNameEqualsAndRecordedByEquals(templateName, recordedBy) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("bulkloadtemplates", BulkLoadTemplate.findBulkLoadTemplatesByTemplateNameEqualsAndRecordedByEquals(templateName, recordedBy, sortFieldName, sortOrder).getResultList()); - } - return "bulkloadtemplates/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/BulkTransferPart1DTOController.java b/src/main/java/com/labsynch/labseer/web/BulkTransferPart1DTOController.java deleted file mode 100755 index 206003270..000000000 --- a/src/main/java/com/labsynch/labseer/web/BulkTransferPart1DTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.BulkTransferPart1DTO; - -@RooWebJson(jsonObject = BulkTransferPart1DTO.class) -@Controller -@RequestMapping("/bulktransferpart1dto") -public class BulkTransferPart1DTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ChangePasswordController.java b/src/main/java/com/labsynch/labseer/web/ChangePasswordController.java deleted file mode 100755 index d7545f907..000000000 --- a/src/main/java/com/labsynch/labseer/web/ChangePasswordController.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.labsynch.labseer.web; - -import java.io.UnsupportedEncodingException; -import java.security.NoSuchAlgorithmException; - -import javax.persistence.Query; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.core.context.SecurityContextHolder; -import org.springframework.security.core.userdetails.UserDetails; -import org.springframework.stereotype.Controller; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.service.DatabaseAuthenticationProvider; - - -@RequestMapping("/changepassword/**") -@Controller -public class ChangePasswordController { - - private static final Logger logger = LoggerFactory.getLogger(ChangePasswordController.class); - - - @Autowired - private ChangePasswordValidator validator; - - @ModelAttribute("changePasswordForm") - public ChangePasswordForm formBackingObject() { - return new ChangePasswordForm(); - } - - @RequestMapping(value = "/index", produces = "text/html") - public String index() { - if (SecurityContextHolder.getContext().getAuthentication() - .isAuthenticated()) { - return "changepassword/index"; - } else { - return "login"; - } - } - - @RequestMapping(value = "/update", method = RequestMethod.POST, produces = "text/html") - public String update( - @ModelAttribute("changePasswordForm") ChangePasswordForm form, - BindingResult result) { - validator.validate(form, result); - if (result.hasErrors()) { - return "changepassword/index"; // back to form - } else { - if (SecurityContextHolder.getContext().getAuthentication() - .isAuthenticated()) { - UserDetails userDetails = (UserDetails) SecurityContextHolder - .getContext().getAuthentication().getPrincipal(); - String newPassword = form.getNewPassword(); - Query query = Author - .findAuthorsByUserName(userDetails.getUsername()); - Author person = (Author) query.getSingleResult(); - - - String encryptedPassword = null; - try { - encryptedPassword = DatabaseAuthenticationProvider.getBase64ShaHash(newPassword); - } catch (NoSuchAlgorithmException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (UnsupportedEncodingException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (Exception e){ - logger.error("general error:" + e.toString()); - } - person.setPassword(encryptedPassword); - logger.debug("changing password"); - logger.debug(person.toJson()); - - person.merge(); - return "changepassword/thanks"; - } else { - return "login"; - } - } - } - - @RequestMapping(value = "/thanks", produces = "text/html") - public String thanks() { - return "changepassword/thanks"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ChangePasswordForm.java b/src/main/java/com/labsynch/labseer/web/ChangePasswordForm.java deleted file mode 100755 index 5a540eaad..000000000 --- a/src/main/java/com/labsynch/labseer/web/ChangePasswordForm.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * - */ -package com.labsynch.labseer.web; - -/** - * @author rohit - * - */ -public class ChangePasswordForm { - - private String oldPassword; - private String newPassword; - private String newPasswordAgain; - - public String getOldPassword() { - return oldPassword; - } - - public void setOldPassword(String oldPassword) { - this.oldPassword = oldPassword; - } - - public String getNewPassword() { - return newPassword; - } - - public void setNewPassword(String newPassword) { - this.newPassword = newPassword; - } - - public String getNewPasswordAgain() { - return newPasswordAgain; - } - - public void setNewPasswordAgain(String newPasswordAgain) { - this.newPasswordAgain = newPasswordAgain; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ChangePasswordValidator.java b/src/main/java/com/labsynch/labseer/web/ChangePasswordValidator.java deleted file mode 100755 index b150b1538..000000000 --- a/src/main/java/com/labsynch/labseer/web/ChangePasswordValidator.java +++ /dev/null @@ -1,105 +0,0 @@ -/** - * - */ -package com.labsynch.labseer.web; - -import java.io.UnsupportedEncodingException; -import java.security.NoSuchAlgorithmException; - -import javax.persistence.EntityNotFoundException; -import javax.persistence.NonUniqueResultException; -import javax.persistence.Query; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.core.context.SecurityContextHolder; -import org.springframework.security.core.userdetails.UserDetails; -import org.springframework.stereotype.Service; -import org.springframework.validation.Errors; -import org.springframework.validation.Validator; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.service.DatabaseAuthenticationProvider; - -/** - * @author rohit - * - */ -@Service("changePasswordValidator") -public class ChangePasswordValidator implements Validator { - - private static final Logger logger = LoggerFactory.getLogger(ChangePasswordValidator.class); - - - /* - * (non-Javadoc) - * - * @see org.springframework.validation.Validator#supports(java.lang.Class) - */ - @Override - public boolean supports(Class clazz) { - return ChangePasswordForm.class.equals(clazz); - } - - /* - * (non-Javadoc) - * - * @see org.springframework.validation.Validator#validate(java.lang.Object, - * org.springframework.validation.Errors) - */ - @Override - public void validate(Object target, Errors errors) { - ChangePasswordForm form = (ChangePasswordForm) target; - - try { - if (SecurityContextHolder.getContext().getAuthentication() - .isAuthenticated()) { - UserDetails userDetails = (UserDetails) SecurityContextHolder - .getContext().getAuthentication().getPrincipal(); - Query query = Author - .findAuthorsByUserName(userDetails.getUsername()); - if(null!=query){ - Author person = (Author) query.getSingleResult(); - String storedPassword = person.getPassword(); - String currentPassword = form.getOldPassword(); - - String encryptedPassword = null; - try { - encryptedPassword = DatabaseAuthenticationProvider.getBase64ShaHash(currentPassword); - } catch (NoSuchAlgorithmException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (UnsupportedEncodingException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (Exception e){ - logger.error("general error:" + e.toString()); - } - - logger.debug("stored password: " + storedPassword); - logger.debug("encryptedPassword password: " + encryptedPassword); - - - if (!storedPassword.equals(encryptedPassword)) { - errors.rejectValue("oldPassword", - "changepassword.invalidpassword"); - } - - String newPassword = form.getNewPassword(); - String newPasswordAgain = form.getNewPasswordAgain(); - if (!newPassword.equals(newPasswordAgain)) { - errors.reject("changepassword.passwordsnomatch"); - } - } - } - } catch (EntityNotFoundException e) { - errors.rejectValue("emailAddress", - "changepassword.invalidemailaddress"); - } catch (NonUniqueResultException e) { - errors.rejectValue("emailAddress", - "changepassword.duplicateemailaddress"); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CmpdRegAppSettingController.java b/src/main/java/com/labsynch/labseer/web/CmpdRegAppSettingController.java deleted file mode 100644 index c891db1fc..000000000 --- a/src/main/java/com/labsynch/labseer/web/CmpdRegAppSettingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.labsynch.labseer.web; -import javax.servlet.http.HttpServletRequest; - - -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.domain.CmpdRegAppSetting; - -@RequestMapping("/cmpdregappsettings") -@Controller -@RooWebScaffold(path = "cmpdregappsettings", formBackingObject = CmpdRegAppSetting.class) -@RooWebFinder - -public class CmpdRegAppSettingController { - - -} diff --git a/src/main/java/com/labsynch/labseer/web/CmpdRegAppSettingController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CmpdRegAppSettingController_Roo_Controller.aj deleted file mode 100644 index 978670286..000000000 --- a/src/main/java/com/labsynch/labseer/web/CmpdRegAppSettingController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CmpdRegAppSetting; -import com.labsynch.labseer.web.CmpdRegAppSettingController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect CmpdRegAppSettingController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String CmpdRegAppSettingController.create(@Valid CmpdRegAppSetting cmpdRegAppSetting, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, cmpdRegAppSetting); - return "cmpdregappsettings/create"; - } - uiModel.asMap().clear(); - cmpdRegAppSetting.persist(); - return "redirect:/cmpdregappsettings/" + encodeUrlPathSegment(cmpdRegAppSetting.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String CmpdRegAppSettingController.createForm(Model uiModel) { - populateEditForm(uiModel, new CmpdRegAppSetting()); - return "cmpdregappsettings/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String CmpdRegAppSettingController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("cmpdregappsetting", CmpdRegAppSetting.findCmpdRegAppSetting(id)); - uiModel.addAttribute("itemId", id); - return "cmpdregappsettings/show"; - } - - @RequestMapping(produces = "text/html") - public String CmpdRegAppSettingController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("cmpdregappsettings", CmpdRegAppSetting.findCmpdRegAppSettingEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) CmpdRegAppSetting.countCmpdRegAppSettings() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("cmpdregappsettings", CmpdRegAppSetting.findAllCmpdRegAppSettings(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "cmpdregappsettings/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String CmpdRegAppSettingController.update(@Valid CmpdRegAppSetting cmpdRegAppSetting, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, cmpdRegAppSetting); - return "cmpdregappsettings/update"; - } - uiModel.asMap().clear(); - cmpdRegAppSetting.merge(); - return "redirect:/cmpdregappsettings/" + encodeUrlPathSegment(cmpdRegAppSetting.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String CmpdRegAppSettingController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, CmpdRegAppSetting.findCmpdRegAppSetting(id)); - return "cmpdregappsettings/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String CmpdRegAppSettingController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - CmpdRegAppSetting cmpdRegAppSetting = CmpdRegAppSetting.findCmpdRegAppSetting(id); - cmpdRegAppSetting.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/cmpdregappsettings"; - } - - void CmpdRegAppSettingController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("cmpdRegAppSetting_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void CmpdRegAppSettingController.populateEditForm(Model uiModel, CmpdRegAppSetting cmpdRegAppSetting) { - uiModel.addAttribute("cmpdRegAppSetting", cmpdRegAppSetting); - addDateTimeFormatPatterns(uiModel); - } - - String CmpdRegAppSettingController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CodeKindController.java b/src/main/java/com/labsynch/labseer/web/CodeKindController.java deleted file mode 100755 index d83927b32..000000000 --- a/src/main/java/com/labsynch/labseer/web/CodeKindController.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CodeKind; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/codekinds") -@Controller -@RooWebScaffold(path = "codekinds", formBackingObject = CodeKind.class) -@RooWebFinder -@RooWebJson(jsonObject = CodeKind.class) -public class CodeKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller.aj deleted file mode 100755 index f712e4b96..000000000 --- a/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CodeKind; -import com.labsynch.labseer.domain.CodeType; -import com.labsynch.labseer.web.CodeKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect CodeKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String CodeKindController.create(@Valid CodeKind codeKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, codeKind); - return "codekinds/create"; - } - uiModel.asMap().clear(); - codeKind.persist(); - return "redirect:/codekinds/" + encodeUrlPathSegment(codeKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String CodeKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new CodeKind()); - List dependencies = new ArrayList(); - if (CodeType.countCodeTypes() == 0) { - dependencies.add(new String[] { "lsType", "codetypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "codekinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String CodeKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("codekind", CodeKind.findCodeKind(id)); - uiModel.addAttribute("itemId", id); - return "codekinds/show"; - } - - @RequestMapping(produces = "text/html") - public String CodeKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("codekinds", CodeKind.findCodeKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) CodeKind.countCodeKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("codekinds", CodeKind.findAllCodeKinds(sortFieldName, sortOrder)); - } - return "codekinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String CodeKindController.update(@Valid CodeKind codeKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, codeKind); - return "codekinds/update"; - } - uiModel.asMap().clear(); - codeKind.merge(); - return "redirect:/codekinds/" + encodeUrlPathSegment(codeKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String CodeKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, CodeKind.findCodeKind(id)); - return "codekinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String CodeKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - CodeKind codeKind = CodeKind.findCodeKind(id); - codeKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/codekinds"; - } - - void CodeKindController.populateEditForm(Model uiModel, CodeKind codeKind) { - uiModel.addAttribute("codeKind", codeKind); - uiModel.addAttribute("codetypes", CodeType.findAllCodeTypes()); - } - - String CodeKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller_Finder.aj deleted file mode 100755 index 9e33d956b..000000000 --- a/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,75 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CodeKind; -import com.labsynch.labseer.domain.CodeType; -import com.labsynch.labseer.web.CodeKindController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect CodeKindController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByKindNameEqualsAndLsType", "form" }, method = RequestMethod.GET) - public String CodeKindController.findCodeKindsByKindNameEqualsAndLsTypeForm(Model uiModel) { - uiModel.addAttribute("codetypes", CodeType.findAllCodeTypes()); - return "codekinds/findCodeKindsByKindNameEqualsAndLsType"; - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", method = RequestMethod.GET) - public String CodeKindController.findCodeKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") CodeType lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("codekinds", CodeKind.findCodeKindsByKindNameEqualsAndLsType(kindName, lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) CodeKind.countFindCodeKindsByKindNameEqualsAndLsType(kindName, lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("codekinds", CodeKind.findCodeKindsByKindNameEqualsAndLsType(kindName, lsType, sortFieldName, sortOrder).getResultList()); - } - return "codekinds/list"; - } - - @RequestMapping(params = { "find=ByLsType", "form" }, method = RequestMethod.GET) - public String CodeKindController.findCodeKindsByLsTypeForm(Model uiModel) { - uiModel.addAttribute("codetypes", CodeType.findAllCodeTypes()); - return "codekinds/findCodeKindsByLsType"; - } - - @RequestMapping(params = "find=ByLsType", method = RequestMethod.GET) - public String CodeKindController.findCodeKindsByLsType(@RequestParam("lsType") CodeType lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("codekinds", CodeKind.findCodeKindsByLsType(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) CodeKind.countFindCodeKindsByLsType(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("codekinds", CodeKind.findCodeKindsByLsType(lsType, sortFieldName, sortOrder).getResultList()); - } - return "codekinds/list"; - } - - @RequestMapping(params = { "find=ByLsTypeAndKindEquals", "form" }, method = RequestMethod.GET) - public String CodeKindController.findCodeKindsByLsTypeAndKindEqualsForm(Model uiModel) { - return "codekinds/findCodeKindsByLsTypeAndKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeAndKindEquals", method = RequestMethod.GET) - public String CodeKindController.findCodeKindsByLsTypeAndKindEquals(@RequestParam("lsTypeAndKind") String lsTypeAndKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("codekinds", CodeKind.findCodeKindsByLsTypeAndKindEquals(lsTypeAndKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) CodeKind.countFindCodeKindsByLsTypeAndKindEquals(lsTypeAndKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("codekinds", CodeKind.findCodeKindsByLsTypeAndKindEquals(lsTypeAndKind, sortFieldName, sortOrder).getResultList()); - } - return "codekinds/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller_Json.aj deleted file mode 100755 index 51fd8cc27..000000000 --- a/src/main/java/com/labsynch/labseer/web/CodeKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,149 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CodeKind; -import com.labsynch.labseer.domain.CodeType; -import com.labsynch.labseer.web.CodeKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect CodeKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity CodeKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - CodeKind codeKind = CodeKind.findCodeKind(id); - if (codeKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(codeKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity CodeKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = CodeKind.findAllCodeKinds(); - return new ResponseEntity(CodeKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity CodeKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - CodeKind codeKind = CodeKind.fromJsonToCodeKind(json); - codeKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+codeKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity CodeKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (CodeKind codeKind: CodeKind.fromJsonArrayToCodeKinds(json)) { - codeKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity CodeKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - CodeKind codeKind = CodeKind.fromJsonToCodeKind(json); - codeKind.setId(id); - if (codeKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity CodeKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - CodeKind codeKind = CodeKind.findCodeKind(id); - if (codeKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - codeKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity CodeKindController.jsonFindCodeKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") CodeType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(CodeKind.toJsonArray(CodeKind.findCodeKindsByKindNameEqualsAndLsType(kindName, lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity CodeKindController.jsonFindCodeKindsByLsType(@RequestParam("lsType") CodeType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(CodeKind.toJsonArray(CodeKind.findCodeKindsByLsType(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeAndKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity CodeKindController.jsonFindCodeKindsByLsTypeAndKindEquals(@RequestParam("lsTypeAndKind") String lsTypeAndKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(CodeKind.toJsonArray(CodeKind.findCodeKindsByLsTypeAndKindEquals(lsTypeAndKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CodeOriginController.java b/src/main/java/com/labsynch/labseer/web/CodeOriginController.java deleted file mode 100644 index b4a8756a9..000000000 --- a/src/main/java/com/labsynch/labseer/web/CodeOriginController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CodeOrigin; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/codeorigins") -@Controller -@RooWebScaffold(path = "codeorigins", formBackingObject = CodeOrigin.class) -public class CodeOriginController { -} diff --git a/src/main/java/com/labsynch/labseer/web/CodeOriginController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CodeOriginController_Roo_Controller.aj deleted file mode 100644 index 534c3401e..000000000 --- a/src/main/java/com/labsynch/labseer/web/CodeOriginController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CodeOrigin; -import com.labsynch.labseer.web.CodeOriginController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect CodeOriginController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String CodeOriginController.create(@Valid CodeOrigin codeOrigin, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, codeOrigin); - return "codeorigins/create"; - } - uiModel.asMap().clear(); - codeOrigin.persist(); - return "redirect:/codeorigins/" + encodeUrlPathSegment(codeOrigin.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String CodeOriginController.createForm(Model uiModel) { - populateEditForm(uiModel, new CodeOrigin()); - return "codeorigins/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String CodeOriginController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("codeorigin", CodeOrigin.findCodeOrigin(id)); - uiModel.addAttribute("itemId", id); - return "codeorigins/show"; - } - - @RequestMapping(produces = "text/html") - public String CodeOriginController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("codeorigins", CodeOrigin.findCodeOriginEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) CodeOrigin.countCodeOrigins() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("codeorigins", CodeOrigin.findAllCodeOrigins(sortFieldName, sortOrder)); - } - return "codeorigins/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String CodeOriginController.update(@Valid CodeOrigin codeOrigin, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, codeOrigin); - return "codeorigins/update"; - } - uiModel.asMap().clear(); - codeOrigin.merge(); - return "redirect:/codeorigins/" + encodeUrlPathSegment(codeOrigin.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String CodeOriginController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, CodeOrigin.findCodeOrigin(id)); - return "codeorigins/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String CodeOriginController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - CodeOrigin codeOrigin = CodeOrigin.findCodeOrigin(id); - codeOrigin.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/codeorigins"; - } - - void CodeOriginController.populateEditForm(Model uiModel, CodeOrigin codeOrigin) { - uiModel.addAttribute("codeOrigin", codeOrigin); - } - - String CodeOriginController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CodeTableDTOController.java b/src/main/java/com/labsynch/labseer/web/CodeTableDTOController.java deleted file mode 100755 index eb0253d0a..000000000 --- a/src/main/java/com/labsynch/labseer/web/CodeTableDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.CodeTableDTO; - -@RooWebJson(jsonObject = CodeTableDTO.class) -@Controller -@RequestMapping("/coes") -public class CodeTableDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/CodeTypeController.java b/src/main/java/com/labsynch/labseer/web/CodeTypeController.java deleted file mode 100755 index fc5f15bd8..000000000 --- a/src/main/java/com/labsynch/labseer/web/CodeTypeController.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CodeType; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/codetypes") -@Controller -@RooWebScaffold(path = "codetypes", formBackingObject = CodeType.class) -@RooWebFinder -@RooWebJson(jsonObject = CodeType.class) -public class CodeTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller.aj deleted file mode 100755 index 0ae21a78f..000000000 --- a/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CodeType; -import com.labsynch.labseer.web.CodeTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect CodeTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String CodeTypeController.create(@Valid CodeType codeType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, codeType); - return "codetypes/create"; - } - uiModel.asMap().clear(); - codeType.persist(); - return "redirect:/codetypes/" + encodeUrlPathSegment(codeType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String CodeTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new CodeType()); - return "codetypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String CodeTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("codetype", CodeType.findCodeType(id)); - uiModel.addAttribute("itemId", id); - return "codetypes/show"; - } - - @RequestMapping(produces = "text/html") - public String CodeTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("codetypes", CodeType.findCodeTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) CodeType.countCodeTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("codetypes", CodeType.findAllCodeTypes(sortFieldName, sortOrder)); - } - return "codetypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String CodeTypeController.update(@Valid CodeType codeType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, codeType); - return "codetypes/update"; - } - uiModel.asMap().clear(); - codeType.merge(); - return "redirect:/codetypes/" + encodeUrlPathSegment(codeType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String CodeTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, CodeType.findCodeType(id)); - return "codetypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String CodeTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - CodeType codeType = CodeType.findCodeType(id); - codeType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/codetypes"; - } - - void CodeTypeController.populateEditForm(Model uiModel, CodeType codeType) { - uiModel.addAttribute("codeType", codeType); - } - - String CodeTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller_Finder.aj deleted file mode 100755 index f6436e236..000000000 --- a/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CodeType; -import com.labsynch.labseer.web.CodeTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect CodeTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByTypeNameEquals", "form" }, method = RequestMethod.GET) - public String CodeTypeController.findCodeTypesByTypeNameEqualsForm(Model uiModel) { - return "codetypes/findCodeTypesByTypeNameEquals"; - } - - @RequestMapping(params = "find=ByTypeNameEquals", method = RequestMethod.GET) - public String CodeTypeController.findCodeTypesByTypeNameEquals(@RequestParam("typeName") String typeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("codetypes", CodeType.findCodeTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) CodeType.countFindCodeTypesByTypeNameEquals(typeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("codetypes", CodeType.findCodeTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).getResultList()); - } - return "codetypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller_Json.aj deleted file mode 100755 index 7fbb5666a..000000000 --- a/src/main/java/com/labsynch/labseer/web/CodeTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CodeType; -import com.labsynch.labseer.web.CodeTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect CodeTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity CodeTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - CodeType codeType = CodeType.findCodeType(id); - if (codeType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(codeType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity CodeTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = CodeType.findAllCodeTypes(); - return new ResponseEntity(CodeType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity CodeTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - CodeType codeType = CodeType.fromJsonToCodeType(json); - codeType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+codeType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity CodeTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (CodeType codeType: CodeType.fromJsonArrayToCodeTypes(json)) { - codeType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity CodeTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - CodeType codeType = CodeType.fromJsonToCodeType(json); - codeType.setId(id); - if (codeType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity CodeTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - CodeType codeType = CodeType.findCodeType(id); - if (codeType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - codeType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity CodeTypeController.jsonFindCodeTypesByTypeNameEquals(@RequestParam("typeName") String typeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(CodeType.toJsonArray(CodeType.findCodeTypesByTypeNameEquals(typeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CompoundController.java b/src/main/java/com/labsynch/labseer/web/CompoundController.java deleted file mode 100644 index d44f30932..000000000 --- a/src/main/java/com/labsynch/labseer/web/CompoundController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; -import com.labsynch.labseer.domain.Compound; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; - -@RequestMapping("/compounds") -@Controller -@RooWebScaffold(path = "compounds", formBackingObject = Compound.class) -@RooWebFinder -public class CompoundController { -} diff --git a/src/main/java/com/labsynch/labseer/web/CompoundController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CompoundController_Roo_Controller.aj deleted file mode 100644 index 998bb8ad3..000000000 --- a/src/main/java/com/labsynch/labseer/web/CompoundController_Roo_Controller.aj +++ /dev/null @@ -1,110 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Compound; -import com.labsynch.labseer.web.CompoundController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect CompoundController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String CompoundController.create(@Valid Compound compound, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, compound); - return "compounds/create"; - } - uiModel.asMap().clear(); - compound.persist(); - return "redirect:/compounds/" + encodeUrlPathSegment(compound.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String CompoundController.createForm(Model uiModel) { - populateEditForm(uiModel, new Compound()); - return "compounds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String CompoundController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("compound", Compound.findCompound(id)); - uiModel.addAttribute("itemId", id); - return "compounds/show"; - } - - @RequestMapping(produces = "text/html") - public String CompoundController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("compounds", Compound.findCompoundEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) Compound.countCompounds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("compounds", Compound.findAllCompounds(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "compounds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String CompoundController.update(@Valid Compound compound, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, compound); - return "compounds/update"; - } - uiModel.asMap().clear(); - compound.merge(); - return "redirect:/compounds/" + encodeUrlPathSegment(compound.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String CompoundController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, Compound.findCompound(id)); - return "compounds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String CompoundController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - Compound compound = Compound.findCompound(id); - compound.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/compounds"; - } - - void CompoundController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("compound_createddate_date_format", DateTimeFormat.patternForStyle("S-", LocaleContextHolder.getLocale())); - uiModel.addAttribute("compound_modifieddate_date_format", DateTimeFormat.patternForStyle("S-", LocaleContextHolder.getLocale())); - } - - void CompoundController.populateEditForm(Model uiModel, Compound compound) { - uiModel.addAttribute("compound", compound); - addDateTimeFormatPatterns(uiModel); - } - - String CompoundController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CompoundController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/CompoundController_Roo_Controller_Finder.aj deleted file mode 100644 index a0e02815c..000000000 --- a/src/main/java/com/labsynch/labseer/web/CompoundController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,55 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Compound; -import com.labsynch.labseer.web.CompoundController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect CompoundController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCdId", "form" }, method = RequestMethod.GET) - public String CompoundController.findCompoundsByCdIdForm(Model uiModel) { - return "compounds/findCompoundsByCdId"; - } - - @RequestMapping(params = "find=ByCdId", method = RequestMethod.GET) - public String CompoundController.findCompoundsByCdId(@RequestParam("cdId") int CdId, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("compounds", Compound.findCompoundsByCdId(CdId, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Compound.countFindCompoundsByCdId(CdId) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("compounds", Compound.findCompoundsByCdId(CdId, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "compounds/list"; - } - - @RequestMapping(params = { "find=ByExternal_idEquals", "form" }, method = RequestMethod.GET) - public String CompoundController.findCompoundsByExternal_idEqualsForm(Model uiModel) { - return "compounds/findCompoundsByExternal_idEquals"; - } - - @RequestMapping(params = "find=ByExternal_idEquals", method = RequestMethod.GET) - public String CompoundController.findCompoundsByExternal_idEquals(@RequestParam("external_id") String external_id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("compounds", Compound.findCompoundsByExternal_idEquals(external_id, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Compound.countFindCompoundsByExternal_idEquals(external_id) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("compounds", Compound.findCompoundsByExternal_idEquals(external_id, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "compounds/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerController.java b/src/main/java/com/labsynch/labseer/web/ContainerController.java deleted file mode 100755 index 1175b7cbc..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerController.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ContainerLabel; -import com.labsynch.labseer.dto.IdCollectionDTO; -import com.labsynch.labseer.service.ContainerService; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = Container.class) -@Controller -@RequestMapping("/containers") -@RooWebScaffold(path = "containers", formBackingObject = Container.class) -public class ContainerController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ContainerController_Roo_Controller.aj deleted file mode 100755 index 733ec9925..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerController_Roo_Controller.aj +++ /dev/null @@ -1,120 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ContainerLabel; -import com.labsynch.labseer.domain.ContainerState; -import com.labsynch.labseer.domain.ItxContainerContainer; -import com.labsynch.labseer.domain.ItxSubjectContainer; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.ContainerController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ContainerController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ContainerController.create(@Valid Container container, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, container); - return "containers/create"; - } - uiModel.asMap().clear(); - container.persist(); - return "redirect:/containers/" + encodeUrlPathSegment(container.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ContainerController.createForm(Model uiModel) { - populateEditForm(uiModel, new Container()); - return "containers/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ContainerController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("container", Container.findContainer(id)); - uiModel.addAttribute("itemId", id); - return "containers/show"; - } - - @RequestMapping(produces = "text/html") - public String ContainerController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containers", Container.findContainerEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) Container.countContainers() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containers", Container.findAllContainers(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "containers/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ContainerController.update(@Valid Container container, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, container); - return "containers/update"; - } - uiModel.asMap().clear(); - container.merge(); - return "redirect:/containers/" + encodeUrlPathSegment(container.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ContainerController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, Container.findContainer(id)); - return "containers/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ContainerController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - Container container = Container.findContainer(id); - container.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/containers"; - } - - void ContainerController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("container_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("container_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ContainerController.populateEditForm(Model uiModel, Container container) { - uiModel.addAttribute("container", container); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("containerlabels", ContainerLabel.findAllContainerLabels()); - uiModel.addAttribute("containerstates", ContainerState.findAllContainerStates()); - uiModel.addAttribute("itxcontainercontainers", ItxContainerContainer.findAllItxContainerContainers()); - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findAllItxSubjectContainers()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - } - - String ContainerController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ContainerController_Roo_Controller_Json.aj deleted file mode 100644 index 74f31a59b..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerController_Roo_Controller_Json.aj +++ /dev/null @@ -1,148 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.web.ContainerController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ContainerController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - Container container = Container.findContainer(id); - if (container == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(container.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = Container.findAllContainers(); - return new ResponseEntity(Container.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ContainerController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Container container = Container.fromJsonToContainer(json); - container.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+container.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ContainerController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (Container container: Container.fromJsonArrayToContainers(json)) { - container.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ContainerController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Container container = Container.fromJsonToContainer(json); - container.setId(id); - if (container.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ContainerController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Container container = Container.findContainer(id); - if (container == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - container.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerController.jsonFindContainersByLsKindEquals(@RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Container.toJsonArray(Container.findContainersByLsKindEquals(lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerController.jsonFindContainersByLsTypeEquals(@RequestParam("lsType") String lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Container.toJsonArray(Container.findContainersByLsTypeEquals(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerController.jsonFindContainersByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Container.toJsonArray(Container.findContainersByLsTypeEqualsAndLsKindEquals(lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerKindController.java b/src/main/java/com/labsynch/labseer/web/ContainerKindController.java deleted file mode 100755 index 6da29b41d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerKindController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ContainerKind; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ContainerKind.class) -@Controller -@RequestMapping("/containerkinds") -@RooWebScaffold(path = "containerkinds", formBackingObject = ContainerKind.class) -public class ContainerKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ContainerKindController_Roo_Controller.aj deleted file mode 100755 index 4a433861a..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ContainerKind; -import com.labsynch.labseer.domain.ContainerType; -import com.labsynch.labseer.web.ContainerKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ContainerKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ContainerKindController.create(@Valid ContainerKind containerKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, containerKind); - return "containerkinds/create"; - } - uiModel.asMap().clear(); - containerKind.persist(); - return "redirect:/containerkinds/" + encodeUrlPathSegment(containerKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ContainerKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new ContainerKind()); - List dependencies = new ArrayList(); - if (ContainerType.countContainerTypes() == 0) { - dependencies.add(new String[] { "lsType", "containertypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "containerkinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ContainerKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("containerkind", ContainerKind.findContainerKind(id)); - uiModel.addAttribute("itemId", id); - return "containerkinds/show"; - } - - @RequestMapping(produces = "text/html") - public String ContainerKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containerkinds", ContainerKind.findContainerKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ContainerKind.countContainerKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containerkinds", ContainerKind.findAllContainerKinds(sortFieldName, sortOrder)); - } - return "containerkinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ContainerKindController.update(@Valid ContainerKind containerKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, containerKind); - return "containerkinds/update"; - } - uiModel.asMap().clear(); - containerKind.merge(); - return "redirect:/containerkinds/" + encodeUrlPathSegment(containerKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ContainerKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ContainerKind.findContainerKind(id)); - return "containerkinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ContainerKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ContainerKind containerKind = ContainerKind.findContainerKind(id); - containerKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/containerkinds"; - } - - void ContainerKindController.populateEditForm(Model uiModel, ContainerKind containerKind) { - uiModel.addAttribute("containerKind", containerKind); - uiModel.addAttribute("containertypes", ContainerType.findAllContainerTypes()); - } - - String ContainerKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ContainerKindController_Roo_Controller_Json.aj deleted file mode 100644 index fc9636064..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,125 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ContainerKind; -import com.labsynch.labseer.domain.ContainerType; -import com.labsynch.labseer.web.ContainerKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ContainerKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ContainerKind containerKind = ContainerKind.findContainerKind(id); - if (containerKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(containerKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ContainerKind.findAllContainerKinds(); - return new ResponseEntity(ContainerKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ContainerKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerKind containerKind = ContainerKind.fromJsonToContainerKind(json); - containerKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+containerKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ContainerKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ContainerKind containerKind: ContainerKind.fromJsonArrayToContainerKinds(json)) { - containerKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ContainerKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerKind containerKind = ContainerKind.fromJsonToContainerKind(json); - containerKind.setId(id); - if (containerKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ContainerKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerKind containerKind = ContainerKind.findContainerKind(id); - if (containerKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - containerKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerKindController.jsonFindContainerKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") ContainerType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ContainerKind.toJsonArray(ContainerKind.findContainerKindsByKindNameEqualsAndLsType(kindName, lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerLabelController.java b/src/main/java/com/labsynch/labseer/web/ContainerLabelController.java deleted file mode 100755 index e3898d5f2..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerLabelController.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ContainerLabel; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ContainerLabel.class) -@Controller -@RequestMapping("/containerlabels") -@RooWebScaffold(path = "containerlabels", formBackingObject = ContainerLabel.class) -@RooWebFinder -public class ContainerLabelController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller.aj deleted file mode 100755 index 49be8dc3d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller.aj +++ /dev/null @@ -1,119 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ContainerLabel; -import com.labsynch.labseer.web.ContainerLabelController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ContainerLabelController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ContainerLabelController.create(@Valid ContainerLabel containerLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, containerLabel); - return "containerlabels/create"; - } - uiModel.asMap().clear(); - containerLabel.persist(); - return "redirect:/containerlabels/" + encodeUrlPathSegment(containerLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ContainerLabelController.createForm(Model uiModel) { - populateEditForm(uiModel, new ContainerLabel()); - List dependencies = new ArrayList(); - if (Container.countContainers() == 0) { - dependencies.add(new String[] { "container", "containers" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "containerlabels/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ContainerLabelController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("containerlabel", ContainerLabel.findContainerLabel(id)); - uiModel.addAttribute("itemId", id); - return "containerlabels/show"; - } - - @RequestMapping(produces = "text/html") - public String ContainerLabelController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containerlabels", ContainerLabel.findContainerLabelEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ContainerLabel.countContainerLabels() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containerlabels", ContainerLabel.findAllContainerLabels(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "containerlabels/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ContainerLabelController.update(@Valid ContainerLabel containerLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, containerLabel); - return "containerlabels/update"; - } - uiModel.asMap().clear(); - containerLabel.merge(); - return "redirect:/containerlabels/" + encodeUrlPathSegment(containerLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ContainerLabelController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ContainerLabel.findContainerLabel(id)); - return "containerlabels/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ContainerLabelController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ContainerLabel containerLabel = ContainerLabel.findContainerLabel(id); - containerLabel.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/containerlabels"; - } - - void ContainerLabelController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("containerLabel_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("containerLabel_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ContainerLabelController.populateEditForm(Model uiModel, ContainerLabel containerLabel) { - uiModel.addAttribute("containerLabel", containerLabel); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("containers", Container.findAllContainers()); - } - - String ContainerLabelController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller_Finder.aj deleted file mode 100755 index 079e08984..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,97 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ContainerLabel; -import com.labsynch.labseer.web.ContainerLabelController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ContainerLabelController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByContainerAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String ContainerLabelController.findContainerLabelsByContainerAndIgnoredNotForm(Model uiModel) { - uiModel.addAttribute("containers", Container.findAllContainers()); - return "containerlabels/findContainerLabelsByContainerAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByContainerAndIgnoredNot", method = RequestMethod.GET) - public String ContainerLabelController.findContainerLabelsByContainerAndIgnoredNot(@RequestParam("container") Container container, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containerlabels", ContainerLabel.findContainerLabelsByContainerAndIgnoredNot(container, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ContainerLabel.countFindContainerLabelsByContainerAndIgnoredNot(container, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containerlabels", ContainerLabel.findContainerLabelsByContainerAndIgnoredNot(container, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "containerlabels/list"; - } - - @RequestMapping(params = { "find=ByLabelTextEqualsAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String ContainerLabelController.findContainerLabelsByLabelTextEqualsAndIgnoredNotForm(Model uiModel) { - return "containerlabels/findContainerLabelsByLabelTextEqualsAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByLabelTextEqualsAndIgnoredNot", method = RequestMethod.GET) - public String ContainerLabelController.findContainerLabelsByLabelTextEqualsAndIgnoredNot(@RequestParam("labelText") String labelText, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containerlabels", ContainerLabel.findContainerLabelsByLabelTextEqualsAndIgnoredNot(labelText, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ContainerLabel.countFindContainerLabelsByLabelTextEqualsAndIgnoredNot(labelText, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containerlabels", ContainerLabel.findContainerLabelsByLabelTextEqualsAndIgnoredNot(labelText, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "containerlabels/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String ContainerLabelController.findContainerLabelsByLsTransactionEqualsForm(Model uiModel) { - return "containerlabels/findContainerLabelsByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String ContainerLabelController.findContainerLabelsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containerlabels", ContainerLabel.findContainerLabelsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ContainerLabel.countFindContainerLabelsByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containerlabels", ContainerLabel.findContainerLabelsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "containerlabels/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String ContainerLabelController.findContainerLabelsByLsTypeEqualsAndLabelTextEqualsAndIgnoredNotForm(Model uiModel) { - return "containerlabels/findContainerLabelsByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot", method = RequestMethod.GET) - public String ContainerLabelController.findContainerLabelsByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot(@RequestParam("lsType") String lsType, @RequestParam("labelText") String labelText, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containerlabels", ContainerLabel.findContainerLabelsByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot(lsType, labelText, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ContainerLabel.countFindContainerLabelsByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot(lsType, labelText, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containerlabels", ContainerLabel.findContainerLabelsByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot(lsType, labelText, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "containerlabels/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller_Json.aj deleted file mode 100755 index 567265c2b..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerLabelController_Roo_Controller_Json.aj +++ /dev/null @@ -1,161 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ContainerLabel; -import com.labsynch.labseer.web.ContainerLabelController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ContainerLabelController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerLabelController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ContainerLabel containerLabel = ContainerLabel.findContainerLabel(id); - if (containerLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(containerLabel.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerLabelController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ContainerLabel.findAllContainerLabels(); - return new ResponseEntity(ContainerLabel.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ContainerLabelController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerLabel containerLabel = ContainerLabel.fromJsonToContainerLabel(json); - containerLabel.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+containerLabel.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ContainerLabelController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ContainerLabel containerLabel: ContainerLabel.fromJsonArrayToContainerLabels(json)) { - containerLabel.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ContainerLabelController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerLabel containerLabel = ContainerLabel.fromJsonToContainerLabel(json); - containerLabel.setId(id); - if (containerLabel.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ContainerLabelController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerLabel containerLabel = ContainerLabel.findContainerLabel(id); - if (containerLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - containerLabel.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByContainerAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerLabelController.jsonFindContainerLabelsByContainerAndIgnoredNot(@RequestParam("container") Container container, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ContainerLabel.toJsonArray(ContainerLabel.findContainerLabelsByContainerAndIgnoredNot(container, ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLabelTextEqualsAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerLabelController.jsonFindContainerLabelsByLabelTextEqualsAndIgnoredNot(@RequestParam("labelText") String labelText, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ContainerLabel.toJsonArray(ContainerLabel.findContainerLabelsByLabelTextEqualsAndIgnoredNot(labelText, ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerLabelController.jsonFindContainerLabelsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ContainerLabel.toJsonArray(ContainerLabel.findContainerLabelsByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerLabelController.jsonFindContainerLabelsByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot(@RequestParam("lsType") String lsType, @RequestParam("labelText") String labelText, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ContainerLabel.toJsonArray(ContainerLabel.findContainerLabelsByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot(lsType, labelText, ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerMiniDTOController.java b/src/main/java/com/labsynch/labseer/web/ContainerMiniDTOController.java deleted file mode 100755 index d662d1947..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerMiniDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.ContainerMiniDTO; - -@RooWebJson(jsonObject = ContainerMiniDTO.class) -@Controller -@RequestMapping("/coes") -public class ContainerMiniDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerStateController.java b/src/main/java/com/labsynch/labseer/web/ContainerStateController.java deleted file mode 100755 index 8a748d963..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerStateController.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ContainerState; -import com.labsynch.labseer.domain.LsTransaction; -import com.labsynch.labseer.domain.UpdateLog; -import com.labsynch.labseer.dto.ContainerMiniDTO; -import com.labsynch.labseer.dto.ContainerStateMiniDTO; -import com.labsynch.labseer.service.ContainerStateService; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.FileReader; -import java.io.StringReader; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Date; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.apache.commons.io.IOUtils; -import org.joda.time.format.DateTimeFormat; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -@Controller -@RequestMapping("/containerstates") -@RooWebScaffold(path = "containerstates", formBackingObject = ContainerState.class) -@RooWebFinder -@RooWebJson(jsonObject = ContainerState.class) -public class ContainerStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller.aj deleted file mode 100644 index cdda5db2c..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller.aj +++ /dev/null @@ -1,121 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ContainerState; -import com.labsynch.labseer.domain.ContainerValue; -import com.labsynch.labseer.web.ContainerStateController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ContainerStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ContainerStateController.create(@Valid ContainerState containerState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, containerState); - return "containerstates/create"; - } - uiModel.asMap().clear(); - containerState.persist(); - return "redirect:/containerstates/" + encodeUrlPathSegment(containerState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ContainerStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new ContainerState()); - List dependencies = new ArrayList(); - if (Container.countContainers() == 0) { - dependencies.add(new String[] { "container", "containers" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "containerstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ContainerStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("containerstate", ContainerState.findContainerState(id)); - uiModel.addAttribute("itemId", id); - return "containerstates/show"; - } - - @RequestMapping(produces = "text/html") - public String ContainerStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containerstates", ContainerState.findContainerStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ContainerState.countContainerStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containerstates", ContainerState.findAllContainerStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "containerstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ContainerStateController.update(@Valid ContainerState containerState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, containerState); - return "containerstates/update"; - } - uiModel.asMap().clear(); - containerState.merge(); - return "redirect:/containerstates/" + encodeUrlPathSegment(containerState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ContainerStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ContainerState.findContainerState(id)); - return "containerstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ContainerStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ContainerState containerState = ContainerState.findContainerState(id); - containerState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/containerstates"; - } - - void ContainerStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("containerState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("containerState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ContainerStateController.populateEditForm(Model uiModel, ContainerState containerState) { - uiModel.addAttribute("containerState", containerState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("containers", Container.findAllContainers()); - uiModel.addAttribute("containervalues", ContainerValue.findAllContainerValues()); - } - - String ContainerStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller_Finder.aj deleted file mode 100644 index 1a6f4f633..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,78 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ContainerState; -import com.labsynch.labseer.web.ContainerStateController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ContainerStateController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByContainer", "form" }, method = RequestMethod.GET) - public String ContainerStateController.findContainerStatesByContainerForm(Model uiModel) { - uiModel.addAttribute("containers", Container.findAllContainers()); - return "containerstates/findContainerStatesByContainer"; - } - - @RequestMapping(params = "find=ByContainer", method = RequestMethod.GET) - public String ContainerStateController.findContainerStatesByContainer(@RequestParam("container") Container container, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containerstates", ContainerState.findContainerStatesByContainer(container, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ContainerState.countFindContainerStatesByContainer(container) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containerstates", ContainerState.findContainerStatesByContainer(container, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "containerstates/list"; - } - - @RequestMapping(params = { "find=ByContainerAndLsKindEqualsAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String ContainerStateController.findContainerStatesByContainerAndLsKindEqualsAndIgnoredNotForm(Model uiModel) { - uiModel.addAttribute("containers", Container.findAllContainers()); - return "containerstates/findContainerStatesByContainerAndLsKindEqualsAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByContainerAndLsKindEqualsAndIgnoredNot", method = RequestMethod.GET) - public String ContainerStateController.findContainerStatesByContainerAndLsKindEqualsAndIgnoredNot(@RequestParam("container") Container container, @RequestParam("lsKind") String lsKind, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containerstates", ContainerState.findContainerStatesByContainerAndLsKindEqualsAndIgnoredNot(container, lsKind, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ContainerState.countFindContainerStatesByContainerAndLsKindEqualsAndIgnoredNot(container, lsKind, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containerstates", ContainerState.findContainerStatesByContainerAndLsKindEqualsAndIgnoredNot(container, lsKind, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "containerstates/list"; - } - - @RequestMapping(params = { "find=ByIgnoredNot", "form" }, method = RequestMethod.GET) - public String ContainerStateController.findContainerStatesByIgnoredNotForm(Model uiModel) { - return "containerstates/findContainerStatesByIgnoredNot"; - } - - @RequestMapping(params = "find=ByIgnoredNot", method = RequestMethod.GET) - public String ContainerStateController.findContainerStatesByIgnoredNot(@RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containerstates", ContainerState.findContainerStatesByIgnoredNot(ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ContainerState.countFindContainerStatesByIgnoredNot(ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containerstates", ContainerState.findContainerStatesByIgnoredNot(ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "containerstates/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller_Json.aj deleted file mode 100644 index 3ab7dba1f..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerStateController_Roo_Controller_Json.aj +++ /dev/null @@ -1,149 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ContainerState; -import com.labsynch.labseer.web.ContainerStateController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ContainerStateController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerStateController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ContainerState containerState = ContainerState.findContainerState(id); - if (containerState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(containerState.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerStateController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ContainerState.findAllContainerStates(); - return new ResponseEntity(ContainerState.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ContainerStateController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerState containerState = ContainerState.fromJsonToContainerState(json); - containerState.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+containerState.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ContainerStateController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ContainerState containerState: ContainerState.fromJsonArrayToContainerStates(json)) { - containerState.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ContainerStateController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerState containerState = ContainerState.fromJsonToContainerState(json); - containerState.setId(id); - if (containerState.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ContainerStateController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerState containerState = ContainerState.findContainerState(id); - if (containerState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - containerState.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByContainer", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerStateController.jsonFindContainerStatesByContainer(@RequestParam("container") Container container) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ContainerState.toJsonArray(ContainerState.findContainerStatesByContainer(container).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByContainerAndLsKindEqualsAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerStateController.jsonFindContainerStatesByContainerAndLsKindEqualsAndIgnoredNot(@RequestParam("container") Container container, @RequestParam("lsKind") String lsKind, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ContainerState.toJsonArray(ContainerState.findContainerStatesByContainerAndLsKindEqualsAndIgnoredNot(container, lsKind, ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerStateController.jsonFindContainerStatesByIgnoredNot(@RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ContainerState.toJsonArray(ContainerState.findContainerStatesByIgnoredNot(ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerStateMiniDTOController.java b/src/main/java/com/labsynch/labseer/web/ContainerStateMiniDTOController.java deleted file mode 100755 index fce1108c1..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerStateMiniDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.ContainerStateMiniDTO; - -@RooWebJson(jsonObject = ContainerStateMiniDTO.class) -@Controller -@RequestMapping("/coes") -public class ContainerStateMiniDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerTypeController.java b/src/main/java/com/labsynch/labseer/web/ContainerTypeController.java deleted file mode 100755 index a25ee176f..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerTypeController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ContainerType; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ContainerType.class) -@Controller -@RequestMapping("/containertypes") -@RooWebScaffold(path = "containertypes", formBackingObject = ContainerType.class) -@RooWebFinder -public class ContainerTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller.aj deleted file mode 100755 index 595b2354e..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ContainerType; -import com.labsynch.labseer.web.ContainerTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ContainerTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ContainerTypeController.create(@Valid ContainerType containerType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, containerType); - return "containertypes/create"; - } - uiModel.asMap().clear(); - containerType.persist(); - return "redirect:/containertypes/" + encodeUrlPathSegment(containerType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ContainerTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new ContainerType()); - return "containertypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ContainerTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("containertype", ContainerType.findContainerType(id)); - uiModel.addAttribute("itemId", id); - return "containertypes/show"; - } - - @RequestMapping(produces = "text/html") - public String ContainerTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containertypes", ContainerType.findContainerTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ContainerType.countContainerTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containertypes", ContainerType.findAllContainerTypes(sortFieldName, sortOrder)); - } - return "containertypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ContainerTypeController.update(@Valid ContainerType containerType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, containerType); - return "containertypes/update"; - } - uiModel.asMap().clear(); - containerType.merge(); - return "redirect:/containertypes/" + encodeUrlPathSegment(containerType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ContainerTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ContainerType.findContainerType(id)); - return "containertypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ContainerTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ContainerType containerType = ContainerType.findContainerType(id); - containerType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/containertypes"; - } - - void ContainerTypeController.populateEditForm(Model uiModel, ContainerType containerType) { - uiModel.addAttribute("containerType", containerType); - } - - String ContainerTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller_Finder.aj deleted file mode 100755 index 95d8b3653..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ContainerType; -import com.labsynch.labseer.web.ContainerTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ContainerTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByTypeNameEquals", "form" }, method = RequestMethod.GET) - public String ContainerTypeController.findContainerTypesByTypeNameEqualsForm(Model uiModel) { - return "containertypes/findContainerTypesByTypeNameEquals"; - } - - @RequestMapping(params = "find=ByTypeNameEquals", method = RequestMethod.GET) - public String ContainerTypeController.findContainerTypesByTypeNameEquals(@RequestParam("typeName") String typeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containertypes", ContainerType.findContainerTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ContainerType.countFindContainerTypesByTypeNameEquals(typeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containertypes", ContainerType.findContainerTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).getResultList()); - } - return "containertypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller_Json.aj deleted file mode 100755 index 9606ade6f..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ContainerType; -import com.labsynch.labseer.web.ContainerTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ContainerTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ContainerType containerType = ContainerType.findContainerType(id); - if (containerType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(containerType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ContainerType.findAllContainerTypes(); - return new ResponseEntity(ContainerType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ContainerTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerType containerType = ContainerType.fromJsonToContainerType(json); - containerType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+containerType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ContainerTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ContainerType containerType: ContainerType.fromJsonArrayToContainerTypes(json)) { - containerType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ContainerTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerType containerType = ContainerType.fromJsonToContainerType(json); - containerType.setId(id); - if (containerType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ContainerTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerType containerType = ContainerType.findContainerType(id); - if (containerType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - containerType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerTypeController.jsonFindContainerTypesByTypeNameEquals(@RequestParam("typeName") String typeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ContainerType.toJsonArray(ContainerType.findContainerTypesByTypeNameEquals(typeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerValueController.java b/src/main/java/com/labsynch/labseer/web/ContainerValueController.java deleted file mode 100755 index 6287e05f3..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerValueController.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ContainerState; -import com.labsynch.labseer.domain.ContainerValue; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.FileReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ContainerValue.class) -@Controller -@RequestMapping("/containervalues") -@RooWebScaffold(path = "containervalues", formBackingObject = ContainerValue.class) -@RooWebFinder -public class ContainerValueController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller.aj deleted file mode 100755 index 8bdcab793..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller.aj +++ /dev/null @@ -1,120 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ContainerState; -import com.labsynch.labseer.domain.ContainerValue; -import com.labsynch.labseer.web.ContainerValueController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ContainerValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ContainerValueController.create(@Valid ContainerValue containerValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, containerValue); - return "containervalues/create"; - } - uiModel.asMap().clear(); - containerValue.persist(); - return "redirect:/containervalues/" + encodeUrlPathSegment(containerValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ContainerValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new ContainerValue()); - List dependencies = new ArrayList(); - if (ContainerState.countContainerStates() == 0) { - dependencies.add(new String[] { "lsState", "containerstates" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "containervalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ContainerValueController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("containervalue", ContainerValue.findContainerValue(id)); - uiModel.addAttribute("itemId", id); - return "containervalues/show"; - } - - @RequestMapping(produces = "text/html") - public String ContainerValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containervalues", ContainerValue.findContainerValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ContainerValue.countContainerValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containervalues", ContainerValue.findAllContainerValues(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "containervalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ContainerValueController.update(@Valid ContainerValue containerValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, containerValue); - return "containervalues/update"; - } - uiModel.asMap().clear(); - containerValue.merge(); - return "redirect:/containervalues/" + encodeUrlPathSegment(containerValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ContainerValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ContainerValue.findContainerValue(id)); - return "containervalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ContainerValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ContainerValue containerValue = ContainerValue.findContainerValue(id); - containerValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/containervalues"; - } - - void ContainerValueController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("containerValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("containerValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("containerValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ContainerValueController.populateEditForm(Model uiModel, ContainerValue containerValue) { - uiModel.addAttribute("containerValue", containerValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("containerstates", ContainerState.findAllContainerStates()); - } - - String ContainerValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller_Finder.aj deleted file mode 100755 index 3ad4a425d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,57 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ContainerState; -import com.labsynch.labseer.domain.ContainerValue; -import com.labsynch.labseer.web.ContainerValueController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ContainerValueController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByIgnoredNot", "form" }, method = RequestMethod.GET) - public String ContainerValueController.findContainerValuesByIgnoredNotForm(Model uiModel) { - return "containervalues/findContainerValuesByIgnoredNot"; - } - - @RequestMapping(params = "find=ByIgnoredNot", method = RequestMethod.GET) - public String ContainerValueController.findContainerValuesByIgnoredNot(@RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containervalues", ContainerValue.findContainerValuesByIgnoredNot(ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ContainerValue.countFindContainerValuesByIgnoredNot(ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containervalues", ContainerValue.findContainerValuesByIgnoredNot(ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "containervalues/list"; - } - - @RequestMapping(params = { "find=ByLsState", "form" }, method = RequestMethod.GET) - public String ContainerValueController.findContainerValuesByLsStateForm(Model uiModel) { - uiModel.addAttribute("containerstates", ContainerState.findAllContainerStates()); - return "containervalues/findContainerValuesByLsState"; - } - - @RequestMapping(params = "find=ByLsState", method = RequestMethod.GET) - public String ContainerValueController.findContainerValuesByLsState(@RequestParam("lsState") ContainerState lsState, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("containervalues", ContainerValue.findContainerValuesByLsState(lsState, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ContainerValue.countFindContainerValuesByLsState(lsState) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("containervalues", ContainerValue.findContainerValuesByLsState(lsState, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "containervalues/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller_Json.aj deleted file mode 100755 index 967624a9a..000000000 --- a/src/main/java/com/labsynch/labseer/web/ContainerValueController_Roo_Controller_Json.aj +++ /dev/null @@ -1,137 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ContainerState; -import com.labsynch.labseer.domain.ContainerValue; -import com.labsynch.labseer.web.ContainerValueController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ContainerValueController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerValueController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ContainerValue containerValue = ContainerValue.findContainerValue(id); - if (containerValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(containerValue.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerValueController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ContainerValue.findAllContainerValues(); - return new ResponseEntity(ContainerValue.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ContainerValueController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerValue containerValue = ContainerValue.fromJsonToContainerValue(json); - containerValue.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+containerValue.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ContainerValueController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ContainerValue containerValue: ContainerValue.fromJsonArrayToContainerValues(json)) { - containerValue.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ContainerValueController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerValue containerValue = ContainerValue.fromJsonToContainerValue(json); - containerValue.setId(id); - if (containerValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ContainerValueController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ContainerValue containerValue = ContainerValue.findContainerValue(id); - if (containerValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - containerValue.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerValueController.jsonFindContainerValuesByIgnoredNot(@RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ContainerValue.toJsonArray(ContainerValue.findContainerValuesByIgnoredNot(ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsState", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ContainerValueController.jsonFindContainerValuesByLsState(@RequestParam("lsState") ContainerState lsState) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ContainerValue.toJsonArray(ContainerValue.findContainerValuesByLsState(lsState).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CorpNameController.java b/src/main/java/com/labsynch/labseer/web/CorpNameController.java deleted file mode 100755 index 8d300d2ee..000000000 --- a/src/main/java/com/labsynch/labseer/web/CorpNameController.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.labsynch.labseer.web; -import javax.servlet.http.HttpServletRequest; - -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.domain.CorpName; - -@RooWebScaffold(path = "corpnames", formBackingObject = CorpName.class) -@RequestMapping("/corpnames") -@Controller - -public class CorpNameController { - - -} diff --git a/src/main/java/com/labsynch/labseer/web/CorpNameController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CorpNameController_Roo_Controller.aj deleted file mode 100644 index c09365527..000000000 --- a/src/main/java/com/labsynch/labseer/web/CorpNameController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CorpName; -import com.labsynch.labseer.web.CorpNameController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect CorpNameController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String CorpNameController.create(@Valid CorpName corpName, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, corpName); - return "corpnames/create"; - } - uiModel.asMap().clear(); - corpName.persist(); - return "redirect:/corpnames/" + encodeUrlPathSegment(corpName.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String CorpNameController.createForm(Model uiModel) { - populateEditForm(uiModel, new CorpName()); - return "corpnames/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String CorpNameController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("corpname", CorpName.findCorpName(id)); - uiModel.addAttribute("itemId", id); - return "corpnames/show"; - } - - @RequestMapping(produces = "text/html") - public String CorpNameController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("corpnames", CorpName.findCorpNameEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) CorpName.countCorpNames() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("corpnames", CorpName.findAllCorpNames(sortFieldName, sortOrder)); - } - return "corpnames/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String CorpNameController.update(@Valid CorpName corpName, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, corpName); - return "corpnames/update"; - } - uiModel.asMap().clear(); - corpName.merge(); - return "redirect:/corpnames/" + encodeUrlPathSegment(corpName.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String CorpNameController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, CorpName.findCorpName(id)); - return "corpnames/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String CorpNameController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - CorpName corpName = CorpName.findCorpName(id); - corpName.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/corpnames"; - } - - void CorpNameController.populateEditForm(Model uiModel, CorpName corpName) { - uiModel.addAttribute("corpName", corpName); - } - - String CorpNameController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/CronJobController.java b/src/main/java/com/labsynch/labseer/web/CronJobController.java deleted file mode 100644 index 4a9f18c63..000000000 --- a/src/main/java/com/labsynch/labseer/web/CronJobController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CronJob; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/cronjobs") -@Controller -@RooWebScaffold(path = "cronjobs", formBackingObject = CronJob.class) -public class CronJobController { -} diff --git a/src/main/java/com/labsynch/labseer/web/CronJobController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/CronJobController_Roo_Controller.aj deleted file mode 100644 index 58f4b7a42..000000000 --- a/src/main/java/com/labsynch/labseer/web/CronJobController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.CronJob; -import com.labsynch.labseer.web.CronJobController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect CronJobController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String CronJobController.create(@Valid CronJob cronJob, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, cronJob); - return "cronjobs/create"; - } - uiModel.asMap().clear(); - cronJob.persist(); - return "redirect:/cronjobs/" + encodeUrlPathSegment(cronJob.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String CronJobController.createForm(Model uiModel) { - populateEditForm(uiModel, new CronJob()); - return "cronjobs/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String CronJobController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("cronjob", CronJob.findCronJob(id)); - uiModel.addAttribute("itemId", id); - return "cronjobs/show"; - } - - @RequestMapping(produces = "text/html") - public String CronJobController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("cronjobs", CronJob.findCronJobEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) CronJob.countCronJobs() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("cronjobs", CronJob.findAllCronJobs(sortFieldName, sortOrder)); - } - return "cronjobs/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String CronJobController.update(@Valid CronJob cronJob, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, cronJob); - return "cronjobs/update"; - } - uiModel.asMap().clear(); - cronJob.merge(); - return "redirect:/cronjobs/" + encodeUrlPathSegment(cronJob.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String CronJobController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, CronJob.findCronJob(id)); - return "cronjobs/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String CronJobController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - CronJob cronJob = CronJob.findCronJob(id); - cronJob.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/cronjobs"; - } - - void CronJobController.populateEditForm(Model uiModel, CronJob cronJob) { - uiModel.addAttribute("cronJob", cronJob); - } - - String CronJobController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/DDictKindController.java b/src/main/java/com/labsynch/labseer/web/DDictKindController.java deleted file mode 100644 index 1803ac3f0..000000000 --- a/src/main/java/com/labsynch/labseer/web/DDictKindController.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.DDictKind; -import com.labsynch.labseer.domain.DDictType; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/ddictkinds") -@Controller -@RooWebScaffold(path = "ddictkinds", formBackingObject = DDictKind.class) -@RooWebFinder -@RooWebJson(jsonObject = DDictKind.class) -public class DDictKindController { - - void populateEditForm(Model uiModel, DDictKind DDictKind_) { - uiModel.addAttribute("DDictKind_", DDictKind_); - uiModel.addAttribute("ddicttypes", DDictType.findAllDDictTypes()); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller.aj deleted file mode 100644 index a1bfbd7a1..000000000 --- a/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller.aj +++ /dev/null @@ -1,96 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.DDictKind; -import com.labsynch.labseer.web.DDictKindController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect DDictKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String DDictKindController.create(@Valid DDictKind DDictKind_, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, DDictKind_); - return "ddictkinds/create"; - } - uiModel.asMap().clear(); - DDictKind_.persist(); - return "redirect:/ddictkinds/" + encodeUrlPathSegment(DDictKind_.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String DDictKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new DDictKind()); - return "ddictkinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String DDictKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("ddictkind_", DDictKind.findDDictKind(id)); - uiModel.addAttribute("itemId", id); - return "ddictkinds/show"; - } - - @RequestMapping(produces = "text/html") - public String DDictKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("ddictkinds", DDictKind.findDDictKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) DDictKind.countDDictKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("ddictkinds", DDictKind.findAllDDictKinds(sortFieldName, sortOrder)); - } - return "ddictkinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String DDictKindController.update(@Valid DDictKind DDictKind_, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, DDictKind_); - return "ddictkinds/update"; - } - uiModel.asMap().clear(); - DDictKind_.merge(); - return "redirect:/ddictkinds/" + encodeUrlPathSegment(DDictKind_.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String DDictKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, DDictKind.findDDictKind(id)); - return "ddictkinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String DDictKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - DDictKind DDictKind_ = DDictKind.findDDictKind(id); - DDictKind_.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/ddictkinds"; - } - - String DDictKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller_Finder.aj deleted file mode 100644 index 3aadb634d..000000000 --- a/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.DDictKind; -import com.labsynch.labseer.web.DDictKindController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect DDictKindController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLsTypeEqualsAndNameEquals", "form" }, method = RequestMethod.GET) - public String DDictKindController.findDDictKindsByLsTypeEqualsAndNameEqualsForm(Model uiModel) { - return "ddictkinds/findDDictKindsByLsTypeEqualsAndNameEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndNameEquals", method = RequestMethod.GET) - public String DDictKindController.findDDictKindsByLsTypeEqualsAndNameEquals(@RequestParam("lsType") String lsType, @RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("ddictkinds", DDictKind.findDDictKindsByLsTypeEqualsAndNameEquals(lsType, name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) DDictKind.countFindDDictKindsByLsTypeEqualsAndNameEquals(lsType, name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("ddictkinds", DDictKind.findDDictKindsByLsTypeEqualsAndNameEquals(lsType, name, sortFieldName, sortOrder).getResultList()); - } - return "ddictkinds/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller_Json.aj deleted file mode 100644 index cf4edf8d7..000000000 --- a/src/main/java/com/labsynch/labseer/web/DDictKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.DDictKind; -import com.labsynch.labseer.web.DDictKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect DDictKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - DDictKind DDictKind_ = DDictKind.findDDictKind(id); - if (DDictKind_ == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(DDictKind_.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = DDictKind.findAllDDictKinds(); - return new ResponseEntity(DDictKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity DDictKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - DDictKind DDictKind_ = DDictKind.fromJsonToDDictKind(json); - DDictKind_.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+DDictKind_.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity DDictKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (DDictKind DDictKind_: DDictKind.fromJsonArrayToDDictKinds(json)) { - DDictKind_.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity DDictKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - DDictKind DDictKind_ = DDictKind.fromJsonToDDictKind(json); - DDictKind_.setId(id); - if (DDictKind_.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity DDictKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - DDictKind DDictKind_ = DDictKind.findDDictKind(id); - if (DDictKind_ == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - DDictKind_.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictKindController.jsonFindDDictKindsByLsTypeEqualsAndNameEquals(@RequestParam("lsType") String lsType, @RequestParam("name") String name) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(DDictKind.toJsonArray(DDictKind.findDDictKindsByLsTypeEqualsAndNameEquals(lsType, name).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/DDictTypeController.java b/src/main/java/com/labsynch/labseer/web/DDictTypeController.java deleted file mode 100644 index b32b5016c..000000000 --- a/src/main/java/com/labsynch/labseer/web/DDictTypeController.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.DDictType; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/ddicttypes") -@Controller -@RooWebScaffold(path = "ddicttypes", formBackingObject = DDictType.class) -@RooWebFinder -@RooWebJson(jsonObject = DDictType.class) -public class DDictTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller.aj deleted file mode 100644 index 8cc846f09..000000000 --- a/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.DDictType; -import com.labsynch.labseer.web.DDictTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect DDictTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String DDictTypeController.create(@Valid DDictType DDictType_, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, DDictType_); - return "ddicttypes/create"; - } - uiModel.asMap().clear(); - DDictType_.persist(); - return "redirect:/ddicttypes/" + encodeUrlPathSegment(DDictType_.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String DDictTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new DDictType()); - return "ddicttypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String DDictTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("ddicttype_", DDictType.findDDictType(id)); - uiModel.addAttribute("itemId", id); - return "ddicttypes/show"; - } - - @RequestMapping(produces = "text/html") - public String DDictTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("ddicttypes", DDictType.findDDictTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) DDictType.countDDictTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("ddicttypes", DDictType.findAllDDictTypes(sortFieldName, sortOrder)); - } - return "ddicttypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String DDictTypeController.update(@Valid DDictType DDictType_, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, DDictType_); - return "ddicttypes/update"; - } - uiModel.asMap().clear(); - DDictType_.merge(); - return "redirect:/ddicttypes/" + encodeUrlPathSegment(DDictType_.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String DDictTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, DDictType.findDDictType(id)); - return "ddicttypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String DDictTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - DDictType DDictType_ = DDictType.findDDictType(id); - DDictType_.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/ddicttypes"; - } - - void DDictTypeController.populateEditForm(Model uiModel, DDictType DDictType_) { - uiModel.addAttribute("DDictType_", DDictType_); - } - - String DDictTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller_Finder.aj deleted file mode 100644 index 14d947cc5..000000000 --- a/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.DDictType; -import com.labsynch.labseer.web.DDictTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect DDictTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByNameEquals", "form" }, method = RequestMethod.GET) - public String DDictTypeController.findDDictTypesByNameEqualsForm(Model uiModel) { - return "ddicttypes/findDDictTypesByNameEquals"; - } - - @RequestMapping(params = "find=ByNameEquals", method = RequestMethod.GET) - public String DDictTypeController.findDDictTypesByNameEquals(@RequestParam("name") String name, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("ddicttypes", DDictType.findDDictTypesByNameEquals(name, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) DDictType.countFindDDictTypesByNameEquals(name) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("ddicttypes", DDictType.findDDictTypesByNameEquals(name, sortFieldName, sortOrder).getResultList()); - } - return "ddicttypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller_Json.aj deleted file mode 100644 index 3c44b1a62..000000000 --- a/src/main/java/com/labsynch/labseer/web/DDictTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.DDictType; -import com.labsynch.labseer.web.DDictTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect DDictTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - DDictType DDictType_ = DDictType.findDDictType(id); - if (DDictType_ == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(DDictType_.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = DDictType.findAllDDictTypes(); - return new ResponseEntity(DDictType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity DDictTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - DDictType DDictType_ = DDictType.fromJsonToDDictType(json); - DDictType_.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+DDictType_.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity DDictTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (DDictType DDictType_: DDictType.fromJsonArrayToDDictTypes(json)) { - DDictType_.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity DDictTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - DDictType DDictType_ = DDictType.fromJsonToDDictType(json); - DDictType_.setId(id); - if (DDictType_.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity DDictTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - DDictType DDictType_ = DDictType.findDDictType(id); - if (DDictType_ == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - DDictType_.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictTypeController.jsonFindDDictTypesByNameEquals(@RequestParam("name") String name) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(DDictType.toJsonArray(DDictType.findDDictTypesByNameEquals(name).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/DDictValueController.java b/src/main/java/com/labsynch/labseer/web/DDictValueController.java deleted file mode 100644 index de5fa14f8..000000000 --- a/src/main/java/com/labsynch/labseer/web/DDictValueController.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.DDictKind; -import com.labsynch.labseer.domain.DDictType; -import com.labsynch.labseer.domain.DDictValue; -import com.labsynch.labseer.service.AutoLabelService; -import com.labsynch.labseer.service.DataDictionaryService; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -@RequestMapping("/ddictvalues") -@Controller -@RooWebScaffold(path = "ddictvalues", formBackingObject = DDictValue.class) -@RooWebFinder -@RooWebJson(jsonObject = DDictValue.class) -public class DDictValueController { - - void populateEditForm(Model uiModel, DDictValue DDictValue_) { - uiModel.addAttribute("DDictValue_", DDictValue_); - uiModel.addAttribute("ddicttypes", DDictType.findAllDDictTypes()); - uiModel.addAttribute("ddictkinds", DDictKind.findAllDDictKinds()); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller.aj deleted file mode 100644 index 6c3baf3fb..000000000 --- a/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller.aj +++ /dev/null @@ -1,96 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.DDictValue; -import com.labsynch.labseer.web.DDictValueController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect DDictValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String DDictValueController.create(@Valid DDictValue DDictValue_, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, DDictValue_); - return "ddictvalues/create"; - } - uiModel.asMap().clear(); - DDictValue_.persist(); - return "redirect:/ddictvalues/" + encodeUrlPathSegment(DDictValue_.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String DDictValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new DDictValue()); - return "ddictvalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String DDictValueController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("ddictvalue_", DDictValue.findDDictValue(id)); - uiModel.addAttribute("itemId", id); - return "ddictvalues/show"; - } - - @RequestMapping(produces = "text/html") - public String DDictValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) DDictValue.countDDictValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("ddictvalues", DDictValue.findAllDDictValues(sortFieldName, sortOrder)); - } - return "ddictvalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String DDictValueController.update(@Valid DDictValue DDictValue_, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, DDictValue_); - return "ddictvalues/update"; - } - uiModel.asMap().clear(); - DDictValue_.merge(); - return "redirect:/ddictvalues/" + encodeUrlPathSegment(DDictValue_.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String DDictValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, DDictValue.findDDictValue(id)); - return "ddictvalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String DDictValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - DDictValue DDictValue_ = DDictValue.findDDictValue(id); - DDictValue_.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/ddictvalues"; - } - - String DDictValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller_Finder.aj deleted file mode 100644 index 245269d10..000000000 --- a/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,148 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.DDictValue; -import com.labsynch.labseer.web.DDictValueController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect DDictValueController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeNameEquals", "form" }, method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByCodeNameEqualsForm(Model uiModel) { - return "ddictvalues/findDDictValuesByCodeNameEquals"; - } - - @RequestMapping(params = "find=ByCodeNameEquals", method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByCodeNameEquals(@RequestParam("codeName") String codeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByCodeNameEquals(codeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) DDictValue.countFindDDictValuesByCodeNameEquals(codeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByCodeNameEquals(codeName, sortFieldName, sortOrder).getResultList()); - } - return "ddictvalues/list"; - } - - @RequestMapping(params = { "find=ByIgnoredNot", "form" }, method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByIgnoredNotForm(Model uiModel) { - return "ddictvalues/findDDictValuesByIgnoredNot"; - } - - @RequestMapping(params = "find=ByIgnoredNot", method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByIgnoredNot(@RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByIgnoredNot(ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) DDictValue.countFindDDictValuesByIgnoredNot(ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByIgnoredNot(ignored, sortFieldName, sortOrder).getResultList()); - } - return "ddictvalues/list"; - } - - @RequestMapping(params = { "find=ByLabelTextLike", "form" }, method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByLabelTextLikeForm(Model uiModel) { - return "ddictvalues/findDDictValuesByLabelTextLike"; - } - - @RequestMapping(params = "find=ByLabelTextLike", method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByLabelTextLike(@RequestParam("labelText") String labelText, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByLabelTextLike(labelText, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) DDictValue.countFindDDictValuesByLabelTextLike(labelText) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByLabelTextLike(labelText, sortFieldName, sortOrder).getResultList()); - } - return "ddictvalues/list"; - } - - @RequestMapping(params = { "find=ByLsKindEquals", "form" }, method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByLsKindEqualsForm(Model uiModel) { - return "ddictvalues/findDDictValuesByLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsKindEquals", method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByLsKindEquals(@RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByLsKindEquals(lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) DDictValue.countFindDDictValuesByLsKindEquals(lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByLsKindEquals(lsKind, sortFieldName, sortOrder).getResultList()); - } - return "ddictvalues/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEquals", "form" }, method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByLsTypeEqualsForm(Model uiModel) { - return "ddictvalues/findDDictValuesByLsTypeEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEquals", method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByLsTypeEquals(@RequestParam("lsType") String lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByLsTypeEquals(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) DDictValue.countFindDDictValuesByLsTypeEquals(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByLsTypeEquals(lsType, sortFieldName, sortOrder).getResultList()); - } - return "ddictvalues/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - return "ddictvalues/findDDictValuesByLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) DDictValue.countFindDDictValuesByLsTypeEqualsAndLsKindEquals(lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - return "ddictvalues/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLsKindEqualsAndShortNameEquals", "form" }, method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByLsTypeEqualsAndLsKindEqualsAndShortNameEqualsForm(Model uiModel) { - return "ddictvalues/findDDictValuesByLsTypeEqualsAndLsKindEqualsAndShortNameEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEqualsAndShortNameEquals", method = RequestMethod.GET) - public String DDictValueController.findDDictValuesByLsTypeEqualsAndLsKindEqualsAndShortNameEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam("shortName") String shortName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByLsTypeEqualsAndLsKindEqualsAndShortNameEquals(lsType, lsKind, shortName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) DDictValue.countFindDDictValuesByLsTypeEqualsAndLsKindEqualsAndShortNameEquals(lsType, lsKind, shortName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("ddictvalues", DDictValue.findDDictValuesByLsTypeEqualsAndLsKindEqualsAndShortNameEquals(lsType, lsKind, shortName, sortFieldName, sortOrder).getResultList()); - } - return "ddictvalues/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller_Json.aj deleted file mode 100644 index b7edcb984..000000000 --- a/src/main/java/com/labsynch/labseer/web/DDictValueController_Roo_Controller_Json.aj +++ /dev/null @@ -1,196 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.DDictValue; -import com.labsynch.labseer.web.DDictValueController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect DDictValueController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictValueController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - DDictValue DDictValue_ = DDictValue.findDDictValue(id); - if (DDictValue_ == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(DDictValue_.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictValueController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = DDictValue.findAllDDictValues(); - return new ResponseEntity(DDictValue.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity DDictValueController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - DDictValue DDictValue_ = DDictValue.fromJsonToDDictValue(json); - DDictValue_.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+DDictValue_.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity DDictValueController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (DDictValue DDictValue_: DDictValue.fromJsonArrayToDDictValues(json)) { - DDictValue_.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity DDictValueController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - DDictValue DDictValue_ = DDictValue.fromJsonToDDictValue(json); - DDictValue_.setId(id); - if (DDictValue_.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity DDictValueController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - DDictValue DDictValue_ = DDictValue.findDDictValue(id); - if (DDictValue_ == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - DDictValue_.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictValueController.jsonFindDDictValuesByCodeNameEquals(@RequestParam("codeName") String codeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(DDictValue.toJsonArray(DDictValue.findDDictValuesByCodeNameEquals(codeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictValueController.jsonFindDDictValuesByIgnoredNot(@RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(DDictValue.toJsonArray(DDictValue.findDDictValuesByIgnoredNot(ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLabelTextLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictValueController.jsonFindDDictValuesByLabelTextLike(@RequestParam("labelText") String labelText) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(DDictValue.toJsonArray(DDictValue.findDDictValuesByLabelTextLike(labelText).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictValueController.jsonFindDDictValuesByLsKindEquals(@RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(DDictValue.toJsonArray(DDictValue.findDDictValuesByLsKindEquals(lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictValueController.jsonFindDDictValuesByLsTypeEquals(@RequestParam("lsType") String lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(DDictValue.toJsonArray(DDictValue.findDDictValuesByLsTypeEquals(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictValueController.jsonFindDDictValuesByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(DDictValue.toJsonArray(DDictValue.findDDictValuesByLsTypeEqualsAndLsKindEquals(lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEqualsAndShortNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity DDictValueController.jsonFindDDictValuesByLsTypeEqualsAndLsKindEqualsAndShortNameEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam("shortName") String shortName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(DDictValue.toJsonArray(DDictValue.findDDictValuesByLsTypeEqualsAndLsKindEqualsAndShortNameEquals(lsType, lsKind, shortName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/DoseReponseParamsDTOController.java b/src/main/java/com/labsynch/labseer/web/DoseReponseParamsDTOController.java deleted file mode 100755 index f8e723db0..000000000 --- a/src/main/java/com/labsynch/labseer/web/DoseReponseParamsDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.DoseReponseParamsDTO; - -@RooWebJson(jsonObject = DoseReponseParamsDTO.class) -@Controller -@RequestMapping("/doserepoes") -public class DoseReponseParamsDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/EntrezDbGeneDTOController.java b/src/main/java/com/labsynch/labseer/web/EntrezDbGeneDTOController.java deleted file mode 100755 index 682b09868..000000000 --- a/src/main/java/com/labsynch/labseer/web/EntrezDbGeneDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.EntrezDbGeneDTO; - -@RooWebJson(jsonObject = EntrezDbGeneDTO.class) -@Controller -@RequestMapping("/entrezdbgenedto") -public class EntrezDbGeneDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ErrorMessageController.java b/src/main/java/com/labsynch/labseer/web/ErrorMessageController.java deleted file mode 100755 index 3a76cb5d9..000000000 --- a/src/main/java/com/labsynch/labseer/web/ErrorMessageController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.exceptions.ErrorMessage; - -@RooWebJson(jsonObject = ErrorMessage.class) -@Controller -@RequestMapping("/errormessages") -public class ErrorMessageController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ErrorMessageDTOController.java b/src/main/java/com/labsynch/labseer/web/ErrorMessageDTOController.java deleted file mode 100755 index f22e12d0f..000000000 --- a/src/main/java/com/labsynch/labseer/web/ErrorMessageDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.ErrorMessageDTO; - -@RooWebJson(jsonObject = ErrorMessageDTO.class) -@Controller -@RequestMapping("/erroes") -public class ErrorMessageDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentController.java b/src/main/java/com/labsynch/labseer/web/ExperimentController.java deleted file mode 100755 index f04a9fc29..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentController.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.AnalysisGroupLabel; -import com.labsynch.labseer.domain.AnalysisGroupState; -import com.labsynch.labseer.domain.AnalysisGroupValue; -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ItxSubjectContainer; -import com.labsynch.labseer.domain.ItxSubjectContainerState; -import com.labsynch.labseer.domain.ItxSubjectContainerValue; -import com.labsynch.labseer.domain.LsTag; -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.SubjectLabel; -import com.labsynch.labseer.domain.SubjectState; -import com.labsynch.labseer.domain.SubjectValue; -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.domain.TreatmentGroupLabel; -import com.labsynch.labseer.domain.TreatmentGroupState; -import com.labsynch.labseer.domain.TreatmentGroupValue; -import com.labsynch.labseer.dto.AnalysisGroupValueDTO; -import com.labsynch.labseer.dto.BatchCodeDTO; -import com.labsynch.labseer.dto.ExperimentFilterDTO; -import com.labsynch.labseer.dto.ExperimentFilterSearchDTO; -import com.labsynch.labseer.dto.ExperimentSearchRequestDTO; -import com.labsynch.labseer.dto.JSTreeNodeDTO; -import com.labsynch.labseer.exceptions.ErrorMessage; -import com.labsynch.labseer.exceptions.UniqueNameException; -import com.labsynch.labseer.service.ExperimentService; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONDeserializer; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.StringReader; -import java.io.StringWriter; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.io.IOUtils; -import org.joda.time.format.DateTimeFormat; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.servlet.HandlerMapping; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; -import org.supercsv.cellprocessor.ift.CellProcessor; -import org.supercsv.io.CsvBeanWriter; -import org.supercsv.io.ICsvBeanWriter; -import org.supercsv.prefs.CsvPreference; - -@Controller -@RequestMapping("/experiments") -@RooWebScaffold(path = "experiments", formBackingObject = Experiment.class) -@RooWebFinder -@Transactional -@RooWebJson(jsonObject = Experiment.class) -public class ExperimentController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller.aj deleted file mode 100644 index 983889a9f..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller.aj +++ /dev/null @@ -1,131 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ExperimentLabel; -import com.labsynch.labseer.domain.ExperimentState; -import com.labsynch.labseer.domain.ItxExperimentExperiment; -import com.labsynch.labseer.domain.LsTag; -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.ExperimentController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ExperimentController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ExperimentController.create(@Valid Experiment experiment, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, experiment); - return "experiments/create"; - } - uiModel.asMap().clear(); - experiment.persist(); - return "redirect:/experiments/" + encodeUrlPathSegment(experiment.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ExperimentController.createForm(Model uiModel) { - populateEditForm(uiModel, new Experiment()); - List dependencies = new ArrayList(); - if (Protocol.countProtocols() == 0) { - dependencies.add(new String[] { "protocol", "protocols" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "experiments/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ExperimentController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("experiment", Experiment.findExperiment(id)); - uiModel.addAttribute("itemId", id); - return "experiments/show"; - } - - @RequestMapping(produces = "text/html") - public String ExperimentController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experiments", Experiment.findExperimentEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) Experiment.countExperiments() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experiments", Experiment.findAllExperiments(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "experiments/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ExperimentController.update(@Valid Experiment experiment, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, experiment); - return "experiments/update"; - } - uiModel.asMap().clear(); - experiment.merge(); - return "redirect:/experiments/" + encodeUrlPathSegment(experiment.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ExperimentController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, Experiment.findExperiment(id)); - return "experiments/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ExperimentController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - Experiment experiment = Experiment.findExperiment(id); - experiment.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/experiments"; - } - - void ExperimentController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("experiment_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("experiment_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ExperimentController.populateEditForm(Model uiModel, Experiment experiment) { - uiModel.addAttribute("experiment", experiment); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAllAnalysisGroups()); - uiModel.addAttribute("experimentlabels", ExperimentLabel.findAllExperimentLabels()); - uiModel.addAttribute("experimentstates", ExperimentState.findAllExperimentStates()); - uiModel.addAttribute("itxexperimentexperiments", ItxExperimentExperiment.findAllItxExperimentExperiments()); - uiModel.addAttribute("lstags", LsTag.findAllLsTags()); - uiModel.addAttribute("protocols", Protocol.findAllProtocols()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - } - - String ExperimentController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller_Finder.aj deleted file mode 100644 index 6ef4c67f5..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,217 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.web.ExperimentController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ExperimentController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeNameEquals", "form" }, method = RequestMethod.GET) - public String ExperimentController.findExperimentsByCodeNameEqualsForm(Model uiModel) { - return "experiments/findExperimentsByCodeNameEquals"; - } - - @RequestMapping(params = "find=ByCodeNameEquals", method = RequestMethod.GET) - public String ExperimentController.findExperimentsByCodeNameEquals(@RequestParam("codeName") String codeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experiments", Experiment.findExperimentsByCodeNameEquals(codeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Experiment.countFindExperimentsByCodeNameEquals(codeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experiments", Experiment.findExperimentsByCodeNameEquals(codeName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experiments/list"; - } - - @RequestMapping(params = { "find=ByCodeNameLike", "form" }, method = RequestMethod.GET) - public String ExperimentController.findExperimentsByCodeNameLikeForm(Model uiModel) { - return "experiments/findExperimentsByCodeNameLike"; - } - - @RequestMapping(params = "find=ByCodeNameLike", method = RequestMethod.GET) - public String ExperimentController.findExperimentsByCodeNameLike(@RequestParam("codeName") String codeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experiments", Experiment.findExperimentsByCodeNameLike(codeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Experiment.countFindExperimentsByCodeNameLike(codeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experiments", Experiment.findExperimentsByCodeNameLike(codeName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experiments/list"; - } - - @RequestMapping(params = { "find=ByLsKindEquals", "form" }, method = RequestMethod.GET) - public String ExperimentController.findExperimentsByLsKindEqualsForm(Model uiModel) { - return "experiments/findExperimentsByLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsKindEquals", method = RequestMethod.GET) - public String ExperimentController.findExperimentsByLsKindEquals(@RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experiments", Experiment.findExperimentsByLsKindEquals(lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Experiment.countFindExperimentsByLsKindEquals(lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experiments", Experiment.findExperimentsByLsKindEquals(lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experiments/list"; - } - - @RequestMapping(params = { "find=ByLsKindLike", "form" }, method = RequestMethod.GET) - public String ExperimentController.findExperimentsByLsKindLikeForm(Model uiModel) { - return "experiments/findExperimentsByLsKindLike"; - } - - @RequestMapping(params = "find=ByLsKindLike", method = RequestMethod.GET) - public String ExperimentController.findExperimentsByLsKindLike(@RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experiments", Experiment.findExperimentsByLsKindLike(lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Experiment.countFindExperimentsByLsKindLike(lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experiments", Experiment.findExperimentsByLsKindLike(lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experiments/list"; - } - - @RequestMapping(params = { "find=ByLsTransaction", "form" }, method = RequestMethod.GET) - public String ExperimentController.findExperimentsByLsTransactionForm(Model uiModel) { - return "experiments/findExperimentsByLsTransaction"; - } - - @RequestMapping(params = "find=ByLsTransaction", method = RequestMethod.GET) - public String ExperimentController.findExperimentsByLsTransaction(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experiments", Experiment.findExperimentsByLsTransaction(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Experiment.countFindExperimentsByLsTransaction(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experiments", Experiment.findExperimentsByLsTransaction(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experiments/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEquals", "form" }, method = RequestMethod.GET) - public String ExperimentController.findExperimentsByLsTypeEqualsForm(Model uiModel) { - return "experiments/findExperimentsByLsTypeEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEquals", method = RequestMethod.GET) - public String ExperimentController.findExperimentsByLsTypeEquals(@RequestParam("lsType") String lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experiments", Experiment.findExperimentsByLsTypeEquals(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Experiment.countFindExperimentsByLsTypeEquals(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experiments", Experiment.findExperimentsByLsTypeEquals(lsType, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experiments/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String ExperimentController.findExperimentsByLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - return "experiments/findExperimentsByLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String ExperimentController.findExperimentsByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experiments", Experiment.findExperimentsByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Experiment.countFindExperimentsByLsTypeEqualsAndLsKindEquals(lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experiments", Experiment.findExperimentsByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experiments/list"; - } - - @RequestMapping(params = { "find=ByLsTypeLike", "form" }, method = RequestMethod.GET) - public String ExperimentController.findExperimentsByLsTypeLikeForm(Model uiModel) { - return "experiments/findExperimentsByLsTypeLike"; - } - - @RequestMapping(params = "find=ByLsTypeLike", method = RequestMethod.GET) - public String ExperimentController.findExperimentsByLsTypeLike(@RequestParam("lsType") String lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experiments", Experiment.findExperimentsByLsTypeLike(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Experiment.countFindExperimentsByLsTypeLike(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experiments", Experiment.findExperimentsByLsTypeLike(lsType, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experiments/list"; - } - - @RequestMapping(params = { "find=ByProtocol", "form" }, method = RequestMethod.GET) - public String ExperimentController.findExperimentsByProtocolForm(Model uiModel) { - uiModel.addAttribute("protocols", Protocol.findAllProtocols()); - return "experiments/findExperimentsByProtocol"; - } - - @RequestMapping(params = "find=ByProtocol", method = RequestMethod.GET) - public String ExperimentController.findExperimentsByProtocol(@RequestParam("protocol") Protocol protocol, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experiments", Experiment.findExperimentsByProtocol(protocol, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Experiment.countFindExperimentsByProtocol(protocol) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experiments", Experiment.findExperimentsByProtocol(protocol, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experiments/list"; - } - - @RequestMapping(params = { "find=ByRecordedByLike", "form" }, method = RequestMethod.GET) - public String ExperimentController.findExperimentsByRecordedByLikeForm(Model uiModel) { - return "experiments/findExperimentsByRecordedByLike"; - } - - @RequestMapping(params = "find=ByRecordedByLike", method = RequestMethod.GET) - public String ExperimentController.findExperimentsByRecordedByLike(@RequestParam("recordedBy") String recordedBy, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experiments", Experiment.findExperimentsByRecordedByLike(recordedBy, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Experiment.countFindExperimentsByRecordedByLike(recordedBy) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experiments", Experiment.findExperimentsByRecordedByLike(recordedBy, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experiments/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller_Json.aj deleted file mode 100755 index c568e81a8..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentController_Roo_Controller_Json.aj +++ /dev/null @@ -1,233 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.web.ExperimentController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ExperimentController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - Experiment experiment = Experiment.findExperiment(id); - if (experiment == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(experiment.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = Experiment.findAllExperiments(); - return new ResponseEntity(Experiment.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ExperimentController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Experiment experiment = Experiment.fromJsonToExperiment(json); - experiment.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+experiment.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ExperimentController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (Experiment experiment: Experiment.fromJsonArrayToExperiments(json)) { - experiment.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ExperimentController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Experiment experiment = Experiment.fromJsonToExperiment(json); - experiment.setId(id); - if (experiment.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ExperimentController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Experiment experiment = Experiment.findExperiment(id); - if (experiment == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - experiment.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentController.jsonFindExperimentsByCodeNameEquals(@RequestParam("codeName") String codeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Experiment.toJsonArray(Experiment.findExperimentsByCodeNameEquals(codeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeNameLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentController.jsonFindExperimentsByCodeNameLike(@RequestParam("codeName") String codeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Experiment.toJsonArray(Experiment.findExperimentsByCodeNameLike(codeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentController.jsonFindExperimentsByLsKindEquals(@RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Experiment.toJsonArray(Experiment.findExperimentsByLsKindEquals(lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentController.jsonFindExperimentsByLsKindLike(@RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Experiment.toJsonArray(Experiment.findExperimentsByLsKindLike(lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransaction", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentController.jsonFindExperimentsByLsTransaction(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Experiment.toJsonArray(Experiment.findExperimentsByLsTransaction(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentController.jsonFindExperimentsByLsTypeEquals(@RequestParam("lsType") String lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Experiment.toJsonArray(Experiment.findExperimentsByLsTypeEquals(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentController.jsonFindExperimentsByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Experiment.toJsonArray(Experiment.findExperimentsByLsTypeEqualsAndLsKindEquals(lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentController.jsonFindExperimentsByLsTypeLike(@RequestParam("lsType") String lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Experiment.toJsonArray(Experiment.findExperimentsByLsTypeLike(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByProtocol", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentController.jsonFindExperimentsByProtocol(@RequestParam("protocol") Protocol protocol) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Experiment.toJsonArray(Experiment.findExperimentsByProtocol(protocol).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByRecordedByLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentController.jsonFindExperimentsByRecordedByLike(@RequestParam("recordedBy") String recordedBy) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Experiment.toJsonArray(Experiment.findExperimentsByRecordedByLike(recordedBy).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentFilterDTOController.java b/src/main/java/com/labsynch/labseer/web/ExperimentFilterDTOController.java deleted file mode 100755 index 3916c7daa..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentFilterDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.ExperimentFilterDTO; - -@RooWebJson(jsonObject = ExperimentFilterDTO.class) -@Controller -@RequestMapping("/experimentfilterdto") -public class ExperimentFilterDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentFilterSearchDTOController.java b/src/main/java/com/labsynch/labseer/web/ExperimentFilterSearchDTOController.java deleted file mode 100755 index 26d836a72..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentFilterSearchDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.ExperimentFilterSearchDTO; - -@RooWebJson(jsonObject = ExperimentFilterSearchDTO.class) -@Controller -@RequestMapping("/experimentfiltersearchdto") -public class ExperimentFilterSearchDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentGuiStubDTOController.java b/src/main/java/com/labsynch/labseer/web/ExperimentGuiStubDTOController.java deleted file mode 100644 index 21aa6e873..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentGuiStubDTOController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.dto.ExperimentGuiStubDTO; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RooWebJson(jsonObject = ExperimentGuiStubDTO.class) -@Controller -@RequestMapping("/experimentguistubdto") -public class ExperimentGuiStubDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentKindController.java b/src/main/java/com/labsynch/labseer/web/ExperimentKindController.java deleted file mode 100755 index 372bcb661..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentKindController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ExperimentKind; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RequestMapping("/experimentkinds") -@Controller -@RooWebScaffold(path = "experimentkinds", formBackingObject = ExperimentKind.class) -@RooWebJson(jsonObject = ExperimentKind.class) -public class ExperimentKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ExperimentKindController_Roo_Controller.aj deleted file mode 100755 index 388df21ee..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ExperimentKind; -import com.labsynch.labseer.domain.ExperimentType; -import com.labsynch.labseer.web.ExperimentKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ExperimentKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ExperimentKindController.create(@Valid ExperimentKind experimentKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, experimentKind); - return "experimentkinds/create"; - } - uiModel.asMap().clear(); - experimentKind.persist(); - return "redirect:/experimentkinds/" + encodeUrlPathSegment(experimentKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ExperimentKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new ExperimentKind()); - List dependencies = new ArrayList(); - if (ExperimentType.countExperimentTypes() == 0) { - dependencies.add(new String[] { "lsType", "experimenttypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "experimentkinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ExperimentKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("experimentkind", ExperimentKind.findExperimentKind(id)); - uiModel.addAttribute("itemId", id); - return "experimentkinds/show"; - } - - @RequestMapping(produces = "text/html") - public String ExperimentKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentkinds", ExperimentKind.findExperimentKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ExperimentKind.countExperimentKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentkinds", ExperimentKind.findAllExperimentKinds(sortFieldName, sortOrder)); - } - return "experimentkinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ExperimentKindController.update(@Valid ExperimentKind experimentKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, experimentKind); - return "experimentkinds/update"; - } - uiModel.asMap().clear(); - experimentKind.merge(); - return "redirect:/experimentkinds/" + encodeUrlPathSegment(experimentKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ExperimentKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ExperimentKind.findExperimentKind(id)); - return "experimentkinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ExperimentKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ExperimentKind experimentKind = ExperimentKind.findExperimentKind(id); - experimentKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/experimentkinds"; - } - - void ExperimentKindController.populateEditForm(Model uiModel, ExperimentKind experimentKind) { - uiModel.addAttribute("experimentKind", experimentKind); - uiModel.addAttribute("experimenttypes", ExperimentType.findAllExperimentTypes()); - } - - String ExperimentKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ExperimentKindController_Roo_Controller_Json.aj deleted file mode 100644 index 2e301722a..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,125 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ExperimentKind; -import com.labsynch.labseer.domain.ExperimentType; -import com.labsynch.labseer.web.ExperimentKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ExperimentKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ExperimentKind experimentKind = ExperimentKind.findExperimentKind(id); - if (experimentKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(experimentKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ExperimentKind.findAllExperimentKinds(); - return new ResponseEntity(ExperimentKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ExperimentKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentKind experimentKind = ExperimentKind.fromJsonToExperimentKind(json); - experimentKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+experimentKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ExperimentKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ExperimentKind experimentKind: ExperimentKind.fromJsonArrayToExperimentKinds(json)) { - experimentKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ExperimentKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentKind experimentKind = ExperimentKind.fromJsonToExperimentKind(json); - experimentKind.setId(id); - if (experimentKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ExperimentKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentKind experimentKind = ExperimentKind.findExperimentKind(id); - if (experimentKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - experimentKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndKindNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentKindController.jsonFindExperimentKindsByLsTypeEqualsAndKindNameEquals(@RequestParam("lsType") ExperimentType lsType, @RequestParam("kindName") String kindName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ExperimentKind.toJsonArray(ExperimentKind.findExperimentKindsByLsTypeEqualsAndKindNameEquals(lsType, kindName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentLabelController.java b/src/main/java/com/labsynch/labseer/web/ExperimentLabelController.java deleted file mode 100755 index 4377ccc62..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentLabelController.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ExperimentLabel; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ExperimentLabel.class) -@Controller -@RequestMapping("/experimentlabels") -@RooWebScaffold(path = "experimentlabels", formBackingObject = ExperimentLabel.class) -@RooWebFinder -public class ExperimentLabelController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller.aj deleted file mode 100755 index 95b2d6f52..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller.aj +++ /dev/null @@ -1,119 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ExperimentLabel; -import com.labsynch.labseer.web.ExperimentLabelController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ExperimentLabelController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ExperimentLabelController.create(@Valid ExperimentLabel experimentLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, experimentLabel); - return "experimentlabels/create"; - } - uiModel.asMap().clear(); - experimentLabel.persist(); - return "redirect:/experimentlabels/" + encodeUrlPathSegment(experimentLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ExperimentLabelController.createForm(Model uiModel) { - populateEditForm(uiModel, new ExperimentLabel()); - List dependencies = new ArrayList(); - if (Experiment.countExperiments() == 0) { - dependencies.add(new String[] { "experiment", "experiments" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "experimentlabels/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ExperimentLabelController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("experimentlabel", ExperimentLabel.findExperimentLabel(id)); - uiModel.addAttribute("itemId", id); - return "experimentlabels/show"; - } - - @RequestMapping(produces = "text/html") - public String ExperimentLabelController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentlabels", ExperimentLabel.findExperimentLabelEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ExperimentLabel.countExperimentLabels() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentlabels", ExperimentLabel.findAllExperimentLabels(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "experimentlabels/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ExperimentLabelController.update(@Valid ExperimentLabel experimentLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, experimentLabel); - return "experimentlabels/update"; - } - uiModel.asMap().clear(); - experimentLabel.merge(); - return "redirect:/experimentlabels/" + encodeUrlPathSegment(experimentLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ExperimentLabelController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ExperimentLabel.findExperimentLabel(id)); - return "experimentlabels/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ExperimentLabelController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ExperimentLabel experimentLabel = ExperimentLabel.findExperimentLabel(id); - experimentLabel.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/experimentlabels"; - } - - void ExperimentLabelController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("experimentLabel_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("experimentLabel_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ExperimentLabelController.populateEditForm(Model uiModel, ExperimentLabel experimentLabel) { - uiModel.addAttribute("experimentLabel", experimentLabel); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - } - - String ExperimentLabelController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller_Finder.aj deleted file mode 100755 index f91f70bce..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,118 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ExperimentLabel; -import com.labsynch.labseer.web.ExperimentLabelController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ExperimentLabelController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByExperiment", "form" }, method = RequestMethod.GET) - public String ExperimentLabelController.findExperimentLabelsByExperimentForm(Model uiModel) { - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - return "experimentlabels/findExperimentLabelsByExperiment"; - } - - @RequestMapping(params = "find=ByExperiment", method = RequestMethod.GET) - public String ExperimentLabelController.findExperimentLabelsByExperiment(@RequestParam("experiment") Experiment experiment, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentlabels", ExperimentLabel.findExperimentLabelsByExperiment(experiment, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ExperimentLabel.countFindExperimentLabelsByExperiment(experiment) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentlabels", ExperimentLabel.findExperimentLabelsByExperiment(experiment, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experimentlabels/list"; - } - - @RequestMapping(params = { "find=ByExperimentAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String ExperimentLabelController.findExperimentLabelsByExperimentAndIgnoredNotForm(Model uiModel) { - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - return "experimentlabels/findExperimentLabelsByExperimentAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByExperimentAndIgnoredNot", method = RequestMethod.GET) - public String ExperimentLabelController.findExperimentLabelsByExperimentAndIgnoredNot(@RequestParam("experiment") Experiment experiment, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentlabels", ExperimentLabel.findExperimentLabelsByExperimentAndIgnoredNot(experiment, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ExperimentLabel.countFindExperimentLabelsByExperimentAndIgnoredNot(experiment, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentlabels", ExperimentLabel.findExperimentLabelsByExperimentAndIgnoredNot(experiment, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experimentlabels/list"; - } - - @RequestMapping(params = { "find=ByLabelTextLike", "form" }, method = RequestMethod.GET) - public String ExperimentLabelController.findExperimentLabelsByLabelTextLikeForm(Model uiModel) { - return "experimentlabels/findExperimentLabelsByLabelTextLike"; - } - - @RequestMapping(params = "find=ByLabelTextLike", method = RequestMethod.GET) - public String ExperimentLabelController.findExperimentLabelsByLabelTextLike(@RequestParam("labelText") String labelText, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentlabels", ExperimentLabel.findExperimentLabelsByLabelTextLike(labelText, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ExperimentLabel.countFindExperimentLabelsByLabelTextLike(labelText) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentlabels", ExperimentLabel.findExperimentLabelsByLabelTextLike(labelText, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experimentlabels/list"; - } - - @RequestMapping(params = { "find=ByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String ExperimentLabelController.findExperimentLabelsByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNotForm(Model uiModel) { - return "experimentlabels/findExperimentLabelsByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot", method = RequestMethod.GET) - public String ExperimentLabelController.findExperimentLabelsByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot(@RequestParam("labelText") String labelText, @RequestParam("lsTypeAndKind") String lsTypeAndKind, @RequestParam(value = "preferred", required = false) boolean preferred, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentlabels", ExperimentLabel.findExperimentLabelsByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot(labelText, lsTypeAndKind, preferred, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ExperimentLabel.countFindExperimentLabelsByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot(labelText, lsTypeAndKind, preferred, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentlabels", ExperimentLabel.findExperimentLabelsByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot(labelText, lsTypeAndKind, preferred, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experimentlabels/list"; - } - - @RequestMapping(params = { "find=ByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String ExperimentLabelController.findExperimentLabelsByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNotForm(Model uiModel) { - return "experimentlabels/findExperimentLabelsByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot", method = RequestMethod.GET) - public String ExperimentLabelController.findExperimentLabelsByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot(@RequestParam("lsTypeAndKind") String lsTypeAndKind, @RequestParam(value = "preferred", required = false) boolean preferred, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentlabels", ExperimentLabel.findExperimentLabelsByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot(lsTypeAndKind, preferred, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ExperimentLabel.countFindExperimentLabelsByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot(lsTypeAndKind, preferred, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentlabels", ExperimentLabel.findExperimentLabelsByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot(lsTypeAndKind, preferred, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experimentlabels/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller_Json.aj deleted file mode 100755 index c85830bf2..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentLabelController_Roo_Controller_Json.aj +++ /dev/null @@ -1,173 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ExperimentLabel; -import com.labsynch.labseer.web.ExperimentLabelController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ExperimentLabelController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentLabelController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ExperimentLabel experimentLabel = ExperimentLabel.findExperimentLabel(id); - if (experimentLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(experimentLabel.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentLabelController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ExperimentLabel.findAllExperimentLabels(); - return new ResponseEntity(ExperimentLabel.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ExperimentLabelController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentLabel experimentLabel = ExperimentLabel.fromJsonToExperimentLabel(json); - experimentLabel.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+experimentLabel.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ExperimentLabelController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ExperimentLabel experimentLabel: ExperimentLabel.fromJsonArrayToExperimentLabels(json)) { - experimentLabel.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ExperimentLabelController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentLabel experimentLabel = ExperimentLabel.fromJsonToExperimentLabel(json); - experimentLabel.setId(id); - if (experimentLabel.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ExperimentLabelController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentLabel experimentLabel = ExperimentLabel.findExperimentLabel(id); - if (experimentLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - experimentLabel.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByExperiment", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentLabelController.jsonFindExperimentLabelsByExperiment(@RequestParam("experiment") Experiment experiment) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ExperimentLabel.toJsonArray(ExperimentLabel.findExperimentLabelsByExperiment(experiment).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByExperimentAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentLabelController.jsonFindExperimentLabelsByExperimentAndIgnoredNot(@RequestParam("experiment") Experiment experiment, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ExperimentLabel.toJsonArray(ExperimentLabel.findExperimentLabelsByExperimentAndIgnoredNot(experiment, ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLabelTextLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentLabelController.jsonFindExperimentLabelsByLabelTextLike(@RequestParam("labelText") String labelText) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ExperimentLabel.toJsonArray(ExperimentLabel.findExperimentLabelsByLabelTextLike(labelText).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentLabelController.jsonFindExperimentLabelsByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot(@RequestParam("labelText") String labelText, @RequestParam("lsTypeAndKind") String lsTypeAndKind, @RequestParam(value = "preferred", required = false) boolean preferred, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ExperimentLabel.toJsonArray(ExperimentLabel.findExperimentLabelsByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot(labelText, lsTypeAndKind, preferred, ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentLabelController.jsonFindExperimentLabelsByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot(@RequestParam("lsTypeAndKind") String lsTypeAndKind, @RequestParam(value = "preferred", required = false) boolean preferred, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ExperimentLabel.toJsonArray(ExperimentLabel.findExperimentLabelsByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot(lsTypeAndKind, preferred, ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentSearchRequestDTOController.java b/src/main/java/com/labsynch/labseer/web/ExperimentSearchRequestDTOController.java deleted file mode 100755 index 9431b39b8..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentSearchRequestDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.ExperimentSearchRequestDTO; - -@RooWebJson(jsonObject = ExperimentSearchRequestDTO.class) -@Controller -@RequestMapping("/experimentsearchrequestdto") -public class ExperimentSearchRequestDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentStateController.java b/src/main/java/com/labsynch/labseer/web/ExperimentStateController.java deleted file mode 100755 index e1c81fbd5..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentStateController.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ExperimentState; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ExperimentState.class) -@Controller -@RequestMapping("/experimentstates") -@RooWebScaffold(path = "experimentstates", formBackingObject = ExperimentState.class) -@RooWebFinder -@Transactional -public class ExperimentStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller.aj deleted file mode 100755 index b019e4ba9..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller.aj +++ /dev/null @@ -1,121 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ExperimentState; -import com.labsynch.labseer.domain.ExperimentValue; -import com.labsynch.labseer.web.ExperimentStateController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ExperimentStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ExperimentStateController.create(@Valid ExperimentState experimentState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, experimentState); - return "experimentstates/create"; - } - uiModel.asMap().clear(); - experimentState.persist(); - return "redirect:/experimentstates/" + encodeUrlPathSegment(experimentState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ExperimentStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new ExperimentState()); - List dependencies = new ArrayList(); - if (Experiment.countExperiments() == 0) { - dependencies.add(new String[] { "experiment", "experiments" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "experimentstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ExperimentStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("experimentstate", ExperimentState.findExperimentState(id)); - uiModel.addAttribute("itemId", id); - return "experimentstates/show"; - } - - @RequestMapping(produces = "text/html") - public String ExperimentStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentstates", ExperimentState.findExperimentStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ExperimentState.countExperimentStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentstates", ExperimentState.findAllExperimentStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "experimentstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ExperimentStateController.update(@Valid ExperimentState experimentState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, experimentState); - return "experimentstates/update"; - } - uiModel.asMap().clear(); - experimentState.merge(); - return "redirect:/experimentstates/" + encodeUrlPathSegment(experimentState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ExperimentStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ExperimentState.findExperimentState(id)); - return "experimentstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ExperimentStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ExperimentState experimentState = ExperimentState.findExperimentState(id); - experimentState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/experimentstates"; - } - - void ExperimentStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("experimentState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("experimentState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ExperimentStateController.populateEditForm(Model uiModel, ExperimentState experimentState) { - uiModel.addAttribute("experimentState", experimentState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - uiModel.addAttribute("experimentvalues", ExperimentValue.findAllExperimentValues()); - } - - String ExperimentStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller_Finder.aj deleted file mode 100755 index 520fed6ea..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,37 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ExperimentState; -import com.labsynch.labseer.web.ExperimentStateController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ExperimentStateController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByExperiment", "form" }, method = RequestMethod.GET) - public String ExperimentStateController.findExperimentStatesByExperimentForm(Model uiModel) { - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - return "experimentstates/findExperimentStatesByExperiment"; - } - - @RequestMapping(params = "find=ByExperiment", method = RequestMethod.GET) - public String ExperimentStateController.findExperimentStatesByExperiment(@RequestParam("experiment") Experiment experiment, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentstates", ExperimentState.findExperimentStatesByExperiment(experiment, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ExperimentState.countFindExperimentStatesByExperiment(experiment) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentstates", ExperimentState.findExperimentStatesByExperiment(experiment, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experimentstates/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller_Json.aj deleted file mode 100755 index 286d15d78..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentStateController_Roo_Controller_Json.aj +++ /dev/null @@ -1,125 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ExperimentState; -import com.labsynch.labseer.web.ExperimentStateController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ExperimentStateController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentStateController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ExperimentState experimentState = ExperimentState.findExperimentState(id); - if (experimentState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(experimentState.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentStateController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ExperimentState.findAllExperimentStates(); - return new ResponseEntity(ExperimentState.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ExperimentStateController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentState experimentState = ExperimentState.fromJsonToExperimentState(json); - experimentState.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+experimentState.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ExperimentStateController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ExperimentState experimentState: ExperimentState.fromJsonArrayToExperimentStates(json)) { - experimentState.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ExperimentStateController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentState experimentState = ExperimentState.fromJsonToExperimentState(json); - experimentState.setId(id); - if (experimentState.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ExperimentStateController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentState experimentState = ExperimentState.findExperimentState(id); - if (experimentState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - experimentState.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByExperiment", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentStateController.jsonFindExperimentStatesByExperiment(@RequestParam("experiment") Experiment experiment) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ExperimentState.toJsonArray(ExperimentState.findExperimentStatesByExperiment(experiment).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentTypeController.java b/src/main/java/com/labsynch/labseer/web/ExperimentTypeController.java deleted file mode 100755 index 33551ddcc..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentTypeController.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ExperimentType; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RequestMapping("/experimenttypes") -@Controller -@RooWebScaffold(path = "experimenttypes", formBackingObject = ExperimentType.class) -@RooWebJson(jsonObject = ExperimentType.class) -@RooWebFinder -public class ExperimentTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller.aj deleted file mode 100755 index c4fb07c50..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ExperimentType; -import com.labsynch.labseer.web.ExperimentTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ExperimentTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ExperimentTypeController.create(@Valid ExperimentType experimentType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, experimentType); - return "experimenttypes/create"; - } - uiModel.asMap().clear(); - experimentType.persist(); - return "redirect:/experimenttypes/" + encodeUrlPathSegment(experimentType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ExperimentTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new ExperimentType()); - return "experimenttypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ExperimentTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("experimenttype", ExperimentType.findExperimentType(id)); - uiModel.addAttribute("itemId", id); - return "experimenttypes/show"; - } - - @RequestMapping(produces = "text/html") - public String ExperimentTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimenttypes", ExperimentType.findExperimentTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ExperimentType.countExperimentTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimenttypes", ExperimentType.findAllExperimentTypes(sortFieldName, sortOrder)); - } - return "experimenttypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ExperimentTypeController.update(@Valid ExperimentType experimentType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, experimentType); - return "experimenttypes/update"; - } - uiModel.asMap().clear(); - experimentType.merge(); - return "redirect:/experimenttypes/" + encodeUrlPathSegment(experimentType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ExperimentTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ExperimentType.findExperimentType(id)); - return "experimenttypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ExperimentTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ExperimentType experimentType = ExperimentType.findExperimentType(id); - experimentType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/experimenttypes"; - } - - void ExperimentTypeController.populateEditForm(Model uiModel, ExperimentType experimentType) { - uiModel.addAttribute("experimentType", experimentType); - } - - String ExperimentTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller_Finder.aj deleted file mode 100755 index a47b648ff..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ExperimentType; -import com.labsynch.labseer.web.ExperimentTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ExperimentTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByTypeNameEquals", "form" }, method = RequestMethod.GET) - public String ExperimentTypeController.findExperimentTypesByTypeNameEqualsForm(Model uiModel) { - return "experimenttypes/findExperimentTypesByTypeNameEquals"; - } - - @RequestMapping(params = "find=ByTypeNameEquals", method = RequestMethod.GET) - public String ExperimentTypeController.findExperimentTypesByTypeNameEquals(@RequestParam("typeName") String typeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimenttypes", ExperimentType.findExperimentTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ExperimentType.countFindExperimentTypesByTypeNameEquals(typeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimenttypes", ExperimentType.findExperimentTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).getResultList()); - } - return "experimenttypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller_Json.aj deleted file mode 100755 index eb358d297..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ExperimentType; -import com.labsynch.labseer.web.ExperimentTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ExperimentTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ExperimentType experimentType = ExperimentType.findExperimentType(id); - if (experimentType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(experimentType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ExperimentType.findAllExperimentTypes(); - return new ResponseEntity(ExperimentType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ExperimentTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentType experimentType = ExperimentType.fromJsonToExperimentType(json); - experimentType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+experimentType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ExperimentTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ExperimentType experimentType: ExperimentType.fromJsonArrayToExperimentTypes(json)) { - experimentType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ExperimentTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentType experimentType = ExperimentType.fromJsonToExperimentType(json); - experimentType.setId(id); - if (experimentType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ExperimentTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentType experimentType = ExperimentType.findExperimentType(id); - if (experimentType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - experimentType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentTypeController.jsonFindExperimentTypesByTypeNameEquals(@RequestParam("typeName") String typeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ExperimentType.toJsonArray(ExperimentType.findExperimentTypesByTypeNameEquals(typeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentValueController.java b/src/main/java/com/labsynch/labseer/web/ExperimentValueController.java deleted file mode 100755 index 579284b24..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentValueController.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ExperimentState; -import com.labsynch.labseer.domain.ExperimentValue; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ExperimentValue.class) -@Controller -@RequestMapping("/experimentvalues") -@RooWebScaffold(path = "experimentvalues", formBackingObject = ExperimentValue.class) -@RooWebFinder -@Transactional -public class ExperimentValueController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller.aj deleted file mode 100755 index a40f62b71..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller.aj +++ /dev/null @@ -1,120 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ExperimentState; -import com.labsynch.labseer.domain.ExperimentValue; -import com.labsynch.labseer.web.ExperimentValueController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ExperimentValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ExperimentValueController.create(@Valid ExperimentValue experimentValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, experimentValue); - return "experimentvalues/create"; - } - uiModel.asMap().clear(); - experimentValue.persist(); - return "redirect:/experimentvalues/" + encodeUrlPathSegment(experimentValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ExperimentValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new ExperimentValue()); - List dependencies = new ArrayList(); - if (ExperimentState.countExperimentStates() == 0) { - dependencies.add(new String[] { "lsState", "experimentstates" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "experimentvalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ExperimentValueController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("experimentvalue", ExperimentValue.findExperimentValue(id)); - uiModel.addAttribute("itemId", id); - return "experimentvalues/show"; - } - - @RequestMapping(produces = "text/html") - public String ExperimentValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentvalues", ExperimentValue.findExperimentValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ExperimentValue.countExperimentValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentvalues", ExperimentValue.findAllExperimentValues(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "experimentvalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ExperimentValueController.update(@Valid ExperimentValue experimentValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, experimentValue); - return "experimentvalues/update"; - } - uiModel.asMap().clear(); - experimentValue.merge(); - return "redirect:/experimentvalues/" + encodeUrlPathSegment(experimentValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ExperimentValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ExperimentValue.findExperimentValue(id)); - return "experimentvalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ExperimentValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ExperimentValue experimentValue = ExperimentValue.findExperimentValue(id); - experimentValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/experimentvalues"; - } - - void ExperimentValueController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("experimentValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("experimentValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("experimentValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ExperimentValueController.populateEditForm(Model uiModel, ExperimentValue experimentValue) { - uiModel.addAttribute("experimentValue", experimentValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("experimentstates", ExperimentState.findAllExperimentStates()); - } - - String ExperimentValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller_Finder.aj deleted file mode 100755 index e7277322f..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,98 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ExperimentState; -import com.labsynch.labseer.domain.ExperimentValue; -import com.labsynch.labseer.web.ExperimentValueController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ExperimentValueController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLsKindEqualsAndCodeValueLike", "form" }, method = RequestMethod.GET) - public String ExperimentValueController.findExperimentValuesByLsKindEqualsAndCodeValueLikeForm(Model uiModel) { - return "experimentvalues/findExperimentValuesByLsKindEqualsAndCodeValueLike"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndCodeValueLike", method = RequestMethod.GET) - public String ExperimentValueController.findExperimentValuesByLsKindEqualsAndCodeValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("codeValue") String codeValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentvalues", ExperimentValue.findExperimentValuesByLsKindEqualsAndCodeValueLike(lsKind, codeValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ExperimentValue.countFindExperimentValuesByLsKindEqualsAndCodeValueLike(lsKind, codeValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentvalues", ExperimentValue.findExperimentValuesByLsKindEqualsAndCodeValueLike(lsKind, codeValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experimentvalues/list"; - } - - @RequestMapping(params = { "find=ByLsKindEqualsAndStringValueLike", "form" }, method = RequestMethod.GET) - public String ExperimentValueController.findExperimentValuesByLsKindEqualsAndStringValueLikeForm(Model uiModel) { - return "experimentvalues/findExperimentValuesByLsKindEqualsAndStringValueLike"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndStringValueLike", method = RequestMethod.GET) - public String ExperimentValueController.findExperimentValuesByLsKindEqualsAndStringValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("stringValue") String stringValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentvalues", ExperimentValue.findExperimentValuesByLsKindEqualsAndStringValueLike(lsKind, stringValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ExperimentValue.countFindExperimentValuesByLsKindEqualsAndStringValueLike(lsKind, stringValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentvalues", ExperimentValue.findExperimentValuesByLsKindEqualsAndStringValueLike(lsKind, stringValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experimentvalues/list"; - } - - @RequestMapping(params = { "find=ByLsState", "form" }, method = RequestMethod.GET) - public String ExperimentValueController.findExperimentValuesByLsStateForm(Model uiModel) { - uiModel.addAttribute("experimentstates", ExperimentState.findAllExperimentStates()); - return "experimentvalues/findExperimentValuesByLsState"; - } - - @RequestMapping(params = "find=ByLsState", method = RequestMethod.GET) - public String ExperimentValueController.findExperimentValuesByLsState(@RequestParam("lsState") ExperimentState lsState, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentvalues", ExperimentValue.findExperimentValuesByLsState(lsState, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ExperimentValue.countFindExperimentValuesByLsState(lsState) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentvalues", ExperimentValue.findExperimentValuesByLsState(lsState, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experimentvalues/list"; - } - - @RequestMapping(params = { "find=ByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals", "form" }, method = RequestMethod.GET) - public String ExperimentValueController.findExperimentValuesByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEqualsForm(Model uiModel) { - uiModel.addAttribute("experimentstates", ExperimentState.findAllExperimentStates()); - return "experimentvalues/findExperimentValuesByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals"; - } - - @RequestMapping(params = "find=ByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals", method = RequestMethod.GET) - public String ExperimentValueController.findExperimentValuesByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals(@RequestParam("lsState") ExperimentState lsState, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam("lsKind") String lsKind, @RequestParam("lsType") String lsType, @RequestParam("stringValue") String stringValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("experimentvalues", ExperimentValue.findExperimentValuesByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals(lsState, ignored, lsKind, lsType, stringValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ExperimentValue.countFindExperimentValuesByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals(lsState, ignored, lsKind, lsType, stringValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("experimentvalues", ExperimentValue.findExperimentValuesByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals(lsState, ignored, lsKind, lsType, stringValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "experimentvalues/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller_Json.aj deleted file mode 100755 index c0e93c0ea..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExperimentValueController_Roo_Controller_Json.aj +++ /dev/null @@ -1,161 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ExperimentState; -import com.labsynch.labseer.domain.ExperimentValue; -import com.labsynch.labseer.web.ExperimentValueController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ExperimentValueController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentValueController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ExperimentValue experimentValue = ExperimentValue.findExperimentValue(id); - if (experimentValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(experimentValue.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentValueController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ExperimentValue.findAllExperimentValues(); - return new ResponseEntity(ExperimentValue.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ExperimentValueController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentValue experimentValue = ExperimentValue.fromJsonToExperimentValue(json); - experimentValue.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+experimentValue.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ExperimentValueController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ExperimentValue experimentValue: ExperimentValue.fromJsonArrayToExperimentValues(json)) { - experimentValue.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ExperimentValueController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentValue experimentValue = ExperimentValue.fromJsonToExperimentValue(json); - experimentValue.setId(id); - if (experimentValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ExperimentValueController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ExperimentValue experimentValue = ExperimentValue.findExperimentValue(id); - if (experimentValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - experimentValue.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndCodeValueLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentValueController.jsonFindExperimentValuesByLsKindEqualsAndCodeValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("codeValue") String codeValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ExperimentValue.toJsonArray(ExperimentValue.findExperimentValuesByLsKindEqualsAndCodeValueLike(lsKind, codeValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndStringValueLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentValueController.jsonFindExperimentValuesByLsKindEqualsAndStringValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("stringValue") String stringValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ExperimentValue.toJsonArray(ExperimentValue.findExperimentValuesByLsKindEqualsAndStringValueLike(lsKind, stringValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsState", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentValueController.jsonFindExperimentValuesByLsState(@RequestParam("lsState") ExperimentState lsState) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ExperimentValue.toJsonArray(ExperimentValue.findExperimentValuesByLsState(lsState).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ExperimentValueController.jsonFindExperimentValuesByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals(@RequestParam("lsState") ExperimentState lsState, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam("lsKind") String lsKind, @RequestParam("lsType") String lsType, @RequestParam("stringValue") String stringValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ExperimentValue.toJsonArray(ExperimentValue.findExperimentValuesByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals(lsState, ignored, lsKind, lsType, stringValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ExportSDFController.java b/src/main/java/com/labsynch/labseer/web/ExportSDFController.java deleted file mode 100755 index d28c0828d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ExportSDFController.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.labsynch.labseer.web; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.MediaType; -import org.springframework.http.ResponseEntity; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -import com.labsynch.labseer.service.StructureImageService; - -@RequestMapping("/exportSDF") -@Controller -public class ExportSDFController { - - private static final Logger logger = LoggerFactory.getLogger(ExportSDFController.class); - - @Autowired - private StructureImageService structureImageService; - - @RequestMapping - public void get(ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) { - } - - @RequestMapping(method = RequestMethod.GET) - public ResponseEntity getSDfile( @RequestParam("mols") String mols, - HttpServletRequest request, - HttpServletResponse response, - Model model) { - - String output = structureImageService.convertMolfilesToSDFile(mols); - - logger.debug("output sdfile: " + output); - - HttpHeaders headers= new HttpHeaders(); - headers.setContentType(MediaType.TEXT_HTML); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - return new ResponseEntity(output, headers, HttpStatus.OK); - } - -// @RequestMapping(method = RequestMethod.POST, value = "{id}") -// public void post(@PathVariable Long id, ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) { -// } -// -// @RequestMapping -// public String index() { -// return "exportsdf/index"; -// } - -} diff --git a/src/main/java/com/labsynch/labseer/web/FileListController.java b/src/main/java/com/labsynch/labseer/web/FileListController.java deleted file mode 100755 index e3cc88124..000000000 --- a/src/main/java/com/labsynch/labseer/web/FileListController.java +++ /dev/null @@ -1,323 +0,0 @@ -package com.labsynch.labseer.web; -import java.io.BufferedInputStream; -import java.io.DataInputStream; -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.io.UnsupportedEncodingException; -import java.util.Collection; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.validation.Valid; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.multipart.MultipartFile; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; -import com.labsynch.labseer.domain.FileList; -import com.labsynch.labseer.domain.Lot; -import com.labsynch.labseer.dto.FileSaveReturnDTO; - -@RooWebScaffold(path = "filelists", formBackingObject = FileList.class) -@RequestMapping("/filelists") -@Controller -@RooWebFinder -public class FileListController { - - private static final Logger logger = LoggerFactory.getLogger(FileListController.class); - - @RequestMapping(method = RequestMethod.POST) - public String createFile(@Valid FileList fileList, BindingResult bindingResult, Model uiModel, @RequestParam("file") MultipartFile file, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - uiModel.addAttribute("fileList", fileList); - return "filelists/create"; - } - uiModel.asMap().clear(); - fileList.setFile(file); - fileList.setType(file.getContentType()); - fileList.setFileName(file.getOriginalFilename()); - fileList.setSize(file.getSize()); - fileList.setName(file.getOriginalFilename()); - logger.debug("Name: " + file.getOriginalFilename()); - logger.debug("Description: " + fileList.getDescription()); - logger.debug("File: " + file.getName()); - logger.debug("Type: " + file.getContentType()); - logger.debug("Size: " + fileList.getSize()); - fileList.saveFile(file); - fileList.persist(); - return "redirect:/filelists/" + encodeUrlPathSegment(fileList.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/saveFile", method = RequestMethod.POST) - public ResponseEntity create(@Valid FileList fileList, BindingResult bindingResult, Model uiModel, @RequestParam("file") MultipartFile file, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - uiModel.addAttribute("fileList", fileList); - return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR); - } - logger.debug("receiving the post file"); - uiModel.asMap().clear(); - fileList.setFile(file); - fileList.setType(file.getContentType()); - fileList.setFileName(file.getOriginalFilename()); - fileList.setSize(file.getSize()); - fileList.setName(file.getOriginalFilename()); - logger.debug("Name: " + file.getOriginalFilename()); - logger.debug("Description: " + fileList.getDescription()); - logger.debug("File: " + file.getName()); - logger.debug("Type: " + file.getContentType()); - logger.debug("Size: " + fileList.getSize()); - fileList.saveFile(file); - FileSaveReturnDTO fileSave = new FileSaveReturnDTO(); - fileSave.setDescription(fileList.getDescription()); - fileSave.setSubdir(fileList.getSubdir()); - fileSave.setIe(fileList.getIe()); - fileSave.setFile(file); - fileSave.setType(file.getContentType()); - fileSave.setSize(file.getSize()); - fileSave.setName(file.getOriginalFilename()); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Origin", "*"); - return new ResponseEntity(fileSave.toJson(), headers, HttpStatus.CREATED); - } - - // @RequestParam("description") String description, - // @RequestParam("subdir") String subdir, - // @RequestParam("ie") boolean ie, - @RequestMapping(value = "/createSaveFile", method = RequestMethod.POST) - public ResponseEntity createSaveFile(@Valid FileList fileList, BindingResult bindingResult, Model uiModel, @RequestParam("file") MultipartFile file, HttpServletRequest httpServletRequest) { - logger.debug("receiving the post file"); - logger.debug("Filelist Description: " + fileList.getDescription()); - fileList.setFile(file); - fileList.setType(file.getContentType()); - fileList.setFileName(file.getOriginalFilename()); - fileList.setSize(file.getSize()); - fileList.setName(file.getOriginalFilename()); - fileList.setFilePath(fileList.getSubdir()); - logger.debug("Name: " + file.getOriginalFilename()); - logger.debug("Description: " + fileList.getDescription()); - logger.debug("File: " + file.getName()); - logger.debug("Type: " + file.getContentType()); - logger.debug("Size: " + fileList.getSize()); - logger.debug("Subdir to save: " + fileList.getSubdir()); - fileList.saveFile(file); - FileSaveReturnDTO fileSave = new FileSaveReturnDTO(); - fileSave.setDescription(fileList.getDescription()); - fileSave.setSubdir(fileList.getSubdir()); - fileSave.setIe(fileList.getIe()); - fileSave.setFile(file); - fileSave.setType(file.getContentType()); - fileSave.setSize(file.getSize()); - fileSave.setName(file.getOriginalFilename()); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - return new ResponseEntity(fileSave.toJson(), headers, HttpStatus.CREATED); - } - - @RequestMapping(params = "form", method = RequestMethod.GET) - public String createForm(Model uiModel) { - uiModel.addAttribute("fileList", new FileList()); - return "filelists/create"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - public String show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("filelist", FileList.findFileList(id)); - uiModel.addAttribute("itemId", id); - return "filelists/show"; - } - - @RequestMapping(value = "/showfile/{id}", method = RequestMethod.GET) - public String showdoc(@PathVariable("id") Long id, HttpServletResponse response, Model model) { - FileList fileList = FileList.findFileList(id); - File readFile = new File(fileList.getFilePath()); - FileInputStream fis = null; - BufferedInputStream bis = null; - DataInputStream dis = null; - try { - response.setHeader("Content-Disposition", "inline;filename=\"" + fileList.getFileName() + "\""); - OutputStream out = response.getOutputStream(); - response.setContentType(fileList.getType()); - fis = new FileInputStream(readFile); - bis = new BufferedInputStream(fis); - IOUtils.copy(bis, out); - out.flush(); - } catch (IOException e) { - e.printStackTrace(); - } catch (Exception e) { - e.printStackTrace(); - } - return null; - } - - @RequestMapping(method = RequestMethod.GET) - public String list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - uiModel.addAttribute("filelists", FileList.findFileListEntries(page == null ? 0 : (page.intValue() - 1) * sizeNo, sizeNo)); - float nrOfPages = (float) FileList.countFileLists() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("filelists", FileList.findAllFileLists()); - } - return "filelists/list"; - } - - @RequestMapping(method = RequestMethod.PUT) - public String update(@Valid FileList fileList, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - uiModel.addAttribute("fileList", fileList); - return "filelists/update"; - } - uiModel.asMap().clear(); - fileList.merge(); - return "redirect:/filelists/" + encodeUrlPathSegment(fileList.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", method = RequestMethod.GET) - public String updateForm(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("fileList", FileList.findFileList(id)); - return "filelists/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) - public String delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - FileList.findFileList(id).remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/filelists"; - } - - @ModelAttribute("filelists") - public Collection populateFileLists() { - return FileList.findAllFileLists(); - } - - @ModelAttribute("lots") - public Collection populateLots() { - return Lot.findAllLots(); - } - - String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - FileList filelist = FileList.findFileList(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - if (filelist == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(filelist.toJson(), headers, HttpStatus.OK); - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - return new ResponseEntity(FileList.toJsonArray(FileList.findAllFileLists()), headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json) { - FileList.fromJsonToFileList(json).persist(); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - for (FileList fileList : FileList.fromJsonArrayToFileLists(json)) { - fileList.persist(); - } - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - if (FileList.fromJsonToFileList(json).merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - for (FileList fileList : FileList.fromJsonArrayToFileLists(json)) { - if (fileList.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - FileList filelist = FileList.findFileList(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - if (filelist == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - filelist.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(params = "find=ByLot", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity jsonFindFileListsByLot(@RequestParam("lot") Lot lot) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - return new ResponseEntity(FileList.toJsonArray(FileList.findFileListsByLot(lot).getResultList()), headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.OPTIONS) - public ResponseEntity getOptions() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text, text/html"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - return new ResponseEntity(headers, HttpStatus.OK); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/FileListController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/FileListController_Roo_Controller.aj deleted file mode 100644 index f4ffff8ea..000000000 --- a/src/main/java/com/labsynch/labseer/web/FileListController_Roo_Controller.aj +++ /dev/null @@ -1,18 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.FileList; -import com.labsynch.labseer.domain.Lot; -import com.labsynch.labseer.web.FileListController; -import org.springframework.ui.Model; - -privileged aspect FileListController_Roo_Controller { - - void FileListController.populateEditForm(Model uiModel, FileList fileList) { - uiModel.addAttribute("fileList", fileList); - uiModel.addAttribute("lots", Lot.findAllLots()); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/FileListController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/FileListController_Roo_Controller_Finder.aj deleted file mode 100644 index b2e803a84..000000000 --- a/src/main/java/com/labsynch/labseer/web/FileListController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,55 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.FileList; -import com.labsynch.labseer.domain.Lot; -import com.labsynch.labseer.web.FileListController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect FileListController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLot", "form" }, method = RequestMethod.GET) - public String FileListController.findFileListsByLotForm(Model uiModel) { - uiModel.addAttribute("lots", Lot.findAllLots()); - return "filelists/findFileListsByLot"; - } - - @RequestMapping(params = "find=ByLot", method = RequestMethod.GET) - public String FileListController.findFileListsByLot(@RequestParam("lot") Lot lot, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("filelists", FileList.findFileListsByLot(lot, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) FileList.countFindFileListsByLot(lot) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("filelists", FileList.findFileListsByLot(lot, sortFieldName, sortOrder).getResultList()); - } - return "filelists/list"; - } - - @RequestMapping(params = { "find=ByUrlEquals", "form" }, method = RequestMethod.GET) - public String FileListController.findFileListsByUrlEqualsForm(Model uiModel) { - return "filelists/findFileListsByUrlEquals"; - } - - @RequestMapping(params = "find=ByUrlEquals", method = RequestMethod.GET) - public String FileListController.findFileListsByUrlEquals(@RequestParam("url") String url, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("filelists", FileList.findFileListsByUrlEquals(url, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) FileList.countFindFileListsByUrlEquals(url) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("filelists", FileList.findFileListsByUrlEquals(url, sortFieldName, sortOrder).getResultList()); - } - return "filelists/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/FileThingController.java b/src/main/java/com/labsynch/labseer/web/FileThingController.java deleted file mode 100755 index 87c6ff2f0..000000000 --- a/src/main/java/com/labsynch/labseer/web/FileThingController.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.FileThing; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/filethings") -@Controller -@RooWebScaffold(path = "filethings", formBackingObject = FileThing.class) -@RooWebJson(jsonObject = FileThing.class) -public class FileThingController { -} diff --git a/src/main/java/com/labsynch/labseer/web/FileThingController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/FileThingController_Roo_Controller.aj deleted file mode 100755 index 87c8d06d7..000000000 --- a/src/main/java/com/labsynch/labseer/web/FileThingController_Roo_Controller.aj +++ /dev/null @@ -1,112 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.FileThing; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.FileThingController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect FileThingController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String FileThingController.create(@Valid FileThing fileThing, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, fileThing); - return "filethings/create"; - } - uiModel.asMap().clear(); - fileThing.persist(); - return "redirect:/filethings/" + encodeUrlPathSegment(fileThing.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String FileThingController.createForm(Model uiModel) { - populateEditForm(uiModel, new FileThing()); - return "filethings/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String FileThingController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("filething", FileThing.findFileThing(id)); - uiModel.addAttribute("itemId", id); - return "filethings/show"; - } - - @RequestMapping(produces = "text/html") - public String FileThingController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("filethings", FileThing.findFileThingEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) FileThing.countFileThings() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("filethings", FileThing.findAllFileThings(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "filethings/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String FileThingController.update(@Valid FileThing fileThing, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, fileThing); - return "filethings/update"; - } - uiModel.asMap().clear(); - fileThing.merge(); - return "redirect:/filethings/" + encodeUrlPathSegment(fileThing.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String FileThingController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, FileThing.findFileThing(id)); - return "filethings/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String FileThingController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - FileThing fileThing = FileThing.findFileThing(id); - fileThing.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/filethings"; - } - - void FileThingController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("fileThing_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("fileThing_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void FileThingController.populateEditForm(Model uiModel, FileThing fileThing) { - uiModel.addAttribute("fileThing", fileThing); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - } - - String FileThingController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/FileThingController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/FileThingController_Roo_Controller_Json.aj deleted file mode 100755 index 342013178..000000000 --- a/src/main/java/com/labsynch/labseer/web/FileThingController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.FileThing; -import com.labsynch.labseer.web.FileThingController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect FileThingController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity FileThingController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - FileThing fileThing = FileThing.findFileThing(id); - if (fileThing == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(fileThing.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity FileThingController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = FileThing.findAllFileThings(); - return new ResponseEntity(FileThing.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity FileThingController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - FileThing fileThing = FileThing.fromJsonToFileThing(json); - fileThing.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+fileThing.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity FileThingController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (FileThing fileThing: FileThing.fromJsonArrayToFileThings(json)) { - fileThing.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity FileThingController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - FileThing fileThing = FileThing.fromJsonToFileThing(json); - fileThing.setId(id); - if (fileThing.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity FileThingController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - FileThing fileThing = FileThing.findFileThing(id); - if (fileThing == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - fileThing.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ForgotPasswordController.java b/src/main/java/com/labsynch/labseer/web/ForgotPasswordController.java deleted file mode 100755 index 697a81def..000000000 --- a/src/main/java/com/labsynch/labseer/web/ForgotPasswordController.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.labsynch.labseer.web; - -import java.io.UnsupportedEncodingException; -import java.security.NoSuchAlgorithmException; -import java.util.Random; - -import javax.persistence.TypedQuery; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.mail.MailSender; -import org.springframework.mail.SimpleMailMessage; -import org.springframework.stereotype.Controller; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.service.DatabaseAuthenticationProvider; -import com.labsynch.labseer.utils.PropertiesUtilService; - -@RequestMapping("/forgotpassword/**") -@Controller -public class ForgotPasswordController { - - @Autowired - private transient MailSender mailSender; - - private transient SimpleMailMessage simpleMailMessage; - - @Autowired - private PropertiesUtilService propertiesUtilService; - - @ModelAttribute("forgotpasswordForm") - public ForgotPasswordForm formBackingObject() { - return new ForgotPasswordForm(); - } - - @RequestMapping(value = "/index", produces = "text/html") - public String index() { - return "forgotpassword/index"; - } - - @RequestMapping(value = "/thanks", produces = "text/html") - public String thanks() { - return "forgotpassword/thanks"; - } - - @RequestMapping(value = "/update", method = RequestMethod.POST, produces = "text/html") - public String update(@ModelAttribute("forgotpasswordForm") ForgotPasswordForm form, BindingResult result) { - if (result.hasErrors()) { - return "forgotpassword/index"; - } else { - TypedQuery userQuery=Author.findAuthorsByEmailAddress(form.getEmailAddress()); - if(null!=userQuery && userQuery.getMaxResults()>0){ - Author User = userQuery.getSingleResult(); - Random random = new Random(System.currentTimeMillis()); - String newPassword = "pass"+random.nextLong(); - - String encryptedPassword = null; - try { - encryptedPassword = DatabaseAuthenticationProvider.getBase64ShaHash(newPassword); - } catch (NoSuchAlgorithmException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (UnsupportedEncodingException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } - User.setPassword(encryptedPassword); - - User.merge(); - SimpleMailMessage mail = new SimpleMailMessage(); - mail.setTo(form.getEmailAddress()); - mail.setSubject("ACAS Password Recovery"); - mail.setText("Hi "+User.getFirstName()+",\n" - + "You recently requested for your password to be reset. Your new password is "+newPassword+"\n" - + "Please login to ACAS here and remember to change your password. "+ propertiesUtilService.getClientFullPath() + "\n" - +"Thank you, \nAdmin"); - mailSender.send(mail); - } - - return "forgotpassword/thanks"; - } - } - - public void sendMessage(String mailTo, String message) { - simpleMailMessage.setTo(mailTo); - simpleMailMessage.setText(message); - if(propertiesUtilService.getEmailFromAddress() != null && !propertiesUtilService.getEmailFromAddress().equals("") ) simpleMailMessage.setFrom(propertiesUtilService.getEmailFromAddress()); - mailSender.send(simpleMailMessage); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/ForgotPasswordForm.java b/src/main/java/com/labsynch/labseer/web/ForgotPasswordForm.java deleted file mode 100755 index 7ca3710b2..000000000 --- a/src/main/java/com/labsynch/labseer/web/ForgotPasswordForm.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * - */ -package com.labsynch.labseer.web; - -/** - * - */ -public class ForgotPasswordForm { - - private String emailAddress; - - /** - * @return the emailAddress - */ - public String getEmailAddress() { - return emailAddress; - } - - /** - * @param emailAddress - * the emailAddress to set - */ - public void setEmailAddress(String emailAddress) { - this.emailAddress = emailAddress; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/GeneIdDTOController.java b/src/main/java/com/labsynch/labseer/web/GeneIdDTOController.java deleted file mode 100755 index 082a1b3cf..000000000 --- a/src/main/java/com/labsynch/labseer/web/GeneIdDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.GeneIdDTO; - -@RooWebJson(jsonObject = GeneIdDTO.class) -@Controller -@RequestMapping("/geneiddto") -public class GeneIdDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/IdCollectionDTOController.java b/src/main/java/com/labsynch/labseer/web/IdCollectionDTOController.java deleted file mode 100755 index 888fa214e..000000000 --- a/src/main/java/com/labsynch/labseer/web/IdCollectionDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.IdCollectionDTO; - -@RooWebJson(jsonObject = IdCollectionDTO.class) -@Controller -@RequestMapping("/idcollectioes") -public class IdCollectionDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/InteractionKindController.java b/src/main/java/com/labsynch/labseer/web/InteractionKindController.java deleted file mode 100755 index aad6ac115..000000000 --- a/src/main/java/com/labsynch/labseer/web/InteractionKindController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.InteractionKind; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = InteractionKind.class) -@Controller -@RequestMapping("/interactionkinds") -@RooWebScaffold(path = "interactionkinds", formBackingObject = InteractionKind.class) -public class InteractionKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/InteractionKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/InteractionKindController_Roo_Controller.aj deleted file mode 100755 index 509747f57..000000000 --- a/src/main/java/com/labsynch/labseer/web/InteractionKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.InteractionKind; -import com.labsynch.labseer.domain.InteractionType; -import com.labsynch.labseer.web.InteractionKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect InteractionKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String InteractionKindController.create(@Valid InteractionKind interactionKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, interactionKind); - return "interactionkinds/create"; - } - uiModel.asMap().clear(); - interactionKind.persist(); - return "redirect:/interactionkinds/" + encodeUrlPathSegment(interactionKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String InteractionKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new InteractionKind()); - List dependencies = new ArrayList(); - if (InteractionType.countInteractionTypes() == 0) { - dependencies.add(new String[] { "lsType", "interactiontypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "interactionkinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String InteractionKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("interactionkind", InteractionKind.findInteractionKind(id)); - uiModel.addAttribute("itemId", id); - return "interactionkinds/show"; - } - - @RequestMapping(produces = "text/html") - public String InteractionKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("interactionkinds", InteractionKind.findInteractionKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) InteractionKind.countInteractionKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("interactionkinds", InteractionKind.findAllInteractionKinds(sortFieldName, sortOrder)); - } - return "interactionkinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String InteractionKindController.update(@Valid InteractionKind interactionKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, interactionKind); - return "interactionkinds/update"; - } - uiModel.asMap().clear(); - interactionKind.merge(); - return "redirect:/interactionkinds/" + encodeUrlPathSegment(interactionKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String InteractionKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, InteractionKind.findInteractionKind(id)); - return "interactionkinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String InteractionKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - InteractionKind interactionKind = InteractionKind.findInteractionKind(id); - interactionKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/interactionkinds"; - } - - void InteractionKindController.populateEditForm(Model uiModel, InteractionKind interactionKind) { - uiModel.addAttribute("interactionKind", interactionKind); - uiModel.addAttribute("interactiontypes", InteractionType.findAllInteractionTypes()); - } - - String InteractionKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/InteractionKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/InteractionKindController_Roo_Controller_Json.aj deleted file mode 100644 index ca54b071f..000000000 --- a/src/main/java/com/labsynch/labseer/web/InteractionKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,137 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.InteractionKind; -import com.labsynch.labseer.domain.InteractionType; -import com.labsynch.labseer.web.InteractionKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect InteractionKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity InteractionKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - InteractionKind interactionKind = InteractionKind.findInteractionKind(id); - if (interactionKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(interactionKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity InteractionKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = InteractionKind.findAllInteractionKinds(); - return new ResponseEntity(InteractionKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity InteractionKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - InteractionKind interactionKind = InteractionKind.fromJsonToInteractionKind(json); - interactionKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+interactionKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity InteractionKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (InteractionKind interactionKind: InteractionKind.fromJsonArrayToInteractionKinds(json)) { - interactionKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity InteractionKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - InteractionKind interactionKind = InteractionKind.fromJsonToInteractionKind(json); - interactionKind.setId(id); - if (interactionKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity InteractionKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - InteractionKind interactionKind = InteractionKind.findInteractionKind(id); - if (interactionKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - interactionKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity InteractionKindController.jsonFindInteractionKindsByKindNameEquals(@RequestParam("kindName") String kindName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(InteractionKind.toJsonArray(InteractionKind.findInteractionKindsByKindNameEquals(kindName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity InteractionKindController.jsonFindInteractionKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") InteractionType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(InteractionKind.toJsonArray(InteractionKind.findInteractionKindsByKindNameEqualsAndLsType(kindName, lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/InteractionTypeController.java b/src/main/java/com/labsynch/labseer/web/InteractionTypeController.java deleted file mode 100755 index d72773c6d..000000000 --- a/src/main/java/com/labsynch/labseer/web/InteractionTypeController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.InteractionType; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = InteractionType.class) -@Controller -@RequestMapping("/interactiontypes") -@RooWebScaffold(path = "interactiontypes", formBackingObject = InteractionType.class) -public class InteractionTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/InteractionTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/InteractionTypeController_Roo_Controller.aj deleted file mode 100755 index d3de69070..000000000 --- a/src/main/java/com/labsynch/labseer/web/InteractionTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.InteractionType; -import com.labsynch.labseer.web.InteractionTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect InteractionTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String InteractionTypeController.create(@Valid InteractionType interactionType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, interactionType); - return "interactiontypes/create"; - } - uiModel.asMap().clear(); - interactionType.persist(); - return "redirect:/interactiontypes/" + encodeUrlPathSegment(interactionType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String InteractionTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new InteractionType()); - return "interactiontypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String InteractionTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("interactiontype", InteractionType.findInteractionType(id)); - uiModel.addAttribute("itemId", id); - return "interactiontypes/show"; - } - - @RequestMapping(produces = "text/html") - public String InteractionTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("interactiontypes", InteractionType.findInteractionTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) InteractionType.countInteractionTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("interactiontypes", InteractionType.findAllInteractionTypes(sortFieldName, sortOrder)); - } - return "interactiontypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String InteractionTypeController.update(@Valid InteractionType interactionType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, interactionType); - return "interactiontypes/update"; - } - uiModel.asMap().clear(); - interactionType.merge(); - return "redirect:/interactiontypes/" + encodeUrlPathSegment(interactionType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String InteractionTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, InteractionType.findInteractionType(id)); - return "interactiontypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String InteractionTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - InteractionType interactionType = InteractionType.findInteractionType(id); - interactionType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/interactiontypes"; - } - - void InteractionTypeController.populateEditForm(Model uiModel, InteractionType interactionType) { - uiModel.addAttribute("interactionType", interactionType); - } - - String InteractionTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/InteractionTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/InteractionTypeController_Roo_Controller_Json.aj deleted file mode 100644 index ff20b6f81..000000000 --- a/src/main/java/com/labsynch/labseer/web/InteractionTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,136 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.InteractionType; -import com.labsynch.labseer.web.InteractionTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect InteractionTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity InteractionTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - InteractionType interactionType = InteractionType.findInteractionType(id); - if (interactionType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(interactionType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity InteractionTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = InteractionType.findAllInteractionTypes(); - return new ResponseEntity(InteractionType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity InteractionTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - InteractionType interactionType = InteractionType.fromJsonToInteractionType(json); - interactionType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+interactionType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity InteractionTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (InteractionType interactionType: InteractionType.fromJsonArrayToInteractionTypes(json)) { - interactionType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity InteractionTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - InteractionType interactionType = InteractionType.fromJsonToInteractionType(json); - interactionType.setId(id); - if (interactionType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity InteractionTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - InteractionType interactionType = InteractionType.findInteractionType(id); - if (interactionType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - interactionType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity InteractionTypeController.jsonFindInteractionTypesByTypeNameEquals(@RequestParam("typeName") String typeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(InteractionType.toJsonArray(InteractionType.findInteractionTypesByTypeNameEquals(typeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEqualsAndTypeVerbEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity InteractionTypeController.jsonFindInteractionTypesByTypeNameEqualsAndTypeVerbEquals(@RequestParam("typeName") String typeName, @RequestParam("typeVerb") String typeVerb) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(InteractionType.toJsonArray(InteractionType.findInteractionTypesByTypeNameEqualsAndTypeVerbEquals(typeName, typeVerb).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/IsoSaltController.java b/src/main/java/com/labsynch/labseer/web/IsoSaltController.java deleted file mode 100755 index 4875023ec..000000000 --- a/src/main/java/com/labsynch/labseer/web/IsoSaltController.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.labsynch.labseer.web; - -import java.io.UnsupportedEncodingException; -import java.util.Collection; - -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; - -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -import com.labsynch.labseer.domain.IsoSalt; -import com.labsynch.labseer.domain.Isotope; -import com.labsynch.labseer.domain.Salt; -import com.labsynch.labseer.domain.SaltForm; - -@RooWebScaffold(path = "isosalts", formBackingObject = IsoSalt.class) -@RequestMapping("/isosalts") -@Transactional -@Controller - -@RooWebFinder -public class IsoSaltController { - - - @RequestMapping(method = RequestMethod.POST) - public String create(@Valid IsoSalt isoSalt, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - uiModel.addAttribute("isoSalt", isoSalt); - return "isosalts/create"; - } - uiModel.asMap().clear(); - isoSalt.persist(); - return "redirect:/isosalts/" + encodeUrlPathSegment(isoSalt.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", method = RequestMethod.GET) - public String createForm(Model uiModel) { - uiModel.addAttribute("isoSalt", new IsoSalt()); - return "isosalts/create"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - public String show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("isosalt", IsoSalt.findIsoSalt(id)); - uiModel.addAttribute("itemId", id); - return "isosalts/show"; - } - - @RequestMapping(method = RequestMethod.GET) - public String list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - uiModel.addAttribute("isosalts", IsoSalt.findIsoSaltEntries(page == null ? 0 : (page.intValue() - 1) * sizeNo, sizeNo)); - float nrOfPages = (float) IsoSalt.countIsoSalts() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("isosalts", IsoSalt.findIsoSaltEntries(0, 100)); - } - return "isosalts/list"; - } - - @RequestMapping(method = RequestMethod.PUT) - public String update(@Valid IsoSalt isoSalt, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - uiModel.addAttribute("isoSalt", isoSalt); - return "isosalts/update"; - } - uiModel.asMap().clear(); - isoSalt.merge(); - return "redirect:/isosalts/" + encodeUrlPathSegment(isoSalt.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", method = RequestMethod.GET) - public String updateForm(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("isoSalt", IsoSalt.findIsoSalt(id)); - return "isosalts/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) - public String delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - IsoSalt.findIsoSalt(id).remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/isosalts"; - } - - -// @ModelAttribute("isosalts") -// public Collection populateIsoSalts() { -// return IsoSalt.findAllIsoSalts(); -// } - - @ModelAttribute("isotopes") - public Collection populateIsotopes() { - return Isotope.findAllIsotopes(); - } - - @ModelAttribute("salts") - public Collection populateSalts() { - return Salt.findAllSalts(); - } - -// @ModelAttribute("saltforms") -// public Collection populateSaltForms() { -// return SaltForm.findAllSaltForms(); -// } - - String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - IsoSalt isosalt = IsoSalt.findIsoSalt(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - if (isosalt == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(isosalt.toJson(), headers, HttpStatus.OK); - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - return new ResponseEntity(IsoSalt.toJsonArray(IsoSalt.findAllIsoSalts()), headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json) { - IsoSalt.fromJsonToIsoSalt(json).persist(); - HttpHeaders headers= new HttpHeaders(); - headers.add("Content-Type", "application/text"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - for (IsoSalt isoSalt: IsoSalt.fromJsonArrayToIsoSalts(json)) { - isoSalt.persist(); - } - HttpHeaders headers= new HttpHeaders(); - headers.add("Content-Type", "application/text"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json) { - HttpHeaders headers= new HttpHeaders(); - headers.add("Content-Type", "application/text"); - if (IsoSalt.fromJsonToIsoSalt(json).merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJsonArray(@RequestBody String json) { - HttpHeaders headers= new HttpHeaders(); - headers.add("Content-Type", "application/text"); - for (IsoSalt isoSalt: IsoSalt.fromJsonArrayToIsoSalts(json)) { - if (isoSalt.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - IsoSalt isosalt = IsoSalt.findIsoSalt(id); - HttpHeaders headers= new HttpHeaders(); - headers.add("Content-Type", "application/text"); - if (isosalt == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - isosalt.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } - - - - @RequestMapping(params = { "find=BySaltForm", "form" }, method = RequestMethod.GET) - public String findIsoSaltsBySaltFormForm(Model uiModel) { - uiModel.addAttribute("saltforms", SaltForm.findAllSaltForms()); - return "isosalts/findIsoSaltsBySaltForm"; - } - - - @RequestMapping(params = { "find=BySaltFormAndType", "form" }, method = RequestMethod.GET) - public String findIsoSaltsBySaltFormAndTypeForm(Model uiModel) { - uiModel.addAttribute("saltforms", SaltForm.findAllSaltForms()); - return "isosalts/findIsoSaltsBySaltFormAndType"; - } - - -} diff --git a/src/main/java/com/labsynch/labseer/web/IsoSaltController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/IsoSaltController_Roo_Controller.aj deleted file mode 100644 index 583832681..000000000 --- a/src/main/java/com/labsynch/labseer/web/IsoSaltController_Roo_Controller.aj +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.IsoSalt; -import com.labsynch.labseer.domain.Isotope; -import com.labsynch.labseer.domain.Salt; -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.web.IsoSaltController; -import org.springframework.ui.Model; - -privileged aspect IsoSaltController_Roo_Controller { - - void IsoSaltController.populateEditForm(Model uiModel, IsoSalt isoSalt) { - uiModel.addAttribute("isoSalt", isoSalt); - uiModel.addAttribute("isotopes", Isotope.findAllIsotopes()); - uiModel.addAttribute("salts", Salt.findAllSalts()); - uiModel.addAttribute("saltforms", SaltForm.findAllSaltForms()); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/IsoSaltController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/IsoSaltController_Roo_Controller_Finder.aj deleted file mode 100644 index fe4f38d77..000000000 --- a/src/main/java/com/labsynch/labseer/web/IsoSaltController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,44 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.IsoSalt; -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.web.IsoSaltController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect IsoSaltController_Roo_Controller_Finder { - - @RequestMapping(params = "find=BySaltForm", method = RequestMethod.GET) - public String IsoSaltController.findIsoSaltsBySaltForm(@RequestParam("saltForm") SaltForm saltForm, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("isosalts", IsoSalt.findIsoSaltsBySaltForm(saltForm, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) IsoSalt.countFindIsoSaltsBySaltForm(saltForm) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("isosalts", IsoSalt.findIsoSaltsBySaltForm(saltForm, sortFieldName, sortOrder).getResultList()); - } - return "isosalts/list"; - } - - @RequestMapping(params = "find=BySaltFormAndType", method = RequestMethod.GET) - public String IsoSaltController.findIsoSaltsBySaltFormAndType(@RequestParam("saltForm") SaltForm saltForm, @RequestParam("type") String type, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("isosalts", IsoSalt.findIsoSaltsBySaltFormAndType(saltForm, type, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) IsoSalt.countFindIsoSaltsBySaltFormAndType(saltForm, type) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("isosalts", IsoSalt.findIsoSaltsBySaltFormAndType(saltForm, type, sortFieldName, sortOrder).getResultList()); - } - return "isosalts/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController.java b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController.java deleted file mode 100755 index 6ee729ac6..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxContainerContainer; -import com.labsynch.labseer.service.ItxContainerContainerService; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.FileReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ItxContainerContainer.class) -@Controller -@RequestMapping("/itxcontainercontainers") -@RooWebScaffold(path = "itxcontainercontainers", formBackingObject = ItxContainerContainer.class) -@RooWebFinder -public class ItxContainerContainerController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller.aj deleted file mode 100755 index 109605dc7..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller.aj +++ /dev/null @@ -1,126 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ItxContainerContainer; -import com.labsynch.labseer.domain.ItxContainerContainerState; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.ItxContainerContainerController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxContainerContainerController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxContainerContainerController.create(@Valid ItxContainerContainer itxContainerContainer, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxContainerContainer); - return "itxcontainercontainers/create"; - } - uiModel.asMap().clear(); - itxContainerContainer.persist(); - return "redirect:/itxcontainercontainers/" + encodeUrlPathSegment(itxContainerContainer.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxContainerContainerController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxContainerContainer()); - List dependencies = new ArrayList(); - if (Container.countContainers() == 0) { - dependencies.add(new String[] { "firstContainer", "containers" }); - } - if (Container.countContainers() == 0) { - dependencies.add(new String[] { "secondContainer", "containers" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "itxcontainercontainers/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxContainerContainerController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxcontainercontainer", ItxContainerContainer.findItxContainerContainer(id)); - uiModel.addAttribute("itemId", id); - return "itxcontainercontainers/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxContainerContainerController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxcontainercontainers", ItxContainerContainer.findItxContainerContainerEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxContainerContainer.countItxContainerContainers() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxcontainercontainers", ItxContainerContainer.findAllItxContainerContainers(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxcontainercontainers/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxContainerContainerController.update(@Valid ItxContainerContainer itxContainerContainer, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxContainerContainer); - return "itxcontainercontainers/update"; - } - uiModel.asMap().clear(); - itxContainerContainer.merge(); - return "redirect:/itxcontainercontainers/" + encodeUrlPathSegment(itxContainerContainer.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxContainerContainerController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxContainerContainer.findItxContainerContainer(id)); - return "itxcontainercontainers/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxContainerContainerController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxContainerContainer itxContainerContainer = ItxContainerContainer.findItxContainerContainer(id); - itxContainerContainer.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxcontainercontainers"; - } - - void ItxContainerContainerController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxContainerContainer_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxContainerContainer_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxContainerContainerController.populateEditForm(Model uiModel, ItxContainerContainer itxContainerContainer) { - uiModel.addAttribute("itxContainerContainer", itxContainerContainer); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("containers", Container.findAllContainers()); - uiModel.addAttribute("itxcontainercontainerstates", ItxContainerContainerState.findAllItxContainerContainerStates()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - } - - String ItxContainerContainerController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller_Finder.aj deleted file mode 100755 index c2f5efc19..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,78 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ItxContainerContainer; -import com.labsynch.labseer.web.ItxContainerContainerController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ItxContainerContainerController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String ItxContainerContainerController.findItxContainerContainersByLsTransactionEqualsForm(Model uiModel) { - return "itxcontainercontainers/findItxContainerContainersByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String ItxContainerContainerController.findItxContainerContainersByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxcontainercontainers", ItxContainerContainer.findItxContainerContainersByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxContainerContainer.countFindItxContainerContainersByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxcontainercontainers", ItxContainerContainer.findItxContainerContainersByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxcontainercontainers/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndFirstContainerEquals", "form" }, method = RequestMethod.GET) - public String ItxContainerContainerController.findItxContainerContainersByLsTypeEqualsAndFirstContainerEqualsForm(Model uiModel) { - uiModel.addAttribute("containers", Container.findAllContainers()); - return "itxcontainercontainers/findItxContainerContainersByLsTypeEqualsAndFirstContainerEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndFirstContainerEquals", method = RequestMethod.GET) - public String ItxContainerContainerController.findItxContainerContainersByLsTypeEqualsAndFirstContainerEquals(@RequestParam("lsType") String lsType, @RequestParam("firstContainer") Container firstContainer, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxcontainercontainers", ItxContainerContainer.findItxContainerContainersByLsTypeEqualsAndFirstContainerEquals(lsType, firstContainer, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxContainerContainer.countFindItxContainerContainersByLsTypeEqualsAndFirstContainerEquals(lsType, firstContainer) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxcontainercontainers", ItxContainerContainer.findItxContainerContainersByLsTypeEqualsAndFirstContainerEquals(lsType, firstContainer, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxcontainercontainers/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndSecondContainerEquals", "form" }, method = RequestMethod.GET) - public String ItxContainerContainerController.findItxContainerContainersByLsTypeEqualsAndSecondContainerEqualsForm(Model uiModel) { - uiModel.addAttribute("containers", Container.findAllContainers()); - return "itxcontainercontainers/findItxContainerContainersByLsTypeEqualsAndSecondContainerEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndSecondContainerEquals", method = RequestMethod.GET) - public String ItxContainerContainerController.findItxContainerContainersByLsTypeEqualsAndSecondContainerEquals(@RequestParam("lsType") String lsType, @RequestParam("secondContainer") Container secondContainer, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxcontainercontainers", ItxContainerContainer.findItxContainerContainersByLsTypeEqualsAndSecondContainerEquals(lsType, secondContainer, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxContainerContainer.countFindItxContainerContainersByLsTypeEqualsAndSecondContainerEquals(lsType, secondContainer) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxcontainercontainers", ItxContainerContainer.findItxContainerContainersByLsTypeEqualsAndSecondContainerEquals(lsType, secondContainer, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxcontainercontainers/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller_Json.aj deleted file mode 100755 index 0e6aedee5..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerController_Roo_Controller_Json.aj +++ /dev/null @@ -1,149 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ItxContainerContainer; -import com.labsynch.labseer.web.ItxContainerContainerController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxContainerContainerController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxContainerContainerController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxContainerContainer itxContainerContainer = ItxContainerContainer.findItxContainerContainer(id); - if (itxContainerContainer == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxContainerContainer.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxContainerContainerController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxContainerContainer.findAllItxContainerContainers(); - return new ResponseEntity(ItxContainerContainer.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxContainerContainerController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxContainerContainer itxContainerContainer = ItxContainerContainer.fromJsonToItxContainerContainer(json); - itxContainerContainer.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxContainerContainer.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxContainerContainerController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxContainerContainer itxContainerContainer: ItxContainerContainer.fromJsonArrayToItxContainerContainers(json)) { - itxContainerContainer.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxContainerContainerController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxContainerContainer itxContainerContainer = ItxContainerContainer.fromJsonToItxContainerContainer(json); - itxContainerContainer.setId(id); - if (itxContainerContainer.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxContainerContainerController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxContainerContainer itxContainerContainer = ItxContainerContainer.findItxContainerContainer(id); - if (itxContainerContainer == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxContainerContainer.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxContainerContainerController.jsonFindItxContainerContainersByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxContainerContainer.toJsonArray(ItxContainerContainer.findItxContainerContainersByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndFirstContainerEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxContainerContainerController.jsonFindItxContainerContainersByLsTypeEqualsAndFirstContainerEquals(@RequestParam("lsType") String lsType, @RequestParam("firstContainer") Container firstContainer) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxContainerContainer.toJsonArray(ItxContainerContainer.findItxContainerContainersByLsTypeEqualsAndFirstContainerEquals(lsType, firstContainer).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndSecondContainerEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxContainerContainerController.jsonFindItxContainerContainersByLsTypeEqualsAndSecondContainerEquals(@RequestParam("lsType") String lsType, @RequestParam("secondContainer") Container secondContainer) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxContainerContainer.toJsonArray(ItxContainerContainer.findItxContainerContainersByLsTypeEqualsAndSecondContainerEquals(lsType, secondContainer).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController.java b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController.java deleted file mode 100755 index 408e36423..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxContainerContainerState; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.FileReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ItxContainerContainerState.class) -@Controller -@RequestMapping("/itxcontainercontainerstates") -@RooWebScaffold(path = "itxcontainercontainerstates", formBackingObject = ItxContainerContainerState.class) -public class ItxContainerContainerStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController_Roo_Controller.aj deleted file mode 100755 index 6fb65582d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController_Roo_Controller.aj +++ /dev/null @@ -1,114 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxContainerContainer; -import com.labsynch.labseer.domain.ItxContainerContainerState; -import com.labsynch.labseer.domain.ItxContainerContainerValue; -import com.labsynch.labseer.web.ItxContainerContainerStateController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxContainerContainerStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxContainerContainerStateController.create(@Valid ItxContainerContainerState itxContainerContainerState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxContainerContainerState); - return "itxcontainercontainerstates/create"; - } - uiModel.asMap().clear(); - itxContainerContainerState.persist(); - return "redirect:/itxcontainercontainerstates/" + encodeUrlPathSegment(itxContainerContainerState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxContainerContainerStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxContainerContainerState()); - return "itxcontainercontainerstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxContainerContainerStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxcontainercontainerstate", ItxContainerContainerState.findItxContainerContainerState(id)); - uiModel.addAttribute("itemId", id); - return "itxcontainercontainerstates/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxContainerContainerStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxcontainercontainerstates", ItxContainerContainerState.findItxContainerContainerStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxContainerContainerState.countItxContainerContainerStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxcontainercontainerstates", ItxContainerContainerState.findAllItxContainerContainerStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxcontainercontainerstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxContainerContainerStateController.update(@Valid ItxContainerContainerState itxContainerContainerState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxContainerContainerState); - return "itxcontainercontainerstates/update"; - } - uiModel.asMap().clear(); - itxContainerContainerState.merge(); - return "redirect:/itxcontainercontainerstates/" + encodeUrlPathSegment(itxContainerContainerState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxContainerContainerStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxContainerContainerState.findItxContainerContainerState(id)); - return "itxcontainercontainerstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxContainerContainerStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxContainerContainerState itxContainerContainerState = ItxContainerContainerState.findItxContainerContainerState(id); - itxContainerContainerState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxcontainercontainerstates"; - } - - void ItxContainerContainerStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxContainerContainerState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxContainerContainerState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxContainerContainerStateController.populateEditForm(Model uiModel, ItxContainerContainerState itxContainerContainerState) { - uiModel.addAttribute("itxContainerContainerState", itxContainerContainerState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxcontainercontainers", ItxContainerContainer.findAllItxContainerContainers()); - uiModel.addAttribute("itxcontainercontainervalues", ItxContainerContainerValue.findAllItxContainerContainerValues()); - } - - String ItxContainerContainerStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController_Roo_Controller_Json.aj deleted file mode 100644 index e82fc088a..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerStateController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxContainerContainerState; -import com.labsynch.labseer.web.ItxContainerContainerStateController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxContainerContainerStateController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxContainerContainerStateController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxContainerContainerState itxContainerContainerState = ItxContainerContainerState.findItxContainerContainerState(id); - if (itxContainerContainerState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxContainerContainerState.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxContainerContainerStateController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxContainerContainerState.findAllItxContainerContainerStates(); - return new ResponseEntity(ItxContainerContainerState.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxContainerContainerStateController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxContainerContainerState itxContainerContainerState = ItxContainerContainerState.fromJsonToItxContainerContainerState(json); - itxContainerContainerState.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxContainerContainerState.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxContainerContainerStateController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxContainerContainerState itxContainerContainerState: ItxContainerContainerState.fromJsonArrayToItxContainerContainerStates(json)) { - itxContainerContainerState.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxContainerContainerStateController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxContainerContainerState itxContainerContainerState = ItxContainerContainerState.fromJsonToItxContainerContainerState(json); - itxContainerContainerState.setId(id); - if (itxContainerContainerState.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxContainerContainerStateController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxContainerContainerState itxContainerContainerState = ItxContainerContainerState.findItxContainerContainerState(id); - if (itxContainerContainerState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxContainerContainerState.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController.java b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController.java deleted file mode 100755 index 07ffd393e..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxContainerContainerValue; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.FileReader; -import java.io.StringReader; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ItxContainerContainerValue.class) -@Controller -@RequestMapping("/itxcontainercontainervalues") -@RooWebScaffold(path = "itxcontainercontainervalues", formBackingObject = ItxContainerContainerValue.class) -public class ItxContainerContainerValueController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController_Roo_Controller.aj deleted file mode 100755 index e481d8621..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController_Roo_Controller.aj +++ /dev/null @@ -1,113 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxContainerContainerState; -import com.labsynch.labseer.domain.ItxContainerContainerValue; -import com.labsynch.labseer.web.ItxContainerContainerValueController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxContainerContainerValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxContainerContainerValueController.create(@Valid ItxContainerContainerValue itxContainerContainerValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxContainerContainerValue); - return "itxcontainercontainervalues/create"; - } - uiModel.asMap().clear(); - itxContainerContainerValue.persist(); - return "redirect:/itxcontainercontainervalues/" + encodeUrlPathSegment(itxContainerContainerValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxContainerContainerValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxContainerContainerValue()); - return "itxcontainercontainervalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxContainerContainerValueController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxcontainercontainervalue", ItxContainerContainerValue.findItxContainerContainerValue(id)); - uiModel.addAttribute("itemId", id); - return "itxcontainercontainervalues/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxContainerContainerValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxcontainercontainervalues", ItxContainerContainerValue.findItxContainerContainerValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxContainerContainerValue.countItxContainerContainerValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxcontainercontainervalues", ItxContainerContainerValue.findAllItxContainerContainerValues(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxcontainercontainervalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxContainerContainerValueController.update(@Valid ItxContainerContainerValue itxContainerContainerValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxContainerContainerValue); - return "itxcontainercontainervalues/update"; - } - uiModel.asMap().clear(); - itxContainerContainerValue.merge(); - return "redirect:/itxcontainercontainervalues/" + encodeUrlPathSegment(itxContainerContainerValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxContainerContainerValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxContainerContainerValue.findItxContainerContainerValue(id)); - return "itxcontainercontainervalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxContainerContainerValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxContainerContainerValue itxContainerContainerValue = ItxContainerContainerValue.findItxContainerContainerValue(id); - itxContainerContainerValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxcontainercontainervalues"; - } - - void ItxContainerContainerValueController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxContainerContainerValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxContainerContainerValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxContainerContainerValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxContainerContainerValueController.populateEditForm(Model uiModel, ItxContainerContainerValue itxContainerContainerValue) { - uiModel.addAttribute("itxContainerContainerValue", itxContainerContainerValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxcontainercontainerstates", ItxContainerContainerState.findAllItxContainerContainerStates()); - } - - String ItxContainerContainerValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController_Roo_Controller_Json.aj deleted file mode 100644 index 83b935cd3..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxContainerContainerValueController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxContainerContainerValue; -import com.labsynch.labseer.web.ItxContainerContainerValueController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxContainerContainerValueController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxContainerContainerValueController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxContainerContainerValue itxContainerContainerValue = ItxContainerContainerValue.findItxContainerContainerValue(id); - if (itxContainerContainerValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxContainerContainerValue.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxContainerContainerValueController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxContainerContainerValue.findAllItxContainerContainerValues(); - return new ResponseEntity(ItxContainerContainerValue.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxContainerContainerValueController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxContainerContainerValue itxContainerContainerValue = ItxContainerContainerValue.fromJsonToItxContainerContainerValue(json); - itxContainerContainerValue.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxContainerContainerValue.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxContainerContainerValueController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxContainerContainerValue itxContainerContainerValue: ItxContainerContainerValue.fromJsonArrayToItxContainerContainerValues(json)) { - itxContainerContainerValue.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxContainerContainerValueController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxContainerContainerValue itxContainerContainerValue = ItxContainerContainerValue.fromJsonToItxContainerContainerValue(json); - itxContainerContainerValue.setId(id); - if (itxContainerContainerValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxContainerContainerValueController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxContainerContainerValue itxContainerContainerValue = ItxContainerContainerValue.findItxContainerContainerValue(id); - if (itxContainerContainerValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxContainerContainerValue.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController.java b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController.java deleted file mode 100644 index 263eba090..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxExperimentExperiment; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RooWebJson(jsonObject = ItxExperimentExperiment.class) -@Controller -@RequestMapping("/itxexperimentexperiments") -@RooWebScaffold(path = "itxexperimentexperiments", formBackingObject = ItxExperimentExperiment.class) -@RooWebFinder -public class ItxExperimentExperimentController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller.aj deleted file mode 100644 index dc322153a..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller.aj +++ /dev/null @@ -1,126 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ItxExperimentExperiment; -import com.labsynch.labseer.domain.ItxExperimentExperimentState; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.ItxExperimentExperimentController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxExperimentExperimentController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxExperimentExperimentController.create(@Valid ItxExperimentExperiment itxExperimentExperiment, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxExperimentExperiment); - return "itxexperimentexperiments/create"; - } - uiModel.asMap().clear(); - itxExperimentExperiment.persist(); - return "redirect:/itxexperimentexperiments/" + encodeUrlPathSegment(itxExperimentExperiment.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxExperimentExperimentController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxExperimentExperiment()); - List dependencies = new ArrayList(); - if (Experiment.countExperiments() == 0) { - dependencies.add(new String[] { "firstExperiment", "experiments" }); - } - if (Experiment.countExperiments() == 0) { - dependencies.add(new String[] { "secondExperiment", "experiments" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "itxexperimentexperiments/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxExperimentExperimentController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxexperimentexperiment", ItxExperimentExperiment.findItxExperimentExperiment(id)); - uiModel.addAttribute("itemId", id); - return "itxexperimentexperiments/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxExperimentExperimentController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxexperimentexperiments", ItxExperimentExperiment.findItxExperimentExperimentEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxExperimentExperiment.countItxExperimentExperiments() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxexperimentexperiments", ItxExperimentExperiment.findAllItxExperimentExperiments(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxexperimentexperiments/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxExperimentExperimentController.update(@Valid ItxExperimentExperiment itxExperimentExperiment, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxExperimentExperiment); - return "itxexperimentexperiments/update"; - } - uiModel.asMap().clear(); - itxExperimentExperiment.merge(); - return "redirect:/itxexperimentexperiments/" + encodeUrlPathSegment(itxExperimentExperiment.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxExperimentExperimentController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxExperimentExperiment.findItxExperimentExperiment(id)); - return "itxexperimentexperiments/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxExperimentExperimentController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxExperimentExperiment itxExperimentExperiment = ItxExperimentExperiment.findItxExperimentExperiment(id); - itxExperimentExperiment.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxexperimentexperiments"; - } - - void ItxExperimentExperimentController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxExperimentExperiment_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxExperimentExperiment_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxExperimentExperimentController.populateEditForm(Model uiModel, ItxExperimentExperiment itxExperimentExperiment) { - uiModel.addAttribute("itxExperimentExperiment", itxExperimentExperiment); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - uiModel.addAttribute("itxexperimentexperimentstates", ItxExperimentExperimentState.findAllItxExperimentExperimentStates()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - } - - String ItxExperimentExperimentController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller_Finder.aj deleted file mode 100644 index 4c178546d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,78 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ItxExperimentExperiment; -import com.labsynch.labseer.web.ItxExperimentExperimentController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ItxExperimentExperimentController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByFirstExperiment", "form" }, method = RequestMethod.GET) - public String ItxExperimentExperimentController.findItxExperimentExperimentsByFirstExperimentForm(Model uiModel) { - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - return "itxexperimentexperiments/findItxExperimentExperimentsByFirstExperiment"; - } - - @RequestMapping(params = "find=ByFirstExperiment", method = RequestMethod.GET) - public String ItxExperimentExperimentController.findItxExperimentExperimentsByFirstExperiment(@RequestParam("firstExperiment") Experiment firstExperiment, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxexperimentexperiments", ItxExperimentExperiment.findItxExperimentExperimentsByFirstExperiment(firstExperiment, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxExperimentExperiment.countFindItxExperimentExperimentsByFirstExperiment(firstExperiment) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxexperimentexperiments", ItxExperimentExperiment.findItxExperimentExperimentsByFirstExperiment(firstExperiment, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxexperimentexperiments/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String ItxExperimentExperimentController.findItxExperimentExperimentsByLsTransactionEqualsForm(Model uiModel) { - return "itxexperimentexperiments/findItxExperimentExperimentsByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String ItxExperimentExperimentController.findItxExperimentExperimentsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxexperimentexperiments", ItxExperimentExperiment.findItxExperimentExperimentsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxExperimentExperiment.countFindItxExperimentExperimentsByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxexperimentexperiments", ItxExperimentExperiment.findItxExperimentExperimentsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxexperimentexperiments/list"; - } - - @RequestMapping(params = { "find=BySecondExperiment", "form" }, method = RequestMethod.GET) - public String ItxExperimentExperimentController.findItxExperimentExperimentsBySecondExperimentForm(Model uiModel) { - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - return "itxexperimentexperiments/findItxExperimentExperimentsBySecondExperiment"; - } - - @RequestMapping(params = "find=BySecondExperiment", method = RequestMethod.GET) - public String ItxExperimentExperimentController.findItxExperimentExperimentsBySecondExperiment(@RequestParam("secondExperiment") Experiment secondExperiment, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxexperimentexperiments", ItxExperimentExperiment.findItxExperimentExperimentsBySecondExperiment(secondExperiment, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxExperimentExperiment.countFindItxExperimentExperimentsBySecondExperiment(secondExperiment) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxexperimentexperiments", ItxExperimentExperiment.findItxExperimentExperimentsBySecondExperiment(secondExperiment, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxexperimentexperiments/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller_Json.aj deleted file mode 100644 index f3b9fd0c1..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentController_Roo_Controller_Json.aj +++ /dev/null @@ -1,149 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ItxExperimentExperiment; -import com.labsynch.labseer.web.ItxExperimentExperimentController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxExperimentExperimentController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxExperimentExperimentController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxExperimentExperiment itxExperimentExperiment = ItxExperimentExperiment.findItxExperimentExperiment(id); - if (itxExperimentExperiment == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxExperimentExperiment.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxExperimentExperimentController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxExperimentExperiment.findAllItxExperimentExperiments(); - return new ResponseEntity(ItxExperimentExperiment.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxExperimentExperimentController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxExperimentExperiment itxExperimentExperiment = ItxExperimentExperiment.fromJsonToItxExperimentExperiment(json); - itxExperimentExperiment.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxExperimentExperiment.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxExperimentExperimentController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxExperimentExperiment itxExperimentExperiment: ItxExperimentExperiment.fromJsonArrayToItxExperimentExperiments(json)) { - itxExperimentExperiment.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxExperimentExperimentController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxExperimentExperiment itxExperimentExperiment = ItxExperimentExperiment.fromJsonToItxExperimentExperiment(json); - itxExperimentExperiment.setId(id); - if (itxExperimentExperiment.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxExperimentExperimentController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxExperimentExperiment itxExperimentExperiment = ItxExperimentExperiment.findItxExperimentExperiment(id); - if (itxExperimentExperiment == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxExperimentExperiment.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByFirstExperiment", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxExperimentExperimentController.jsonFindItxExperimentExperimentsByFirstExperiment(@RequestParam("firstExperiment") Experiment firstExperiment) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxExperimentExperiment.toJsonArray(ItxExperimentExperiment.findItxExperimentExperimentsByFirstExperiment(firstExperiment).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxExperimentExperimentController.jsonFindItxExperimentExperimentsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxExperimentExperiment.toJsonArray(ItxExperimentExperiment.findItxExperimentExperimentsByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=BySecondExperiment", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxExperimentExperimentController.jsonFindItxExperimentExperimentsBySecondExperiment(@RequestParam("secondExperiment") Experiment secondExperiment) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxExperimentExperiment.toJsonArray(ItxExperimentExperiment.findItxExperimentExperimentsBySecondExperiment(secondExperiment).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController.java b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController.java deleted file mode 100644 index 6f74aa5b6..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxExperimentExperimentState; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RooWebJson(jsonObject = ItxExperimentExperimentState.class) -@Controller -@RequestMapping("/itxexperimentexperimentstates") -@RooWebScaffold(path = "itxexperimentexperimentstates", formBackingObject = ItxExperimentExperimentState.class) -public class ItxExperimentExperimentStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController_Roo_Controller.aj deleted file mode 100644 index 7f4ee6107..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController_Roo_Controller.aj +++ /dev/null @@ -1,114 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxExperimentExperiment; -import com.labsynch.labseer.domain.ItxExperimentExperimentState; -import com.labsynch.labseer.domain.ItxExperimentExperimentValue; -import com.labsynch.labseer.web.ItxExperimentExperimentStateController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxExperimentExperimentStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxExperimentExperimentStateController.create(@Valid ItxExperimentExperimentState itxExperimentExperimentState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxExperimentExperimentState); - return "itxexperimentexperimentstates/create"; - } - uiModel.asMap().clear(); - itxExperimentExperimentState.persist(); - return "redirect:/itxexperimentexperimentstates/" + encodeUrlPathSegment(itxExperimentExperimentState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxExperimentExperimentStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxExperimentExperimentState()); - return "itxexperimentexperimentstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxExperimentExperimentStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxexperimentexperimentstate", ItxExperimentExperimentState.findItxExperimentExperimentState(id)); - uiModel.addAttribute("itemId", id); - return "itxexperimentexperimentstates/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxExperimentExperimentStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxexperimentexperimentstates", ItxExperimentExperimentState.findItxExperimentExperimentStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxExperimentExperimentState.countItxExperimentExperimentStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxexperimentexperimentstates", ItxExperimentExperimentState.findAllItxExperimentExperimentStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxexperimentexperimentstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxExperimentExperimentStateController.update(@Valid ItxExperimentExperimentState itxExperimentExperimentState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxExperimentExperimentState); - return "itxexperimentexperimentstates/update"; - } - uiModel.asMap().clear(); - itxExperimentExperimentState.merge(); - return "redirect:/itxexperimentexperimentstates/" + encodeUrlPathSegment(itxExperimentExperimentState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxExperimentExperimentStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxExperimentExperimentState.findItxExperimentExperimentState(id)); - return "itxexperimentexperimentstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxExperimentExperimentStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxExperimentExperimentState itxExperimentExperimentState = ItxExperimentExperimentState.findItxExperimentExperimentState(id); - itxExperimentExperimentState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxexperimentexperimentstates"; - } - - void ItxExperimentExperimentStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxExperimentExperimentState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxExperimentExperimentState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxExperimentExperimentStateController.populateEditForm(Model uiModel, ItxExperimentExperimentState itxExperimentExperimentState) { - uiModel.addAttribute("itxExperimentExperimentState", itxExperimentExperimentState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxexperimentexperiments", ItxExperimentExperiment.findAllItxExperimentExperiments()); - uiModel.addAttribute("itxexperimentexperimentvalues", ItxExperimentExperimentValue.findAllItxExperimentExperimentValues()); - } - - String ItxExperimentExperimentStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController_Roo_Controller_Json.aj deleted file mode 100644 index 118f97bef..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentStateController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxExperimentExperimentState; -import com.labsynch.labseer.web.ItxExperimentExperimentStateController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxExperimentExperimentStateController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxExperimentExperimentStateController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxExperimentExperimentState itxExperimentExperimentState = ItxExperimentExperimentState.findItxExperimentExperimentState(id); - if (itxExperimentExperimentState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxExperimentExperimentState.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxExperimentExperimentStateController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxExperimentExperimentState.findAllItxExperimentExperimentStates(); - return new ResponseEntity(ItxExperimentExperimentState.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxExperimentExperimentStateController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxExperimentExperimentState itxExperimentExperimentState = ItxExperimentExperimentState.fromJsonToItxExperimentExperimentState(json); - itxExperimentExperimentState.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxExperimentExperimentState.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxExperimentExperimentStateController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxExperimentExperimentState itxExperimentExperimentState: ItxExperimentExperimentState.fromJsonArrayToItxExperimentExperimentStates(json)) { - itxExperimentExperimentState.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxExperimentExperimentStateController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxExperimentExperimentState itxExperimentExperimentState = ItxExperimentExperimentState.fromJsonToItxExperimentExperimentState(json); - itxExperimentExperimentState.setId(id); - if (itxExperimentExperimentState.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxExperimentExperimentStateController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxExperimentExperimentState itxExperimentExperimentState = ItxExperimentExperimentState.findItxExperimentExperimentState(id); - if (itxExperimentExperimentState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxExperimentExperimentState.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController.java b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController.java deleted file mode 100644 index 3a6ef1de1..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxExperimentExperimentValue; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RooWebJson(jsonObject = ItxExperimentExperimentValue.class) -@Controller -@RequestMapping("/itxexperimentexperimentvalues") -@RooWebScaffold(path = "itxexperimentexperimentvalues", formBackingObject = ItxExperimentExperimentValue.class) -public class ItxExperimentExperimentValueController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController_Roo_Controller.aj deleted file mode 100644 index 3fc20ba2b..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController_Roo_Controller.aj +++ /dev/null @@ -1,113 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxExperimentExperimentState; -import com.labsynch.labseer.domain.ItxExperimentExperimentValue; -import com.labsynch.labseer.web.ItxExperimentExperimentValueController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxExperimentExperimentValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxExperimentExperimentValueController.create(@Valid ItxExperimentExperimentValue itxExperimentExperimentValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxExperimentExperimentValue); - return "itxexperimentexperimentvalues/create"; - } - uiModel.asMap().clear(); - itxExperimentExperimentValue.persist(); - return "redirect:/itxexperimentexperimentvalues/" + encodeUrlPathSegment(itxExperimentExperimentValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxExperimentExperimentValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxExperimentExperimentValue()); - return "itxexperimentexperimentvalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxExperimentExperimentValueController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxexperimentexperimentvalue", ItxExperimentExperimentValue.findItxExperimentExperimentValue(id)); - uiModel.addAttribute("itemId", id); - return "itxexperimentexperimentvalues/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxExperimentExperimentValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxexperimentexperimentvalues", ItxExperimentExperimentValue.findItxExperimentExperimentValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxExperimentExperimentValue.countItxExperimentExperimentValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxexperimentexperimentvalues", ItxExperimentExperimentValue.findAllItxExperimentExperimentValues(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxexperimentexperimentvalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxExperimentExperimentValueController.update(@Valid ItxExperimentExperimentValue itxExperimentExperimentValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxExperimentExperimentValue); - return "itxexperimentexperimentvalues/update"; - } - uiModel.asMap().clear(); - itxExperimentExperimentValue.merge(); - return "redirect:/itxexperimentexperimentvalues/" + encodeUrlPathSegment(itxExperimentExperimentValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxExperimentExperimentValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxExperimentExperimentValue.findItxExperimentExperimentValue(id)); - return "itxexperimentexperimentvalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxExperimentExperimentValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxExperimentExperimentValue itxExperimentExperimentValue = ItxExperimentExperimentValue.findItxExperimentExperimentValue(id); - itxExperimentExperimentValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxexperimentexperimentvalues"; - } - - void ItxExperimentExperimentValueController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxExperimentExperimentValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxExperimentExperimentValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxExperimentExperimentValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxExperimentExperimentValueController.populateEditForm(Model uiModel, ItxExperimentExperimentValue itxExperimentExperimentValue) { - uiModel.addAttribute("itxExperimentExperimentValue", itxExperimentExperimentValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxexperimentexperimentstates", ItxExperimentExperimentState.findAllItxExperimentExperimentStates()); - } - - String ItxExperimentExperimentValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController_Roo_Controller_Json.aj deleted file mode 100644 index 32d17401d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxExperimentExperimentValueController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxExperimentExperimentValue; -import com.labsynch.labseer.web.ItxExperimentExperimentValueController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxExperimentExperimentValueController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxExperimentExperimentValueController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxExperimentExperimentValue itxExperimentExperimentValue = ItxExperimentExperimentValue.findItxExperimentExperimentValue(id); - if (itxExperimentExperimentValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxExperimentExperimentValue.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxExperimentExperimentValueController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxExperimentExperimentValue.findAllItxExperimentExperimentValues(); - return new ResponseEntity(ItxExperimentExperimentValue.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxExperimentExperimentValueController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxExperimentExperimentValue itxExperimentExperimentValue = ItxExperimentExperimentValue.fromJsonToItxExperimentExperimentValue(json); - itxExperimentExperimentValue.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxExperimentExperimentValue.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxExperimentExperimentValueController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxExperimentExperimentValue itxExperimentExperimentValue: ItxExperimentExperimentValue.fromJsonArrayToItxExperimentExperimentValues(json)) { - itxExperimentExperimentValue.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxExperimentExperimentValueController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxExperimentExperimentValue itxExperimentExperimentValue = ItxExperimentExperimentValue.fromJsonToItxExperimentExperimentValue(json); - itxExperimentExperimentValue.setId(id); - if (itxExperimentExperimentValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxExperimentExperimentValueController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxExperimentExperimentValue itxExperimentExperimentValue = ItxExperimentExperimentValue.findItxExperimentExperimentValue(id); - if (itxExperimentExperimentValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxExperimentExperimentValue.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController.java b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController.java deleted file mode 100644 index 55e38a395..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxLsThingLsThing; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RooWebJson(jsonObject = ItxLsThingLsThing.class) -@Controller -@RequestMapping("/itxlsthinglsthings") -@RooWebScaffold(path = "itxlsthinglsthings", formBackingObject = ItxLsThingLsThing.class) -@RooWebFinder -public class ItxLsThingLsThingController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller.aj deleted file mode 100644 index 2357b9644..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller.aj +++ /dev/null @@ -1,126 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxLsThingLsThing; -import com.labsynch.labseer.domain.ItxLsThingLsThingState; -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.ItxLsThingLsThingController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxLsThingLsThingController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxLsThingLsThingController.create(@Valid ItxLsThingLsThing itxLsThingLsThing, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxLsThingLsThing); - return "itxlsthinglsthings/create"; - } - uiModel.asMap().clear(); - itxLsThingLsThing.persist(); - return "redirect:/itxlsthinglsthings/" + encodeUrlPathSegment(itxLsThingLsThing.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxLsThingLsThingController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxLsThingLsThing()); - List dependencies = new ArrayList(); - if (LsThing.countLsThings() == 0) { - dependencies.add(new String[] { "firstLsThing", "lsthings" }); - } - if (LsThing.countLsThings() == 0) { - dependencies.add(new String[] { "secondLsThing", "lsthings" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "itxlsthinglsthings/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxLsThingLsThingController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxlsthinglsthing", ItxLsThingLsThing.findItxLsThingLsThing(id)); - uiModel.addAttribute("itemId", id); - return "itxlsthinglsthings/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxLsThingLsThingController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxlsthinglsthings", ItxLsThingLsThing.findItxLsThingLsThingEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxLsThingLsThing.countItxLsThingLsThings() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxlsthinglsthings", ItxLsThingLsThing.findAllItxLsThingLsThings(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxlsthinglsthings/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxLsThingLsThingController.update(@Valid ItxLsThingLsThing itxLsThingLsThing, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxLsThingLsThing); - return "itxlsthinglsthings/update"; - } - uiModel.asMap().clear(); - itxLsThingLsThing.merge(); - return "redirect:/itxlsthinglsthings/" + encodeUrlPathSegment(itxLsThingLsThing.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxLsThingLsThingController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxLsThingLsThing.findItxLsThingLsThing(id)); - return "itxlsthinglsthings/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxLsThingLsThingController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxLsThingLsThing itxLsThingLsThing = ItxLsThingLsThing.findItxLsThingLsThing(id); - itxLsThingLsThing.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxlsthinglsthings"; - } - - void ItxLsThingLsThingController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxLsThingLsThing_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxLsThingLsThing_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxLsThingLsThingController.populateEditForm(Model uiModel, ItxLsThingLsThing itxLsThingLsThing) { - uiModel.addAttribute("itxLsThingLsThing", itxLsThingLsThing); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxlsthinglsthingstates", ItxLsThingLsThingState.findAllItxLsThingLsThingStates()); - uiModel.addAttribute("lsthings", LsThing.findAllLsThings()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - } - - String ItxLsThingLsThingController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller_Finder.aj deleted file mode 100644 index ed865284d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,78 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxLsThingLsThing; -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.web.ItxLsThingLsThingController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ItxLsThingLsThingController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeNameEquals", "form" }, method = RequestMethod.GET) - public String ItxLsThingLsThingController.findItxLsThingLsThingsByCodeNameEqualsForm(Model uiModel) { - return "itxlsthinglsthings/findItxLsThingLsThingsByCodeNameEquals"; - } - - @RequestMapping(params = "find=ByCodeNameEquals", method = RequestMethod.GET) - public String ItxLsThingLsThingController.findItxLsThingLsThingsByCodeNameEquals(@RequestParam("codeName") String codeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxlsthinglsthings", ItxLsThingLsThing.findItxLsThingLsThingsByCodeNameEquals(codeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxLsThingLsThing.countFindItxLsThingLsThingsByCodeNameEquals(codeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxlsthinglsthings", ItxLsThingLsThing.findItxLsThingLsThingsByCodeNameEquals(codeName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxlsthinglsthings/list"; - } - - @RequestMapping(params = { "find=ByFirstLsThing", "form" }, method = RequestMethod.GET) - public String ItxLsThingLsThingController.findItxLsThingLsThingsByFirstLsThingForm(Model uiModel) { - uiModel.addAttribute("lsthings", LsThing.findAllLsThings()); - return "itxlsthinglsthings/findItxLsThingLsThingsByFirstLsThing"; - } - - @RequestMapping(params = "find=ByFirstLsThing", method = RequestMethod.GET) - public String ItxLsThingLsThingController.findItxLsThingLsThingsByFirstLsThing(@RequestParam("firstLsThing") LsThing firstLsThing, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxlsthinglsthings", ItxLsThingLsThing.findItxLsThingLsThingsByFirstLsThing(firstLsThing, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxLsThingLsThing.countFindItxLsThingLsThingsByFirstLsThing(firstLsThing) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxlsthinglsthings", ItxLsThingLsThing.findItxLsThingLsThingsByFirstLsThing(firstLsThing, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxlsthinglsthings/list"; - } - - @RequestMapping(params = { "find=BySecondLsThing", "form" }, method = RequestMethod.GET) - public String ItxLsThingLsThingController.findItxLsThingLsThingsBySecondLsThingForm(Model uiModel) { - uiModel.addAttribute("lsthings", LsThing.findAllLsThings()); - return "itxlsthinglsthings/findItxLsThingLsThingsBySecondLsThing"; - } - - @RequestMapping(params = "find=BySecondLsThing", method = RequestMethod.GET) - public String ItxLsThingLsThingController.findItxLsThingLsThingsBySecondLsThing(@RequestParam("secondLsThing") LsThing secondLsThing, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxlsthinglsthings", ItxLsThingLsThing.findItxLsThingLsThingsBySecondLsThing(secondLsThing, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxLsThingLsThing.countFindItxLsThingLsThingsBySecondLsThing(secondLsThing) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxlsthinglsthings", ItxLsThingLsThing.findItxLsThingLsThingsBySecondLsThing(secondLsThing, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxlsthinglsthings/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller_Json.aj deleted file mode 100644 index 19a01817c..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingController_Roo_Controller_Json.aj +++ /dev/null @@ -1,149 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxLsThingLsThing; -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.web.ItxLsThingLsThingController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxLsThingLsThingController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxLsThingLsThingController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxLsThingLsThing itxLsThingLsThing = ItxLsThingLsThing.findItxLsThingLsThing(id); - if (itxLsThingLsThing == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxLsThingLsThing.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxLsThingLsThingController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxLsThingLsThing.findAllItxLsThingLsThings(); - return new ResponseEntity(ItxLsThingLsThing.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxLsThingLsThingController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxLsThingLsThing itxLsThingLsThing = ItxLsThingLsThing.fromJsonToItxLsThingLsThing(json); - itxLsThingLsThing.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxLsThingLsThing.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxLsThingLsThingController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxLsThingLsThing itxLsThingLsThing: ItxLsThingLsThing.fromJsonArrayToItxLsThingLsThings(json)) { - itxLsThingLsThing.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxLsThingLsThingController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxLsThingLsThing itxLsThingLsThing = ItxLsThingLsThing.fromJsonToItxLsThingLsThing(json); - itxLsThingLsThing.setId(id); - if (itxLsThingLsThing.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxLsThingLsThingController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxLsThingLsThing itxLsThingLsThing = ItxLsThingLsThing.findItxLsThingLsThing(id); - if (itxLsThingLsThing == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxLsThingLsThing.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxLsThingLsThingController.jsonFindItxLsThingLsThingsByCodeNameEquals(@RequestParam("codeName") String codeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxLsThingLsThing.toJsonArray(ItxLsThingLsThing.findItxLsThingLsThingsByCodeNameEquals(codeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByFirstLsThing", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxLsThingLsThingController.jsonFindItxLsThingLsThingsByFirstLsThing(@RequestParam("firstLsThing") LsThing firstLsThing) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxLsThingLsThing.toJsonArray(ItxLsThingLsThing.findItxLsThingLsThingsByFirstLsThing(firstLsThing).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=BySecondLsThing", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxLsThingLsThingController.jsonFindItxLsThingLsThingsBySecondLsThing(@RequestParam("secondLsThing") LsThing secondLsThing) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxLsThingLsThing.toJsonArray(ItxLsThingLsThing.findItxLsThingLsThingsBySecondLsThing(secondLsThing).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController.java b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController.java deleted file mode 100644 index 5c4e313cf..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxLsThingLsThingState; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RooWebJson(jsonObject = ItxLsThingLsThingState.class) -@Controller -@RequestMapping("/itxlsthinglsthingstates") -@RooWebScaffold(path = "itxlsthinglsthingstates", formBackingObject = ItxLsThingLsThingState.class) -public class ItxLsThingLsThingStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController_Roo_Controller.aj deleted file mode 100644 index 5b95e0e32..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController_Roo_Controller.aj +++ /dev/null @@ -1,114 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxLsThingLsThing; -import com.labsynch.labseer.domain.ItxLsThingLsThingState; -import com.labsynch.labseer.domain.ItxLsThingLsThingValue; -import com.labsynch.labseer.web.ItxLsThingLsThingStateController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxLsThingLsThingStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxLsThingLsThingStateController.create(@Valid ItxLsThingLsThingState itxLsThingLsThingState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxLsThingLsThingState); - return "itxlsthinglsthingstates/create"; - } - uiModel.asMap().clear(); - itxLsThingLsThingState.persist(); - return "redirect:/itxlsthinglsthingstates/" + encodeUrlPathSegment(itxLsThingLsThingState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxLsThingLsThingStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxLsThingLsThingState()); - return "itxlsthinglsthingstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxLsThingLsThingStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxlsthinglsthingstate", ItxLsThingLsThingState.findItxLsThingLsThingState(id)); - uiModel.addAttribute("itemId", id); - return "itxlsthinglsthingstates/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxLsThingLsThingStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxlsthinglsthingstates", ItxLsThingLsThingState.findItxLsThingLsThingStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxLsThingLsThingState.countItxLsThingLsThingStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxlsthinglsthingstates", ItxLsThingLsThingState.findAllItxLsThingLsThingStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxlsthinglsthingstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxLsThingLsThingStateController.update(@Valid ItxLsThingLsThingState itxLsThingLsThingState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxLsThingLsThingState); - return "itxlsthinglsthingstates/update"; - } - uiModel.asMap().clear(); - itxLsThingLsThingState.merge(); - return "redirect:/itxlsthinglsthingstates/" + encodeUrlPathSegment(itxLsThingLsThingState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxLsThingLsThingStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxLsThingLsThingState.findItxLsThingLsThingState(id)); - return "itxlsthinglsthingstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxLsThingLsThingStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxLsThingLsThingState itxLsThingLsThingState = ItxLsThingLsThingState.findItxLsThingLsThingState(id); - itxLsThingLsThingState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxlsthinglsthingstates"; - } - - void ItxLsThingLsThingStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxLsThingLsThingState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxLsThingLsThingState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxLsThingLsThingStateController.populateEditForm(Model uiModel, ItxLsThingLsThingState itxLsThingLsThingState) { - uiModel.addAttribute("itxLsThingLsThingState", itxLsThingLsThingState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxlsthinglsthings", ItxLsThingLsThing.findAllItxLsThingLsThings()); - uiModel.addAttribute("itxlsthinglsthingvalues", ItxLsThingLsThingValue.findAllItxLsThingLsThingValues()); - } - - String ItxLsThingLsThingStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController_Roo_Controller_Json.aj deleted file mode 100644 index 46945d9e1..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingStateController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxLsThingLsThingState; -import com.labsynch.labseer.web.ItxLsThingLsThingStateController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxLsThingLsThingStateController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxLsThingLsThingStateController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxLsThingLsThingState itxLsThingLsThingState = ItxLsThingLsThingState.findItxLsThingLsThingState(id); - if (itxLsThingLsThingState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxLsThingLsThingState.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxLsThingLsThingStateController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxLsThingLsThingState.findAllItxLsThingLsThingStates(); - return new ResponseEntity(ItxLsThingLsThingState.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxLsThingLsThingStateController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxLsThingLsThingState itxLsThingLsThingState = ItxLsThingLsThingState.fromJsonToItxLsThingLsThingState(json); - itxLsThingLsThingState.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxLsThingLsThingState.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxLsThingLsThingStateController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxLsThingLsThingState itxLsThingLsThingState: ItxLsThingLsThingState.fromJsonArrayToItxLsThingLsThingStates(json)) { - itxLsThingLsThingState.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxLsThingLsThingStateController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxLsThingLsThingState itxLsThingLsThingState = ItxLsThingLsThingState.fromJsonToItxLsThingLsThingState(json); - itxLsThingLsThingState.setId(id); - if (itxLsThingLsThingState.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxLsThingLsThingStateController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxLsThingLsThingState itxLsThingLsThingState = ItxLsThingLsThingState.findItxLsThingLsThingState(id); - if (itxLsThingLsThingState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxLsThingLsThingState.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController.java b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController.java deleted file mode 100644 index a4158dd87..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxLsThingLsThingValue; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RooWebJson(jsonObject = ItxLsThingLsThingValue.class) -@Controller -@RequestMapping("/itxlsthinglsthingvalues") -@RooWebScaffold(path = "itxlsthinglsthingvalues", formBackingObject = ItxLsThingLsThingValue.class) -public class ItxLsThingLsThingValueController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController_Roo_Controller.aj deleted file mode 100644 index d44f23edf..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController_Roo_Controller.aj +++ /dev/null @@ -1,113 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxLsThingLsThingState; -import com.labsynch.labseer.domain.ItxLsThingLsThingValue; -import com.labsynch.labseer.web.ItxLsThingLsThingValueController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxLsThingLsThingValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxLsThingLsThingValueController.create(@Valid ItxLsThingLsThingValue itxLsThingLsThingValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxLsThingLsThingValue); - return "itxlsthinglsthingvalues/create"; - } - uiModel.asMap().clear(); - itxLsThingLsThingValue.persist(); - return "redirect:/itxlsthinglsthingvalues/" + encodeUrlPathSegment(itxLsThingLsThingValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxLsThingLsThingValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxLsThingLsThingValue()); - return "itxlsthinglsthingvalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxLsThingLsThingValueController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxlsthinglsthingvalue", ItxLsThingLsThingValue.findItxLsThingLsThingValue(id)); - uiModel.addAttribute("itemId", id); - return "itxlsthinglsthingvalues/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxLsThingLsThingValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxlsthinglsthingvalues", ItxLsThingLsThingValue.findItxLsThingLsThingValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxLsThingLsThingValue.countItxLsThingLsThingValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxlsthinglsthingvalues", ItxLsThingLsThingValue.findAllItxLsThingLsThingValues(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxlsthinglsthingvalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxLsThingLsThingValueController.update(@Valid ItxLsThingLsThingValue itxLsThingLsThingValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxLsThingLsThingValue); - return "itxlsthinglsthingvalues/update"; - } - uiModel.asMap().clear(); - itxLsThingLsThingValue.merge(); - return "redirect:/itxlsthinglsthingvalues/" + encodeUrlPathSegment(itxLsThingLsThingValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxLsThingLsThingValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxLsThingLsThingValue.findItxLsThingLsThingValue(id)); - return "itxlsthinglsthingvalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxLsThingLsThingValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxLsThingLsThingValue itxLsThingLsThingValue = ItxLsThingLsThingValue.findItxLsThingLsThingValue(id); - itxLsThingLsThingValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxlsthinglsthingvalues"; - } - - void ItxLsThingLsThingValueController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxLsThingLsThingValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxLsThingLsThingValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxLsThingLsThingValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxLsThingLsThingValueController.populateEditForm(Model uiModel, ItxLsThingLsThingValue itxLsThingLsThingValue) { - uiModel.addAttribute("itxLsThingLsThingValue", itxLsThingLsThingValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxlsthinglsthingstates", ItxLsThingLsThingState.findAllItxLsThingLsThingStates()); - } - - String ItxLsThingLsThingValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController_Roo_Controller_Json.aj deleted file mode 100644 index a905faac2..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxLsThingLsThingValueController_Roo_Controller_Json.aj +++ /dev/null @@ -1,136 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxLsThingLsThingValue; -import com.labsynch.labseer.web.ItxLsThingLsThingValueController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxLsThingLsThingValueController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxLsThingLsThingValueController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxLsThingLsThingValue itxLsThingLsThingValue = ItxLsThingLsThingValue.findItxLsThingLsThingValue(id); - if (itxLsThingLsThingValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxLsThingLsThingValue.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxLsThingLsThingValueController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxLsThingLsThingValue.findAllItxLsThingLsThingValues(); - return new ResponseEntity(ItxLsThingLsThingValue.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxLsThingLsThingValueController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxLsThingLsThingValue itxLsThingLsThingValue = ItxLsThingLsThingValue.fromJsonToItxLsThingLsThingValue(json); - itxLsThingLsThingValue.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxLsThingLsThingValue.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxLsThingLsThingValueController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxLsThingLsThingValue itxLsThingLsThingValue: ItxLsThingLsThingValue.fromJsonArrayToItxLsThingLsThingValues(json)) { - itxLsThingLsThingValue.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxLsThingLsThingValueController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxLsThingLsThingValue itxLsThingLsThingValue = ItxLsThingLsThingValue.fromJsonToItxLsThingLsThingValue(json); - itxLsThingLsThingValue.setId(id); - if (itxLsThingLsThingValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxLsThingLsThingValueController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxLsThingLsThingValue itxLsThingLsThingValue = ItxLsThingLsThingValue.findItxLsThingLsThingValue(id); - if (itxLsThingLsThingValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxLsThingLsThingValue.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxLsThingLsThingValueController.jsonFindItxLsThingLsThingValuesByLsKindEquals(@RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxLsThingLsThingValue.toJsonArray(ItxLsThingLsThingValue.findItxLsThingLsThingValuesByLsKindEquals(lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxLsThingLsThingValueController.jsonFindItxLsThingLsThingValuesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxLsThingLsThingValue.toJsonArray(ItxLsThingLsThingValue.findItxLsThingLsThingValuesByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController.java b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController.java deleted file mode 100755 index 0a4910fbd..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxProtocolProtocol; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/itxprotocolprotocols") -@Controller -@RooWebScaffold(path = "itxprotocolprotocols", formBackingObject = ItxProtocolProtocol.class) -@RooWebJson(jsonObject = ItxProtocolProtocol.class) -@RooWebFinder -public class ItxProtocolProtocolController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller.aj deleted file mode 100755 index 21028f7ea..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller.aj +++ /dev/null @@ -1,126 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxProtocolProtocol; -import com.labsynch.labseer.domain.ItxProtocolProtocolState; -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.ItxProtocolProtocolController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxProtocolProtocolController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxProtocolProtocolController.create(@Valid ItxProtocolProtocol itxProtocolProtocol, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxProtocolProtocol); - return "itxprotocolprotocols/create"; - } - uiModel.asMap().clear(); - itxProtocolProtocol.persist(); - return "redirect:/itxprotocolprotocols/" + encodeUrlPathSegment(itxProtocolProtocol.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxProtocolProtocolController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxProtocolProtocol()); - List dependencies = new ArrayList(); - if (Protocol.countProtocols() == 0) { - dependencies.add(new String[] { "firstProtocol", "protocols" }); - } - if (Protocol.countProtocols() == 0) { - dependencies.add(new String[] { "secondProtocol", "protocols" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "itxprotocolprotocols/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxProtocolProtocolController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxprotocolprotocol", ItxProtocolProtocol.findItxProtocolProtocol(id)); - uiModel.addAttribute("itemId", id); - return "itxprotocolprotocols/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxProtocolProtocolController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxprotocolprotocols", ItxProtocolProtocol.findItxProtocolProtocolEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxProtocolProtocol.countItxProtocolProtocols() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxprotocolprotocols", ItxProtocolProtocol.findAllItxProtocolProtocols(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxprotocolprotocols/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxProtocolProtocolController.update(@Valid ItxProtocolProtocol itxProtocolProtocol, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxProtocolProtocol); - return "itxprotocolprotocols/update"; - } - uiModel.asMap().clear(); - itxProtocolProtocol.merge(); - return "redirect:/itxprotocolprotocols/" + encodeUrlPathSegment(itxProtocolProtocol.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxProtocolProtocolController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxProtocolProtocol.findItxProtocolProtocol(id)); - return "itxprotocolprotocols/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxProtocolProtocolController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxProtocolProtocol itxProtocolProtocol = ItxProtocolProtocol.findItxProtocolProtocol(id); - itxProtocolProtocol.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxprotocolprotocols"; - } - - void ItxProtocolProtocolController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxProtocolProtocol_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxProtocolProtocol_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxProtocolProtocolController.populateEditForm(Model uiModel, ItxProtocolProtocol itxProtocolProtocol) { - uiModel.addAttribute("itxProtocolProtocol", itxProtocolProtocol); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxprotocolprotocolstates", ItxProtocolProtocolState.findAllItxProtocolProtocolStates()); - uiModel.addAttribute("protocols", Protocol.findAllProtocols()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - } - - String ItxProtocolProtocolController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller_Finder.aj deleted file mode 100644 index f6d74de4b..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,78 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxProtocolProtocol; -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.web.ItxProtocolProtocolController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ItxProtocolProtocolController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByFirstProtocol", "form" }, method = RequestMethod.GET) - public String ItxProtocolProtocolController.findItxProtocolProtocolsByFirstProtocolForm(Model uiModel) { - uiModel.addAttribute("protocols", Protocol.findAllProtocols()); - return "itxprotocolprotocols/findItxProtocolProtocolsByFirstProtocol"; - } - - @RequestMapping(params = "find=ByFirstProtocol", method = RequestMethod.GET) - public String ItxProtocolProtocolController.findItxProtocolProtocolsByFirstProtocol(@RequestParam("firstProtocol") Protocol firstProtocol, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxprotocolprotocols", ItxProtocolProtocol.findItxProtocolProtocolsByFirstProtocol(firstProtocol, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxProtocolProtocol.countFindItxProtocolProtocolsByFirstProtocol(firstProtocol) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxprotocolprotocols", ItxProtocolProtocol.findItxProtocolProtocolsByFirstProtocol(firstProtocol, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxprotocolprotocols/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String ItxProtocolProtocolController.findItxProtocolProtocolsByLsTransactionEqualsForm(Model uiModel) { - return "itxprotocolprotocols/findItxProtocolProtocolsByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String ItxProtocolProtocolController.findItxProtocolProtocolsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxprotocolprotocols", ItxProtocolProtocol.findItxProtocolProtocolsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxProtocolProtocol.countFindItxProtocolProtocolsByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxprotocolprotocols", ItxProtocolProtocol.findItxProtocolProtocolsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxprotocolprotocols/list"; - } - - @RequestMapping(params = { "find=BySecondProtocol", "form" }, method = RequestMethod.GET) - public String ItxProtocolProtocolController.findItxProtocolProtocolsBySecondProtocolForm(Model uiModel) { - uiModel.addAttribute("protocols", Protocol.findAllProtocols()); - return "itxprotocolprotocols/findItxProtocolProtocolsBySecondProtocol"; - } - - @RequestMapping(params = "find=BySecondProtocol", method = RequestMethod.GET) - public String ItxProtocolProtocolController.findItxProtocolProtocolsBySecondProtocol(@RequestParam("secondProtocol") Protocol secondProtocol, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxprotocolprotocols", ItxProtocolProtocol.findItxProtocolProtocolsBySecondProtocol(secondProtocol, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxProtocolProtocol.countFindItxProtocolProtocolsBySecondProtocol(secondProtocol) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxprotocolprotocols", ItxProtocolProtocol.findItxProtocolProtocolsBySecondProtocol(secondProtocol, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxprotocolprotocols/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller_Json.aj deleted file mode 100755 index ae7bd0e58..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolController_Roo_Controller_Json.aj +++ /dev/null @@ -1,149 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxProtocolProtocol; -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.web.ItxProtocolProtocolController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxProtocolProtocolController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxProtocolProtocolController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxProtocolProtocol itxProtocolProtocol = ItxProtocolProtocol.findItxProtocolProtocol(id); - if (itxProtocolProtocol == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxProtocolProtocol.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxProtocolProtocolController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxProtocolProtocol.findAllItxProtocolProtocols(); - return new ResponseEntity(ItxProtocolProtocol.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxProtocolProtocolController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxProtocolProtocol itxProtocolProtocol = ItxProtocolProtocol.fromJsonToItxProtocolProtocol(json); - itxProtocolProtocol.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxProtocolProtocol.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxProtocolProtocolController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxProtocolProtocol itxProtocolProtocol: ItxProtocolProtocol.fromJsonArrayToItxProtocolProtocols(json)) { - itxProtocolProtocol.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxProtocolProtocolController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxProtocolProtocol itxProtocolProtocol = ItxProtocolProtocol.fromJsonToItxProtocolProtocol(json); - itxProtocolProtocol.setId(id); - if (itxProtocolProtocol.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxProtocolProtocolController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxProtocolProtocol itxProtocolProtocol = ItxProtocolProtocol.findItxProtocolProtocol(id); - if (itxProtocolProtocol == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxProtocolProtocol.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByFirstProtocol", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxProtocolProtocolController.jsonFindItxProtocolProtocolsByFirstProtocol(@RequestParam("firstProtocol") Protocol firstProtocol) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxProtocolProtocol.toJsonArray(ItxProtocolProtocol.findItxProtocolProtocolsByFirstProtocol(firstProtocol).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxProtocolProtocolController.jsonFindItxProtocolProtocolsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxProtocolProtocol.toJsonArray(ItxProtocolProtocol.findItxProtocolProtocolsByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=BySecondProtocol", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxProtocolProtocolController.jsonFindItxProtocolProtocolsBySecondProtocol(@RequestParam("secondProtocol") Protocol secondProtocol) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxProtocolProtocol.toJsonArray(ItxProtocolProtocol.findItxProtocolProtocolsBySecondProtocol(secondProtocol).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController.java b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController.java deleted file mode 100755 index 81ec2a44f..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxProtocolProtocolState; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/itxprotocolprotocolstates") -@Controller -@RooWebScaffold(path = "itxprotocolprotocolstates", formBackingObject = ItxProtocolProtocolState.class) -@RooWebJson(jsonObject = ItxProtocolProtocolState.class) -public class ItxProtocolProtocolStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController_Roo_Controller.aj deleted file mode 100755 index 1b2d3295b..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController_Roo_Controller.aj +++ /dev/null @@ -1,114 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxProtocolProtocol; -import com.labsynch.labseer.domain.ItxProtocolProtocolState; -import com.labsynch.labseer.domain.ItxProtocolProtocolValue; -import com.labsynch.labseer.web.ItxProtocolProtocolStateController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxProtocolProtocolStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxProtocolProtocolStateController.create(@Valid ItxProtocolProtocolState itxProtocolProtocolState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxProtocolProtocolState); - return "itxprotocolprotocolstates/create"; - } - uiModel.asMap().clear(); - itxProtocolProtocolState.persist(); - return "redirect:/itxprotocolprotocolstates/" + encodeUrlPathSegment(itxProtocolProtocolState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxProtocolProtocolStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxProtocolProtocolState()); - return "itxprotocolprotocolstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxProtocolProtocolStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxprotocolprotocolstate", ItxProtocolProtocolState.findItxProtocolProtocolState(id)); - uiModel.addAttribute("itemId", id); - return "itxprotocolprotocolstates/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxProtocolProtocolStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxprotocolprotocolstates", ItxProtocolProtocolState.findItxProtocolProtocolStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxProtocolProtocolState.countItxProtocolProtocolStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxprotocolprotocolstates", ItxProtocolProtocolState.findAllItxProtocolProtocolStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxprotocolprotocolstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxProtocolProtocolStateController.update(@Valid ItxProtocolProtocolState itxProtocolProtocolState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxProtocolProtocolState); - return "itxprotocolprotocolstates/update"; - } - uiModel.asMap().clear(); - itxProtocolProtocolState.merge(); - return "redirect:/itxprotocolprotocolstates/" + encodeUrlPathSegment(itxProtocolProtocolState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxProtocolProtocolStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxProtocolProtocolState.findItxProtocolProtocolState(id)); - return "itxprotocolprotocolstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxProtocolProtocolStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxProtocolProtocolState itxProtocolProtocolState = ItxProtocolProtocolState.findItxProtocolProtocolState(id); - itxProtocolProtocolState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxprotocolprotocolstates"; - } - - void ItxProtocolProtocolStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxProtocolProtocolState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxProtocolProtocolState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxProtocolProtocolStateController.populateEditForm(Model uiModel, ItxProtocolProtocolState itxProtocolProtocolState) { - uiModel.addAttribute("itxProtocolProtocolState", itxProtocolProtocolState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxprotocolprotocols", ItxProtocolProtocol.findAllItxProtocolProtocols()); - uiModel.addAttribute("itxprotocolprotocolvalues", ItxProtocolProtocolValue.findAllItxProtocolProtocolValues()); - } - - String ItxProtocolProtocolStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController_Roo_Controller_Json.aj deleted file mode 100755 index b205535e8..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolStateController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxProtocolProtocolState; -import com.labsynch.labseer.web.ItxProtocolProtocolStateController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxProtocolProtocolStateController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxProtocolProtocolStateController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxProtocolProtocolState itxProtocolProtocolState = ItxProtocolProtocolState.findItxProtocolProtocolState(id); - if (itxProtocolProtocolState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxProtocolProtocolState.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxProtocolProtocolStateController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxProtocolProtocolState.findAllItxProtocolProtocolStates(); - return new ResponseEntity(ItxProtocolProtocolState.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxProtocolProtocolStateController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxProtocolProtocolState itxProtocolProtocolState = ItxProtocolProtocolState.fromJsonToItxProtocolProtocolState(json); - itxProtocolProtocolState.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxProtocolProtocolState.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxProtocolProtocolStateController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxProtocolProtocolState itxProtocolProtocolState: ItxProtocolProtocolState.fromJsonArrayToItxProtocolProtocolStates(json)) { - itxProtocolProtocolState.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxProtocolProtocolStateController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxProtocolProtocolState itxProtocolProtocolState = ItxProtocolProtocolState.fromJsonToItxProtocolProtocolState(json); - itxProtocolProtocolState.setId(id); - if (itxProtocolProtocolState.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxProtocolProtocolStateController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxProtocolProtocolState itxProtocolProtocolState = ItxProtocolProtocolState.findItxProtocolProtocolState(id); - if (itxProtocolProtocolState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxProtocolProtocolState.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController.java b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController.java deleted file mode 100755 index 171710cb7..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxProtocolProtocolValue; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/itxprotocolprotocolvalues") -@Controller -@RooWebScaffold(path = "itxprotocolprotocolvalues", formBackingObject = ItxProtocolProtocolValue.class) -@RooWebJson(jsonObject = ItxProtocolProtocolValue.class) -public class ItxProtocolProtocolValueController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController_Roo_Controller.aj deleted file mode 100755 index bd5a9a581..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController_Roo_Controller.aj +++ /dev/null @@ -1,113 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxProtocolProtocolState; -import com.labsynch.labseer.domain.ItxProtocolProtocolValue; -import com.labsynch.labseer.web.ItxProtocolProtocolValueController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxProtocolProtocolValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxProtocolProtocolValueController.create(@Valid ItxProtocolProtocolValue itxProtocolProtocolValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxProtocolProtocolValue); - return "itxprotocolprotocolvalues/create"; - } - uiModel.asMap().clear(); - itxProtocolProtocolValue.persist(); - return "redirect:/itxprotocolprotocolvalues/" + encodeUrlPathSegment(itxProtocolProtocolValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxProtocolProtocolValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxProtocolProtocolValue()); - return "itxprotocolprotocolvalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxProtocolProtocolValueController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxprotocolprotocolvalue", ItxProtocolProtocolValue.findItxProtocolProtocolValue(id)); - uiModel.addAttribute("itemId", id); - return "itxprotocolprotocolvalues/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxProtocolProtocolValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxprotocolprotocolvalues", ItxProtocolProtocolValue.findItxProtocolProtocolValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxProtocolProtocolValue.countItxProtocolProtocolValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxprotocolprotocolvalues", ItxProtocolProtocolValue.findAllItxProtocolProtocolValues(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxprotocolprotocolvalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxProtocolProtocolValueController.update(@Valid ItxProtocolProtocolValue itxProtocolProtocolValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxProtocolProtocolValue); - return "itxprotocolprotocolvalues/update"; - } - uiModel.asMap().clear(); - itxProtocolProtocolValue.merge(); - return "redirect:/itxprotocolprotocolvalues/" + encodeUrlPathSegment(itxProtocolProtocolValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxProtocolProtocolValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxProtocolProtocolValue.findItxProtocolProtocolValue(id)); - return "itxprotocolprotocolvalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxProtocolProtocolValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxProtocolProtocolValue itxProtocolProtocolValue = ItxProtocolProtocolValue.findItxProtocolProtocolValue(id); - itxProtocolProtocolValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxprotocolprotocolvalues"; - } - - void ItxProtocolProtocolValueController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxProtocolProtocolValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxProtocolProtocolValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxProtocolProtocolValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxProtocolProtocolValueController.populateEditForm(Model uiModel, ItxProtocolProtocolValue itxProtocolProtocolValue) { - uiModel.addAttribute("itxProtocolProtocolValue", itxProtocolProtocolValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxprotocolprotocolstates", ItxProtocolProtocolState.findAllItxProtocolProtocolStates()); - } - - String ItxProtocolProtocolValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController_Roo_Controller_Json.aj deleted file mode 100755 index 24bb8234d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxProtocolProtocolValueController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxProtocolProtocolValue; -import com.labsynch.labseer.web.ItxProtocolProtocolValueController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxProtocolProtocolValueController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxProtocolProtocolValueController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxProtocolProtocolValue itxProtocolProtocolValue = ItxProtocolProtocolValue.findItxProtocolProtocolValue(id); - if (itxProtocolProtocolValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxProtocolProtocolValue.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxProtocolProtocolValueController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxProtocolProtocolValue.findAllItxProtocolProtocolValues(); - return new ResponseEntity(ItxProtocolProtocolValue.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxProtocolProtocolValueController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxProtocolProtocolValue itxProtocolProtocolValue = ItxProtocolProtocolValue.fromJsonToItxProtocolProtocolValue(json); - itxProtocolProtocolValue.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxProtocolProtocolValue.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxProtocolProtocolValueController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxProtocolProtocolValue itxProtocolProtocolValue: ItxProtocolProtocolValue.fromJsonArrayToItxProtocolProtocolValues(json)) { - itxProtocolProtocolValue.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxProtocolProtocolValueController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxProtocolProtocolValue itxProtocolProtocolValue = ItxProtocolProtocolValue.fromJsonToItxProtocolProtocolValue(json); - itxProtocolProtocolValue.setId(id); - if (itxProtocolProtocolValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxProtocolProtocolValueController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxProtocolProtocolValue itxProtocolProtocolValue = ItxProtocolProtocolValue.findItxProtocolProtocolValue(id); - if (itxProtocolProtocolValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxProtocolProtocolValue.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController.java b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController.java deleted file mode 100755 index cf7041949..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxSubjectContainer; -import com.labsynch.labseer.service.ItxSubjectContainerService; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ItxSubjectContainer.class) -@Controller -@RequestMapping("/itxsubjectcontainers") -@RooWebScaffold(path = "itxsubjectcontainers", formBackingObject = ItxSubjectContainer.class) -@RooWebFinder -public class ItxSubjectContainerController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller.aj deleted file mode 100755 index 59bbd398c..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller.aj +++ /dev/null @@ -1,128 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ItxSubjectContainer; -import com.labsynch.labseer.domain.ItxSubjectContainerState; -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.ItxSubjectContainerController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxSubjectContainerController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxSubjectContainerController.create(@Valid ItxSubjectContainer itxSubjectContainer, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxSubjectContainer); - return "itxsubjectcontainers/create"; - } - uiModel.asMap().clear(); - itxSubjectContainer.persist(); - return "redirect:/itxsubjectcontainers/" + encodeUrlPathSegment(itxSubjectContainer.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxSubjectContainerController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxSubjectContainer()); - List dependencies = new ArrayList(); - if (Subject.countSubjects() == 0) { - dependencies.add(new String[] { "subject", "subjects" }); - } - if (Container.countContainers() == 0) { - dependencies.add(new String[] { "container", "containers" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "itxsubjectcontainers/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxSubjectContainerController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxsubjectcontainer", ItxSubjectContainer.findItxSubjectContainer(id)); - uiModel.addAttribute("itemId", id); - return "itxsubjectcontainers/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxSubjectContainerController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findItxSubjectContainerEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxSubjectContainer.countItxSubjectContainers() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findAllItxSubjectContainers(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxsubjectcontainers/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxSubjectContainerController.update(@Valid ItxSubjectContainer itxSubjectContainer, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxSubjectContainer); - return "itxsubjectcontainers/update"; - } - uiModel.asMap().clear(); - itxSubjectContainer.merge(); - return "redirect:/itxsubjectcontainers/" + encodeUrlPathSegment(itxSubjectContainer.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxSubjectContainerController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxSubjectContainer.findItxSubjectContainer(id)); - return "itxsubjectcontainers/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxSubjectContainerController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxSubjectContainer itxSubjectContainer = ItxSubjectContainer.findItxSubjectContainer(id); - itxSubjectContainer.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxsubjectcontainers"; - } - - void ItxSubjectContainerController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxSubjectContainer_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxSubjectContainer_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxSubjectContainerController.populateEditForm(Model uiModel, ItxSubjectContainer itxSubjectContainer) { - uiModel.addAttribute("itxSubjectContainer", itxSubjectContainer); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("containers", Container.findAllContainers()); - uiModel.addAttribute("itxsubjectcontainerstates", ItxSubjectContainerState.findAllItxSubjectContainerStates()); - uiModel.addAttribute("subjects", Subject.findAllSubjects()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - } - - String ItxSubjectContainerController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller_Finder.aj deleted file mode 100755 index 3f2141ac1..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,99 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ItxSubjectContainer; -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.web.ItxSubjectContainerController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ItxSubjectContainerController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeNameEquals", "form" }, method = RequestMethod.GET) - public String ItxSubjectContainerController.findItxSubjectContainersByCodeNameEqualsForm(Model uiModel) { - return "itxsubjectcontainers/findItxSubjectContainersByCodeNameEquals"; - } - - @RequestMapping(params = "find=ByCodeNameEquals", method = RequestMethod.GET) - public String ItxSubjectContainerController.findItxSubjectContainersByCodeNameEquals(@RequestParam("codeName") String codeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findItxSubjectContainersByCodeNameEquals(codeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxSubjectContainer.countFindItxSubjectContainersByCodeNameEquals(codeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findItxSubjectContainersByCodeNameEquals(codeName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxsubjectcontainers/list"; - } - - @RequestMapping(params = { "find=ByContainer", "form" }, method = RequestMethod.GET) - public String ItxSubjectContainerController.findItxSubjectContainersByContainerForm(Model uiModel) { - uiModel.addAttribute("containers", Container.findAllContainers()); - return "itxsubjectcontainers/findItxSubjectContainersByContainer"; - } - - @RequestMapping(params = "find=ByContainer", method = RequestMethod.GET) - public String ItxSubjectContainerController.findItxSubjectContainersByContainer(@RequestParam("container") Container container, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findItxSubjectContainersByContainer(container, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxSubjectContainer.countFindItxSubjectContainersByContainer(container) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findItxSubjectContainersByContainer(container, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxsubjectcontainers/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String ItxSubjectContainerController.findItxSubjectContainersByLsTransactionEqualsForm(Model uiModel) { - return "itxsubjectcontainers/findItxSubjectContainersByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String ItxSubjectContainerController.findItxSubjectContainersByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findItxSubjectContainersByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxSubjectContainer.countFindItxSubjectContainersByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findItxSubjectContainersByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxsubjectcontainers/list"; - } - - @RequestMapping(params = { "find=BySubject", "form" }, method = RequestMethod.GET) - public String ItxSubjectContainerController.findItxSubjectContainersBySubjectForm(Model uiModel) { - uiModel.addAttribute("subjects", Subject.findAllSubjects()); - return "itxsubjectcontainers/findItxSubjectContainersBySubject"; - } - - @RequestMapping(params = "find=BySubject", method = RequestMethod.GET) - public String ItxSubjectContainerController.findItxSubjectContainersBySubject(@RequestParam("subject") Subject subject, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findItxSubjectContainersBySubject(subject, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ItxSubjectContainer.countFindItxSubjectContainersBySubject(subject) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findItxSubjectContainersBySubject(subject, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "itxsubjectcontainers/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller_Json.aj deleted file mode 100755 index a22c3bb3b..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerController_Roo_Controller_Json.aj +++ /dev/null @@ -1,162 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Container; -import com.labsynch.labseer.domain.ItxSubjectContainer; -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.web.ItxSubjectContainerController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxSubjectContainerController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxSubjectContainerController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxSubjectContainer itxSubjectContainer = ItxSubjectContainer.findItxSubjectContainer(id); - if (itxSubjectContainer == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxSubjectContainer.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxSubjectContainerController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxSubjectContainer.findAllItxSubjectContainers(); - return new ResponseEntity(ItxSubjectContainer.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxSubjectContainerController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxSubjectContainer itxSubjectContainer = ItxSubjectContainer.fromJsonToItxSubjectContainer(json); - itxSubjectContainer.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxSubjectContainer.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxSubjectContainerController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxSubjectContainer itxSubjectContainer: ItxSubjectContainer.fromJsonArrayToItxSubjectContainers(json)) { - itxSubjectContainer.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxSubjectContainerController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxSubjectContainer itxSubjectContainer = ItxSubjectContainer.fromJsonToItxSubjectContainer(json); - itxSubjectContainer.setId(id); - if (itxSubjectContainer.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxSubjectContainerController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxSubjectContainer itxSubjectContainer = ItxSubjectContainer.findItxSubjectContainer(id); - if (itxSubjectContainer == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxSubjectContainer.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxSubjectContainerController.jsonFindItxSubjectContainersByCodeNameEquals(@RequestParam("codeName") String codeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxSubjectContainer.toJsonArray(ItxSubjectContainer.findItxSubjectContainersByCodeNameEquals(codeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByContainer", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxSubjectContainerController.jsonFindItxSubjectContainersByContainer(@RequestParam("container") Container container) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxSubjectContainer.toJsonArray(ItxSubjectContainer.findItxSubjectContainersByContainer(container).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxSubjectContainerController.jsonFindItxSubjectContainersByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxSubjectContainer.toJsonArray(ItxSubjectContainer.findItxSubjectContainersByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=BySubject", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxSubjectContainerController.jsonFindItxSubjectContainersBySubject(@RequestParam("subject") Subject subject) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ItxSubjectContainer.toJsonArray(ItxSubjectContainer.findItxSubjectContainersBySubject(subject).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController.java b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController.java deleted file mode 100755 index e90743817..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxSubjectContainerState; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ItxSubjectContainerState.class) -@Controller -@RequestMapping("/itxsubjectcontainerstates") -@RooWebScaffold(path = "itxsubjectcontainerstates", formBackingObject = ItxSubjectContainerState.class) -public class ItxSubjectContainerStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController_Roo_Controller.aj deleted file mode 100755 index 4995ee155..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController_Roo_Controller.aj +++ /dev/null @@ -1,114 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxSubjectContainer; -import com.labsynch.labseer.domain.ItxSubjectContainerState; -import com.labsynch.labseer.domain.ItxSubjectContainerValue; -import com.labsynch.labseer.web.ItxSubjectContainerStateController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxSubjectContainerStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxSubjectContainerStateController.create(@Valid ItxSubjectContainerState itxSubjectContainerState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxSubjectContainerState); - return "itxsubjectcontainerstates/create"; - } - uiModel.asMap().clear(); - itxSubjectContainerState.persist(); - return "redirect:/itxsubjectcontainerstates/" + encodeUrlPathSegment(itxSubjectContainerState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxSubjectContainerStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxSubjectContainerState()); - return "itxsubjectcontainerstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxSubjectContainerStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxsubjectcontainerstate", ItxSubjectContainerState.findItxSubjectContainerState(id)); - uiModel.addAttribute("itemId", id); - return "itxsubjectcontainerstates/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxSubjectContainerStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxsubjectcontainerstates", ItxSubjectContainerState.findItxSubjectContainerStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxSubjectContainerState.countItxSubjectContainerStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxsubjectcontainerstates", ItxSubjectContainerState.findAllItxSubjectContainerStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxsubjectcontainerstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxSubjectContainerStateController.update(@Valid ItxSubjectContainerState itxSubjectContainerState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxSubjectContainerState); - return "itxsubjectcontainerstates/update"; - } - uiModel.asMap().clear(); - itxSubjectContainerState.merge(); - return "redirect:/itxsubjectcontainerstates/" + encodeUrlPathSegment(itxSubjectContainerState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxSubjectContainerStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxSubjectContainerState.findItxSubjectContainerState(id)); - return "itxsubjectcontainerstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxSubjectContainerStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxSubjectContainerState itxSubjectContainerState = ItxSubjectContainerState.findItxSubjectContainerState(id); - itxSubjectContainerState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxsubjectcontainerstates"; - } - - void ItxSubjectContainerStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxSubjectContainerState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxSubjectContainerState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxSubjectContainerStateController.populateEditForm(Model uiModel, ItxSubjectContainerState itxSubjectContainerState) { - uiModel.addAttribute("itxSubjectContainerState", itxSubjectContainerState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findAllItxSubjectContainers()); - uiModel.addAttribute("itxsubjectcontainervalues", ItxSubjectContainerValue.findAllItxSubjectContainerValues()); - } - - String ItxSubjectContainerStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController_Roo_Controller_Json.aj deleted file mode 100644 index 9f2363306..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerStateController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxSubjectContainerState; -import com.labsynch.labseer.web.ItxSubjectContainerStateController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxSubjectContainerStateController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxSubjectContainerStateController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxSubjectContainerState itxSubjectContainerState = ItxSubjectContainerState.findItxSubjectContainerState(id); - if (itxSubjectContainerState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxSubjectContainerState.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxSubjectContainerStateController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxSubjectContainerState.findAllItxSubjectContainerStates(); - return new ResponseEntity(ItxSubjectContainerState.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxSubjectContainerStateController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxSubjectContainerState itxSubjectContainerState = ItxSubjectContainerState.fromJsonToItxSubjectContainerState(json); - itxSubjectContainerState.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxSubjectContainerState.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxSubjectContainerStateController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxSubjectContainerState itxSubjectContainerState: ItxSubjectContainerState.fromJsonArrayToItxSubjectContainerStates(json)) { - itxSubjectContainerState.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxSubjectContainerStateController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxSubjectContainerState itxSubjectContainerState = ItxSubjectContainerState.fromJsonToItxSubjectContainerState(json); - itxSubjectContainerState.setId(id); - if (itxSubjectContainerState.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxSubjectContainerStateController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxSubjectContainerState itxSubjectContainerState = ItxSubjectContainerState.findItxSubjectContainerState(id); - if (itxSubjectContainerState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxSubjectContainerState.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController.java b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController.java deleted file mode 100755 index 1b9b5cf76..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxSubjectContainerValue; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ItxSubjectContainerValue.class) -@Controller -@RequestMapping("/itxsubjectcontainervalues") -@RooWebScaffold(path = "itxsubjectcontainervalues", formBackingObject = ItxSubjectContainerValue.class) -public class ItxSubjectContainerValueController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController_Roo_Controller.aj deleted file mode 100755 index d2f95ff95..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController_Roo_Controller.aj +++ /dev/null @@ -1,113 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxSubjectContainerState; -import com.labsynch.labseer.domain.ItxSubjectContainerValue; -import com.labsynch.labseer.web.ItxSubjectContainerValueController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ItxSubjectContainerValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ItxSubjectContainerValueController.create(@Valid ItxSubjectContainerValue itxSubjectContainerValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxSubjectContainerValue); - return "itxsubjectcontainervalues/create"; - } - uiModel.asMap().clear(); - itxSubjectContainerValue.persist(); - return "redirect:/itxsubjectcontainervalues/" + encodeUrlPathSegment(itxSubjectContainerValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ItxSubjectContainerValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new ItxSubjectContainerValue()); - return "itxsubjectcontainervalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ItxSubjectContainerValueController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxsubjectcontainervalue", ItxSubjectContainerValue.findItxSubjectContainerValue(id)); - uiModel.addAttribute("itemId", id); - return "itxsubjectcontainervalues/show"; - } - - @RequestMapping(produces = "text/html") - public String ItxSubjectContainerValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("itxsubjectcontainervalues", ItxSubjectContainerValue.findItxSubjectContainerValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ItxSubjectContainerValue.countItxSubjectContainerValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("itxsubjectcontainervalues", ItxSubjectContainerValue.findAllItxSubjectContainerValues(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "itxsubjectcontainervalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ItxSubjectContainerValueController.update(@Valid ItxSubjectContainerValue itxSubjectContainerValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, itxSubjectContainerValue); - return "itxsubjectcontainervalues/update"; - } - uiModel.asMap().clear(); - itxSubjectContainerValue.merge(); - return "redirect:/itxsubjectcontainervalues/" + encodeUrlPathSegment(itxSubjectContainerValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ItxSubjectContainerValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ItxSubjectContainerValue.findItxSubjectContainerValue(id)); - return "itxsubjectcontainervalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ItxSubjectContainerValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ItxSubjectContainerValue itxSubjectContainerValue = ItxSubjectContainerValue.findItxSubjectContainerValue(id); - itxSubjectContainerValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/itxsubjectcontainervalues"; - } - - void ItxSubjectContainerValueController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("itxSubjectContainerValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxSubjectContainerValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("itxSubjectContainerValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ItxSubjectContainerValueController.populateEditForm(Model uiModel, ItxSubjectContainerValue itxSubjectContainerValue) { - uiModel.addAttribute("itxSubjectContainerValue", itxSubjectContainerValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxsubjectcontainerstates", ItxSubjectContainerState.findAllItxSubjectContainerStates()); - } - - String ItxSubjectContainerValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController_Roo_Controller_Json.aj deleted file mode 100644 index 29ecfd2d1..000000000 --- a/src/main/java/com/labsynch/labseer/web/ItxSubjectContainerValueController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxSubjectContainerValue; -import com.labsynch.labseer.web.ItxSubjectContainerValueController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ItxSubjectContainerValueController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxSubjectContainerValueController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ItxSubjectContainerValue itxSubjectContainerValue = ItxSubjectContainerValue.findItxSubjectContainerValue(id); - if (itxSubjectContainerValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(itxSubjectContainerValue.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ItxSubjectContainerValueController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ItxSubjectContainerValue.findAllItxSubjectContainerValues(); - return new ResponseEntity(ItxSubjectContainerValue.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxSubjectContainerValueController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxSubjectContainerValue itxSubjectContainerValue = ItxSubjectContainerValue.fromJsonToItxSubjectContainerValue(json); - itxSubjectContainerValue.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+itxSubjectContainerValue.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ItxSubjectContainerValueController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ItxSubjectContainerValue itxSubjectContainerValue: ItxSubjectContainerValue.fromJsonArrayToItxSubjectContainerValues(json)) { - itxSubjectContainerValue.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ItxSubjectContainerValueController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxSubjectContainerValue itxSubjectContainerValue = ItxSubjectContainerValue.fromJsonToItxSubjectContainerValue(json); - itxSubjectContainerValue.setId(id); - if (itxSubjectContainerValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ItxSubjectContainerValueController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ItxSubjectContainerValue itxSubjectContainerValue = ItxSubjectContainerValue.findItxSubjectContainerValue(id); - if (itxSubjectContainerValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - itxSubjectContainerValue.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/JSTreeNodeDTOController.java b/src/main/java/com/labsynch/labseer/web/JSTreeNodeDTOController.java deleted file mode 100755 index 253c73d22..000000000 --- a/src/main/java/com/labsynch/labseer/web/JSTreeNodeDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.JSTreeNodeDTO; - -@RooWebJson(jsonObject = JSTreeNodeDTO.class) -@Controller -@RequestMapping("/jstreenoes") -public class JSTreeNodeDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/KeyValueDTOController.java b/src/main/java/com/labsynch/labseer/web/KeyValueDTOController.java deleted file mode 100644 index b1a4e972d..000000000 --- a/src/main/java/com/labsynch/labseer/web/KeyValueDTOController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.dto.KeyValueDTO; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RooWebJson(jsonObject = KeyValueDTO.class) -@Controller -@RequestMapping("/keyvaluedto") -public class KeyValueDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelKindController.java b/src/main/java/com/labsynch/labseer/web/LabelKindController.java deleted file mode 100755 index 3dbea847c..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelKindController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelKind; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = LabelKind.class) -@Controller -@RequestMapping("/labelkinds") -@RooWebScaffold(path = "labelkinds", formBackingObject = LabelKind.class) -@RooWebFinder -public class LabelKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller.aj deleted file mode 100755 index 34b859f11..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller.aj +++ /dev/null @@ -1,102 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelKind; -import com.labsynch.labseer.domain.LabelType; -import com.labsynch.labseer.web.LabelKindController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LabelKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LabelKindController.create(@Valid LabelKind labelKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, labelKind); - return "labelkinds/create"; - } - uiModel.asMap().clear(); - labelKind.persist(); - return "redirect:/labelkinds/" + encodeUrlPathSegment(labelKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LabelKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new LabelKind()); - return "labelkinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LabelKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("labelkind", LabelKind.findLabelKind(id)); - uiModel.addAttribute("itemId", id); - return "labelkinds/show"; - } - - @RequestMapping(produces = "text/html") - public String LabelKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("labelkinds", LabelKind.findLabelKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LabelKind.countLabelKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("labelkinds", LabelKind.findAllLabelKinds(sortFieldName, sortOrder)); - } - return "labelkinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LabelKindController.update(@Valid LabelKind labelKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, labelKind); - return "labelkinds/update"; - } - uiModel.asMap().clear(); - labelKind.merge(); - return "redirect:/labelkinds/" + encodeUrlPathSegment(labelKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LabelKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LabelKind.findLabelKind(id)); - return "labelkinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LabelKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LabelKind labelKind = LabelKind.findLabelKind(id); - labelKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/labelkinds"; - } - - void LabelKindController.populateEditForm(Model uiModel, LabelKind labelKind) { - uiModel.addAttribute("labelKind", labelKind); - uiModel.addAttribute("labeltypes", LabelType.findAllLabelTypes()); - } - - String LabelKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller_Finder.aj deleted file mode 100755 index 63b3abae9..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,75 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelKind; -import com.labsynch.labseer.domain.LabelType; -import com.labsynch.labseer.web.LabelKindController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect LabelKindController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByKindNameEquals", "form" }, method = RequestMethod.GET) - public String LabelKindController.findLabelKindsByKindNameEqualsForm(Model uiModel) { - return "labelkinds/findLabelKindsByKindNameEquals"; - } - - @RequestMapping(params = "find=ByKindNameEquals", method = RequestMethod.GET) - public String LabelKindController.findLabelKindsByKindNameEquals(@RequestParam("kindName") String kindName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("labelkinds", LabelKind.findLabelKindsByKindNameEquals(kindName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LabelKind.countFindLabelKindsByKindNameEquals(kindName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("labelkinds", LabelKind.findLabelKindsByKindNameEquals(kindName, sortFieldName, sortOrder).getResultList()); - } - return "labelkinds/list"; - } - - @RequestMapping(params = { "find=ByKindNameEqualsAndLsType", "form" }, method = RequestMethod.GET) - public String LabelKindController.findLabelKindsByKindNameEqualsAndLsTypeForm(Model uiModel) { - uiModel.addAttribute("labeltypes", LabelType.findAllLabelTypes()); - return "labelkinds/findLabelKindsByKindNameEqualsAndLsType"; - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", method = RequestMethod.GET) - public String LabelKindController.findLabelKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") LabelType lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("labelkinds", LabelKind.findLabelKindsByKindNameEqualsAndLsType(kindName, lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LabelKind.countFindLabelKindsByKindNameEqualsAndLsType(kindName, lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("labelkinds", LabelKind.findLabelKindsByKindNameEqualsAndLsType(kindName, lsType, sortFieldName, sortOrder).getResultList()); - } - return "labelkinds/list"; - } - - @RequestMapping(params = { "find=ByLsType", "form" }, method = RequestMethod.GET) - public String LabelKindController.findLabelKindsByLsTypeForm(Model uiModel) { - uiModel.addAttribute("labeltypes", LabelType.findAllLabelTypes()); - return "labelkinds/findLabelKindsByLsType"; - } - - @RequestMapping(params = "find=ByLsType", method = RequestMethod.GET) - public String LabelKindController.findLabelKindsByLsType(@RequestParam("lsType") LabelType lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("labelkinds", LabelKind.findLabelKindsByLsType(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LabelKind.countFindLabelKindsByLsType(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("labelkinds", LabelKind.findLabelKindsByLsType(lsType, sortFieldName, sortOrder).getResultList()); - } - return "labelkinds/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller_Json.aj deleted file mode 100755 index 41f940663..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,149 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelKind; -import com.labsynch.labseer.domain.LabelType; -import com.labsynch.labseer.web.LabelKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect LabelKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - LabelKind labelKind = LabelKind.findLabelKind(id); - if (labelKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(labelKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = LabelKind.findAllLabelKinds(); - return new ResponseEntity(LabelKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LabelKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LabelKind labelKind = LabelKind.fromJsonToLabelKind(json); - labelKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+labelKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LabelKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (LabelKind labelKind: LabelKind.fromJsonArrayToLabelKinds(json)) { - labelKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity LabelKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LabelKind labelKind = LabelKind.fromJsonToLabelKind(json); - labelKind.setId(id); - if (labelKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity LabelKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LabelKind labelKind = LabelKind.findLabelKind(id); - if (labelKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - labelKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelKindController.jsonFindLabelKindsByKindNameEquals(@RequestParam("kindName") String kindName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LabelKind.toJsonArray(LabelKind.findLabelKindsByKindNameEquals(kindName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelKindController.jsonFindLabelKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") LabelType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LabelKind.toJsonArray(LabelKind.findLabelKindsByKindNameEqualsAndLsType(kindName, lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelKindController.jsonFindLabelKindsByLsType(@RequestParam("lsType") LabelType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LabelKind.toJsonArray(LabelKind.findLabelKindsByLsType(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelSequenceController.java b/src/main/java/com/labsynch/labseer/web/LabelSequenceController.java deleted file mode 100755 index 70e3255f8..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelSequenceController.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelSequence; -import com.labsynch.labseer.dto.AutoLabelDTO; -import com.labsynch.labseer.dto.LabelSequenceDTO; -import com.labsynch.labseer.service.AutoLabelService; -import java.util.Date; -import java.util.List; -import javax.persistence.NonUniqueResultException; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = LabelSequence.class) -@Controller -@RequestMapping("/labelsequences") -@RooWebScaffold(path = "labelsequences", formBackingObject = LabelSequence.class) -@RooWebFinder -public class LabelSequenceController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller.aj deleted file mode 100755 index c6ae9013a..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelSequence; -import com.labsynch.labseer.domain.LabelSequenceRole; -import com.labsynch.labseer.web.LabelSequenceController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LabelSequenceController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LabelSequenceController.create(@Valid LabelSequence labelSequence, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, labelSequence); - return "labelsequences/create"; - } - uiModel.asMap().clear(); - labelSequence.persist(); - return "redirect:/labelsequences/" + encodeUrlPathSegment(labelSequence.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LabelSequenceController.createForm(Model uiModel) { - populateEditForm(uiModel, new LabelSequence()); - return "labelsequences/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LabelSequenceController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("labelsequence", LabelSequence.findLabelSequence(id)); - uiModel.addAttribute("itemId", id); - return "labelsequences/show"; - } - - @RequestMapping(produces = "text/html") - public String LabelSequenceController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("labelsequences", LabelSequence.findLabelSequenceEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LabelSequence.countLabelSequences() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("labelsequences", LabelSequence.findAllLabelSequences(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "labelsequences/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LabelSequenceController.update(@Valid LabelSequence labelSequence, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, labelSequence); - return "labelsequences/update"; - } - uiModel.asMap().clear(); - labelSequence.merge(); - return "redirect:/labelsequences/" + encodeUrlPathSegment(labelSequence.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LabelSequenceController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LabelSequence.findLabelSequence(id)); - return "labelsequences/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LabelSequenceController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LabelSequence labelSequence = LabelSequence.findLabelSequence(id); - labelSequence.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/labelsequences"; - } - - void LabelSequenceController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("labelSequence_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void LabelSequenceController.populateEditForm(Model uiModel, LabelSequence labelSequence) { - uiModel.addAttribute("labelSequence", labelSequence); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("labelsequenceroles", LabelSequenceRole.findAllLabelSequenceRoles()); - } - - String LabelSequenceController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller_Finder.aj deleted file mode 100755 index 946539f53..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,95 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelSequence; -import com.labsynch.labseer.web.LabelSequenceController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect LabelSequenceController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLabelTypeAndKindEquals", "form" }, method = RequestMethod.GET) - public String LabelSequenceController.findLabelSequencesByLabelTypeAndKindEqualsForm(Model uiModel) { - return "labelsequences/findLabelSequencesByLabelTypeAndKindEquals"; - } - - @RequestMapping(params = "find=ByLabelTypeAndKindEquals", method = RequestMethod.GET) - public String LabelSequenceController.findLabelSequencesByLabelTypeAndKindEquals(@RequestParam("labelTypeAndKind") String labelTypeAndKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("labelsequences", LabelSequence.findLabelSequencesByLabelTypeAndKindEquals(labelTypeAndKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LabelSequence.countFindLabelSequencesByLabelTypeAndKindEquals(labelTypeAndKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("labelsequences", LabelSequence.findLabelSequencesByLabelTypeAndKindEquals(labelTypeAndKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "labelsequences/list"; - } - - @RequestMapping(params = { "find=ByThingTypeAndKindEquals", "form" }, method = RequestMethod.GET) - public String LabelSequenceController.findLabelSequencesByThingTypeAndKindEqualsForm(Model uiModel) { - return "labelsequences/findLabelSequencesByThingTypeAndKindEquals"; - } - - @RequestMapping(params = "find=ByThingTypeAndKindEquals", method = RequestMethod.GET) - public String LabelSequenceController.findLabelSequencesByThingTypeAndKindEquals(@RequestParam("thingTypeAndKind") String thingTypeAndKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("labelsequences", LabelSequence.findLabelSequencesByThingTypeAndKindEquals(thingTypeAndKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LabelSequence.countFindLabelSequencesByThingTypeAndKindEquals(thingTypeAndKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("labelsequences", LabelSequence.findLabelSequencesByThingTypeAndKindEquals(thingTypeAndKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "labelsequences/list"; - } - - @RequestMapping(params = { "find=ByThingTypeAndKindEqualsAndLabelTypeAndKindEquals", "form" }, method = RequestMethod.GET) - public String LabelSequenceController.findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsForm(Model uiModel) { - return "labelsequences/findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEquals"; - } - - @RequestMapping(params = "find=ByThingTypeAndKindEqualsAndLabelTypeAndKindEquals", method = RequestMethod.GET) - public String LabelSequenceController.findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEquals(@RequestParam("thingTypeAndKind") String thingTypeAndKind, @RequestParam("labelTypeAndKind") String labelTypeAndKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("labelsequences", LabelSequence.findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEquals(thingTypeAndKind, labelTypeAndKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LabelSequence.countFindLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEquals(thingTypeAndKind, labelTypeAndKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("labelsequences", LabelSequence.findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEquals(thingTypeAndKind, labelTypeAndKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "labelsequences/list"; - } - - @RequestMapping(params = { "find=ByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals", "form" }, method = RequestMethod.GET) - public String LabelSequenceController.findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEqualsForm(Model uiModel) { - return "labelsequences/findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals"; - } - - @RequestMapping(params = "find=ByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals", method = RequestMethod.GET) - public String LabelSequenceController.findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals(@RequestParam("thingTypeAndKind") String thingTypeAndKind, @RequestParam("labelTypeAndKind") String labelTypeAndKind, @RequestParam("labelPrefix") String labelPrefix, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("labelsequences", LabelSequence.findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals(thingTypeAndKind, labelTypeAndKind, labelPrefix, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LabelSequence.countFindLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals(thingTypeAndKind, labelTypeAndKind, labelPrefix) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("labelsequences", LabelSequence.findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals(thingTypeAndKind, labelTypeAndKind, labelPrefix, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "labelsequences/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller_Json.aj deleted file mode 100755 index f05fd407c..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelSequenceController_Roo_Controller_Json.aj +++ /dev/null @@ -1,160 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelSequence; -import com.labsynch.labseer.web.LabelSequenceController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect LabelSequenceController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelSequenceController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - LabelSequence labelSequence = LabelSequence.findLabelSequence(id); - if (labelSequence == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(labelSequence.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelSequenceController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = LabelSequence.findAllLabelSequences(); - return new ResponseEntity(LabelSequence.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LabelSequenceController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LabelSequence labelSequence = LabelSequence.fromJsonToLabelSequence(json); - labelSequence.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+labelSequence.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LabelSequenceController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (LabelSequence labelSequence: LabelSequence.fromJsonArrayToLabelSequences(json)) { - labelSequence.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity LabelSequenceController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LabelSequence labelSequence = LabelSequence.fromJsonToLabelSequence(json); - labelSequence.setId(id); - if (labelSequence.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity LabelSequenceController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LabelSequence labelSequence = LabelSequence.findLabelSequence(id); - if (labelSequence == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - labelSequence.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLabelTypeAndKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelSequenceController.jsonFindLabelSequencesByLabelTypeAndKindEquals(@RequestParam("labelTypeAndKind") String labelTypeAndKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LabelSequence.toJsonArray(LabelSequence.findLabelSequencesByLabelTypeAndKindEquals(labelTypeAndKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByThingTypeAndKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelSequenceController.jsonFindLabelSequencesByThingTypeAndKindEquals(@RequestParam("thingTypeAndKind") String thingTypeAndKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LabelSequence.toJsonArray(LabelSequence.findLabelSequencesByThingTypeAndKindEquals(thingTypeAndKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByThingTypeAndKindEqualsAndLabelTypeAndKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelSequenceController.jsonFindLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEquals(@RequestParam("thingTypeAndKind") String thingTypeAndKind, @RequestParam("labelTypeAndKind") String labelTypeAndKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LabelSequence.toJsonArray(LabelSequence.findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEquals(thingTypeAndKind, labelTypeAndKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelSequenceController.jsonFindLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals(@RequestParam("thingTypeAndKind") String thingTypeAndKind, @RequestParam("labelTypeAndKind") String labelTypeAndKind, @RequestParam("labelPrefix") String labelPrefix) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LabelSequence.toJsonArray(LabelSequence.findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals(thingTypeAndKind, labelTypeAndKind, labelPrefix).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelSequenceDTOController.java b/src/main/java/com/labsynch/labseer/web/LabelSequenceDTOController.java deleted file mode 100755 index 8fc397bf8..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelSequenceDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.LabelSequenceDTO; - -@RooWebJson(jsonObject = LabelSequenceDTO.class) -@Controller -@RequestMapping("/labelsequencedto") -public class LabelSequenceDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelSequenceRoleController.java b/src/main/java/com/labsynch/labseer/web/LabelSequenceRoleController.java deleted file mode 100644 index 58663020e..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelSequenceRoleController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelSequenceRole; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/labelsequenceroles") -@Controller -@RooWebScaffold(path = "labelsequenceroles", formBackingObject = LabelSequenceRole.class) -public class LabelSequenceRoleController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelSequenceRoleController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LabelSequenceRoleController_Roo_Controller.aj deleted file mode 100644 index db3a760ef..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelSequenceRoleController_Roo_Controller.aj +++ /dev/null @@ -1,114 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelSequence; -import com.labsynch.labseer.domain.LabelSequenceRole; -import com.labsynch.labseer.domain.LsRole; -import com.labsynch.labseer.web.LabelSequenceRoleController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LabelSequenceRoleController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LabelSequenceRoleController.create(@Valid LabelSequenceRole labelSequenceRole, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, labelSequenceRole); - return "labelsequenceroles/create"; - } - uiModel.asMap().clear(); - labelSequenceRole.persist(); - return "redirect:/labelsequenceroles/" + encodeUrlPathSegment(labelSequenceRole.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LabelSequenceRoleController.createForm(Model uiModel) { - populateEditForm(uiModel, new LabelSequenceRole()); - List dependencies = new ArrayList(); - if (LabelSequence.countLabelSequences() == 0) { - dependencies.add(new String[] { "labelSequenceEntry", "labelsequences" }); - } - if (LsRole.countLsRoles() == 0) { - dependencies.add(new String[] { "roleEntry", "lsroles" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "labelsequenceroles/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LabelSequenceRoleController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("labelsequencerole", LabelSequenceRole.findLabelSequenceRole(id)); - uiModel.addAttribute("itemId", id); - return "labelsequenceroles/show"; - } - - @RequestMapping(produces = "text/html") - public String LabelSequenceRoleController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("labelsequenceroles", LabelSequenceRole.findLabelSequenceRoleEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LabelSequenceRole.countLabelSequenceRoles() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("labelsequenceroles", LabelSequenceRole.findAllLabelSequenceRoles(sortFieldName, sortOrder)); - } - return "labelsequenceroles/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LabelSequenceRoleController.update(@Valid LabelSequenceRole labelSequenceRole, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, labelSequenceRole); - return "labelsequenceroles/update"; - } - uiModel.asMap().clear(); - labelSequenceRole.merge(); - return "redirect:/labelsequenceroles/" + encodeUrlPathSegment(labelSequenceRole.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LabelSequenceRoleController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LabelSequenceRole.findLabelSequenceRole(id)); - return "labelsequenceroles/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LabelSequenceRoleController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LabelSequenceRole labelSequenceRole = LabelSequenceRole.findLabelSequenceRole(id); - labelSequenceRole.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/labelsequenceroles"; - } - - void LabelSequenceRoleController.populateEditForm(Model uiModel, LabelSequenceRole labelSequenceRole) { - uiModel.addAttribute("labelSequenceRole", labelSequenceRole); - uiModel.addAttribute("labelsequences", LabelSequence.findAllLabelSequences()); - uiModel.addAttribute("lsroles", LsRole.findAllLsRoles()); - } - - String LabelSequenceRoleController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelTypeController.java b/src/main/java/com/labsynch/labseer/web/LabelTypeController.java deleted file mode 100755 index e2895dfff..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelTypeController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelType; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = LabelType.class) -@Controller -@RequestMapping("/labeltypes") -@RooWebScaffold(path = "labeltypes", formBackingObject = LabelType.class) -@RooWebFinder -public class LabelTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller.aj deleted file mode 100755 index 20a0c3792..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelType; -import com.labsynch.labseer.web.LabelTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LabelTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LabelTypeController.create(@Valid LabelType labelType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, labelType); - return "labeltypes/create"; - } - uiModel.asMap().clear(); - labelType.persist(); - return "redirect:/labeltypes/" + encodeUrlPathSegment(labelType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LabelTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new LabelType()); - return "labeltypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LabelTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("labeltype", LabelType.findLabelType(id)); - uiModel.addAttribute("itemId", id); - return "labeltypes/show"; - } - - @RequestMapping(produces = "text/html") - public String LabelTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("labeltypes", LabelType.findLabelTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LabelType.countLabelTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("labeltypes", LabelType.findAllLabelTypes(sortFieldName, sortOrder)); - } - return "labeltypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LabelTypeController.update(@Valid LabelType labelType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, labelType); - return "labeltypes/update"; - } - uiModel.asMap().clear(); - labelType.merge(); - return "redirect:/labeltypes/" + encodeUrlPathSegment(labelType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LabelTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LabelType.findLabelType(id)); - return "labeltypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LabelTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LabelType labelType = LabelType.findLabelType(id); - labelType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/labeltypes"; - } - - void LabelTypeController.populateEditForm(Model uiModel, LabelType labelType) { - uiModel.addAttribute("labelType", labelType); - } - - String LabelTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller_Finder.aj deleted file mode 100755 index e7c3aefdb..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelType; -import com.labsynch.labseer.web.LabelTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect LabelTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByTypeNameEquals", "form" }, method = RequestMethod.GET) - public String LabelTypeController.findLabelTypesByTypeNameEqualsForm(Model uiModel) { - return "labeltypes/findLabelTypesByTypeNameEquals"; - } - - @RequestMapping(params = "find=ByTypeNameEquals", method = RequestMethod.GET) - public String LabelTypeController.findLabelTypesByTypeNameEquals(@RequestParam("typeName") String typeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("labeltypes", LabelType.findLabelTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LabelType.countFindLabelTypesByTypeNameEquals(typeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("labeltypes", LabelType.findLabelTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).getResultList()); - } - return "labeltypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller_Json.aj deleted file mode 100755 index 02c0ac381..000000000 --- a/src/main/java/com/labsynch/labseer/web/LabelTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LabelType; -import com.labsynch.labseer.web.LabelTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect LabelTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - LabelType labelType = LabelType.findLabelType(id); - if (labelType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(labelType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = LabelType.findAllLabelTypes(); - return new ResponseEntity(LabelType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LabelTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LabelType labelType = LabelType.fromJsonToLabelType(json); - labelType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+labelType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LabelTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (LabelType labelType: LabelType.fromJsonArrayToLabelTypes(json)) { - labelType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity LabelTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LabelType labelType = LabelType.fromJsonToLabelType(json); - labelType.setId(id); - if (labelType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity LabelTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LabelType labelType = LabelType.findLabelType(id); - if (labelType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - labelType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LabelTypeController.jsonFindLabelTypesByTypeNameEquals(@RequestParam("typeName") String typeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LabelType.toJsonArray(LabelType.findLabelTypesByTypeNameEquals(typeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LotAliasController.java b/src/main/java/com/labsynch/labseer/web/LotAliasController.java deleted file mode 100644 index 0a38940d4..000000000 --- a/src/main/java/com/labsynch/labseer/web/LotAliasController.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.labsynch.labseer.web; -import javax.servlet.http.HttpServletRequest; - - -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; - -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.domain.LotAlias; - -@RequestMapping("/lotaliases") -@Controller -@RooWebScaffold(path = "lotaliases", formBackingObject = LotAlias.class) - -@RooWebJson(jsonObject = LotAlias.class) -@RooWebFinder -public class LotAliasController { - - -} diff --git a/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller.aj deleted file mode 100644 index f10783cea..000000000 --- a/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller.aj +++ /dev/null @@ -1,102 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Lot; -import com.labsynch.labseer.domain.LotAlias; -import com.labsynch.labseer.web.LotAliasController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LotAliasController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LotAliasController.create(@Valid LotAlias lotAlias, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lotAlias); - return "lotaliases/create"; - } - uiModel.asMap().clear(); - lotAlias.persist(); - return "redirect:/lotaliases/" + encodeUrlPathSegment(lotAlias.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LotAliasController.createForm(Model uiModel) { - populateEditForm(uiModel, new LotAlias()); - return "lotaliases/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LotAliasController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lotalias", LotAlias.findLotAlias(id)); - uiModel.addAttribute("itemId", id); - return "lotaliases/show"; - } - - @RequestMapping(produces = "text/html") - public String LotAliasController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lotaliases", LotAlias.findLotAliasEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LotAlias.countLotAliases() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lotaliases", LotAlias.findAllLotAliases(sortFieldName, sortOrder)); - } - return "lotaliases/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LotAliasController.update(@Valid LotAlias lotAlias, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lotAlias); - return "lotaliases/update"; - } - uiModel.asMap().clear(); - lotAlias.merge(); - return "redirect:/lotaliases/" + encodeUrlPathSegment(lotAlias.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LotAliasController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LotAlias.findLotAlias(id)); - return "lotaliases/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LotAliasController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LotAlias lotAlias = LotAlias.findLotAlias(id); - lotAlias.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lotaliases"; - } - - void LotAliasController.populateEditForm(Model uiModel, LotAlias lotAlias) { - uiModel.addAttribute("lotAlias", lotAlias); - uiModel.addAttribute("lots", Lot.findAllLots()); - } - - String LotAliasController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller_Finder.aj deleted file mode 100644 index a1ba5011f..000000000 --- a/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,75 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Lot; -import com.labsynch.labseer.domain.LotAlias; -import com.labsynch.labseer.web.LotAliasController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect LotAliasController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String LotAliasController.findLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - return "lotaliases/findLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String LotAliasController.findLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(@RequestParam("aliasName") String aliasName, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lotaliases", LotAlias.findLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(aliasName, lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LotAlias.countFindLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(aliasName, lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lotaliases", LotAlias.findLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(aliasName, lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - return "lotaliases/list"; - } - - @RequestMapping(params = { "find=ByLot", "form" }, method = RequestMethod.GET) - public String LotAliasController.findLotAliasesByLotForm(Model uiModel) { - uiModel.addAttribute("lots", Lot.findAllLots()); - return "lotaliases/findLotAliasesByLot"; - } - - @RequestMapping(params = "find=ByLot", method = RequestMethod.GET) - public String LotAliasController.findLotAliasesByLot(@RequestParam("lot") Lot lot, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lotaliases", LotAlias.findLotAliasesByLot(lot, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LotAlias.countFindLotAliasesByLot(lot) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lotaliases", LotAlias.findLotAliasesByLot(lot, sortFieldName, sortOrder).getResultList()); - } - return "lotaliases/list"; - } - - @RequestMapping(params = { "find=ByLotAndLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String LotAliasController.findLotAliasesByLotAndLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - uiModel.addAttribute("lots", Lot.findAllLots()); - return "lotaliases/findLotAliasesByLotAndLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByLotAndLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String LotAliasController.findLotAliasesByLotAndLsTypeEqualsAndLsKindEquals(@RequestParam("lot") Lot lot, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lotaliases", LotAlias.findLotAliasesByLotAndLsTypeEqualsAndLsKindEquals(lot, lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LotAlias.countFindLotAliasesByLotAndLsTypeEqualsAndLsKindEquals(lot, lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lotaliases", LotAlias.findLotAliasesByLotAndLsTypeEqualsAndLsKindEquals(lot, lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - return "lotaliases/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller_Json.aj deleted file mode 100644 index 30706e114..000000000 --- a/src/main/java/com/labsynch/labseer/web/LotAliasController_Roo_Controller_Json.aj +++ /dev/null @@ -1,149 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Lot; -import com.labsynch.labseer.domain.LotAlias; -import com.labsynch.labseer.web.LotAliasController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect LotAliasController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LotAliasController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - LotAlias lotAlias = LotAlias.findLotAlias(id); - if (lotAlias == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lotAlias.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LotAliasController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = LotAlias.findAllLotAliases(); - return new ResponseEntity(LotAlias.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LotAliasController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LotAlias lotAlias = LotAlias.fromJsonToLotAlias(json); - lotAlias.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+lotAlias.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LotAliasController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (LotAlias lotAlias: LotAlias.fromJsonArrayToLotAliases(json)) { - lotAlias.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity LotAliasController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LotAlias lotAlias = LotAlias.fromJsonToLotAlias(json); - lotAlias.setId(id); - if (lotAlias.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity LotAliasController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LotAlias lotAlias = LotAlias.findLotAlias(id); - if (lotAlias == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - lotAlias.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LotAliasController.jsonFindLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(@RequestParam("aliasName") String aliasName, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LotAlias.toJsonArray(LotAlias.findLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(aliasName, lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LotAliasController.jsonFindLotAliasesByLot(@RequestParam("lot") Lot lot) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LotAlias.toJsonArray(LotAlias.findLotAliasesByLot(lot).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLotAndLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LotAliasController.jsonFindLotAliasesByLotAndLsTypeEqualsAndLsKindEquals(@RequestParam("lot") Lot lot, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LotAlias.toJsonArray(LotAlias.findLotAliasesByLotAndLsTypeEqualsAndLsKindEquals(lot, lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LotAliasKindController.java b/src/main/java/com/labsynch/labseer/web/LotAliasKindController.java deleted file mode 100644 index d3fceeaa7..000000000 --- a/src/main/java/com/labsynch/labseer/web/LotAliasKindController.java +++ /dev/null @@ -1,162 +0,0 @@ -package com.labsynch.labseer.web; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; - -import javax.servlet.http.HttpServletRequest; - -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -import com.labsynch.labseer.domain.LotAliasKind; - -@RooWebScaffold(path = "lotaliaskinds", formBackingObject = LotAliasKind.class) -@RequestMapping("/lotaliaskinds") -@Controller -@Transactional - -@RooWebFinder -@RooWebJson(jsonObject = LotAliasKind.class) -public class LotAliasKindController { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - try { - LotAliasKind lotAliasKind = LotAliasKind.findLotAliasKind(id); - if (lotAliasKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lotAliasKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - try { - List result = LotAliasKind.findAllLotAliasKinds(); - return new ResponseEntity(LotAliasKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - try { - LotAliasKind lotAliasKind = LotAliasKind.fromJsonToLotAliasKind(json); - lotAliasKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location", uriBuilder.path(a.value()[0] + "/" + lotAliasKind.getId().toString()).build().toUriString()); - return new ResponseEntity(lotAliasKind.toJson(), headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - Collection lotAliasKinds = new HashSet(); - try { - for (LotAliasKind lotAliasKind : LotAliasKind.fromJsonArrayToLotAliasKinds(json)) { - lotAliasKind.persist(); - lotAliasKinds.add(lotAliasKind); - } - return new ResponseEntity(LotAliasKind.toJsonArray(lotAliasKinds), headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - try { - LotAliasKind lotAliasKind = LotAliasKind.fromJsonToLotAliasKind(json); - lotAliasKind.setId(id); - if (lotAliasKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lotAliasKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - try { - LotAliasKind lotAliasKind = LotAliasKind.findLotAliasKind(id); - if (lotAliasKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - lotAliasKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.OPTIONS) - public ResponseEntity getIsotopeOptions() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Kind", "application/json"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - return new ResponseEntity(headers, HttpStatus.OK); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LotAliasKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LotAliasKindController_Roo_Controller.aj deleted file mode 100644 index e2ade5a79..000000000 --- a/src/main/java/com/labsynch/labseer/web/LotAliasKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LotAliasKind; -import com.labsynch.labseer.domain.LotAliasType; -import com.labsynch.labseer.web.LotAliasKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LotAliasKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LotAliasKindController.create(@Valid LotAliasKind lotAliasKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lotAliasKind); - return "lotaliaskinds/create"; - } - uiModel.asMap().clear(); - lotAliasKind.persist(); - return "redirect:/lotaliaskinds/" + encodeUrlPathSegment(lotAliasKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LotAliasKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new LotAliasKind()); - List dependencies = new ArrayList(); - if (LotAliasType.countLotAliasTypes() == 0) { - dependencies.add(new String[] { "lsType", "lotaliastypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "lotaliaskinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LotAliasKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lotaliaskind", LotAliasKind.findLotAliasKind(id)); - uiModel.addAttribute("itemId", id); - return "lotaliaskinds/show"; - } - - @RequestMapping(produces = "text/html") - public String LotAliasKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lotaliaskinds", LotAliasKind.findLotAliasKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LotAliasKind.countLotAliasKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lotaliaskinds", LotAliasKind.findAllLotAliasKinds(sortFieldName, sortOrder)); - } - return "lotaliaskinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LotAliasKindController.update(@Valid LotAliasKind lotAliasKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lotAliasKind); - return "lotaliaskinds/update"; - } - uiModel.asMap().clear(); - lotAliasKind.merge(); - return "redirect:/lotaliaskinds/" + encodeUrlPathSegment(lotAliasKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LotAliasKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LotAliasKind.findLotAliasKind(id)); - return "lotaliaskinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LotAliasKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LotAliasKind lotAliasKind = LotAliasKind.findLotAliasKind(id); - lotAliasKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lotaliaskinds"; - } - - void LotAliasKindController.populateEditForm(Model uiModel, LotAliasKind lotAliasKind) { - uiModel.addAttribute("lotAliasKind", lotAliasKind); - uiModel.addAttribute("lotaliastypes", LotAliasType.findAllLotAliasTypes()); - } - - String LotAliasKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LotAliasTypeController.java b/src/main/java/com/labsynch/labseer/web/LotAliasTypeController.java deleted file mode 100644 index 841623bd6..000000000 --- a/src/main/java/com/labsynch/labseer/web/LotAliasTypeController.java +++ /dev/null @@ -1,163 +0,0 @@ -package com.labsynch.labseer.web; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; - -import javax.servlet.http.HttpServletRequest; - -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -import com.labsynch.labseer.domain.LotAliasType; - -@RooWebScaffold(path = "lotaliastypes", formBackingObject = LotAliasType.class) -@RequestMapping("/lotaliastypes") -@Controller -@Transactional - -@RooWebFinder -@RooWebJson(jsonObject = LotAliasType.class) -public class LotAliasTypeController { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - try { - LotAliasType lotAliasType = LotAliasType.findLotAliasType(id); - if (lotAliasType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lotAliasType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - try { - List result = LotAliasType.findAllLotAliasTypes(); - return new ResponseEntity(LotAliasType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - try { - LotAliasType lotAliasType = LotAliasType.fromJsonToLotAliasType(json); - lotAliasType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location", uriBuilder.path(a.value()[0] + "/" + lotAliasType.getId().toString()).build().toUriString()); - return new ResponseEntity(lotAliasType.toJson(), headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - Collection lotAliasTypes = new HashSet(); - try { - for (LotAliasType lotAliasType : LotAliasType.fromJsonArrayToLotAliasTypes(json)) { - lotAliasType.persist(); - lotAliasTypes.add(lotAliasType); - } - return new ResponseEntity(LotAliasType.toJsonArray(lotAliasTypes), headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - try { - LotAliasType lotAliasType = LotAliasType.fromJsonToLotAliasType(json); - lotAliasType.setId(id); - if (lotAliasType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lotAliasType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - try { - LotAliasType lotAliasType = LotAliasType.findLotAliasType(id); - if (lotAliasType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - lotAliasType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.OPTIONS) - public ResponseEntity getIsotopeOptions() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Kind", "application/json"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - return new ResponseEntity(headers, HttpStatus.OK); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LotAliasTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LotAliasTypeController_Roo_Controller.aj deleted file mode 100644 index b78c73dcb..000000000 --- a/src/main/java/com/labsynch/labseer/web/LotAliasTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LotAliasType; -import com.labsynch.labseer.web.LotAliasTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LotAliasTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LotAliasTypeController.create(@Valid LotAliasType lotAliasType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lotAliasType); - return "lotaliastypes/create"; - } - uiModel.asMap().clear(); - lotAliasType.persist(); - return "redirect:/lotaliastypes/" + encodeUrlPathSegment(lotAliasType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LotAliasTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new LotAliasType()); - return "lotaliastypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LotAliasTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lotaliastype", LotAliasType.findLotAliasType(id)); - uiModel.addAttribute("itemId", id); - return "lotaliastypes/show"; - } - - @RequestMapping(produces = "text/html") - public String LotAliasTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lotaliastypes", LotAliasType.findLotAliasTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LotAliasType.countLotAliasTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lotaliastypes", LotAliasType.findAllLotAliasTypes(sortFieldName, sortOrder)); - } - return "lotaliastypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LotAliasTypeController.update(@Valid LotAliasType lotAliasType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lotAliasType); - return "lotaliastypes/update"; - } - uiModel.asMap().clear(); - lotAliasType.merge(); - return "redirect:/lotaliastypes/" + encodeUrlPathSegment(lotAliasType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LotAliasTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LotAliasType.findLotAliasType(id)); - return "lotaliastypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LotAliasTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LotAliasType lotAliasType = LotAliasType.findLotAliasType(id); - lotAliasType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lotaliastypes"; - } - - void LotAliasTypeController.populateEditForm(Model uiModel, LotAliasType lotAliasType) { - uiModel.addAttribute("lotAliasType", lotAliasType); - } - - String LotAliasTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LotController.java b/src/main/java/com/labsynch/labseer/web/LotController.java deleted file mode 100755 index 9abc9ac37..000000000 --- a/src/main/java/com/labsynch/labseer/web/LotController.java +++ /dev/null @@ -1,412 +0,0 @@ -package com.labsynch.labseer.web; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Date; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; -import com.labsynch.labseer.domain.BulkLoadFile; -import com.labsynch.labseer.domain.Lot; -import com.labsynch.labseer.domain.Operator; -import com.labsynch.labseer.domain.Parent; -import com.labsynch.labseer.domain.PhysicalState; -import com.labsynch.labseer.domain.PurityMeasuredBy; -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.domain.SolutionUnit; -import com.labsynch.labseer.domain.Unit; -import com.labsynch.labseer.domain.Vendor; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; - -//import org.joda.time.DateTime; -//import org.springframework.format.annotation.DateTimeFormat; -//@RooWebScaffold(path = "lots", formBackingObject = Lot.class) -@RequestMapping("/lots") -@Controller -@Transactional -@RooWebScaffold(path = "lots", formBackingObject = Lot.class) -@RooWebFinder -//@RooWebFinder -public class LotController { - - Logger logger = LoggerFactory.getLogger(LotController.class); - - @RequestMapping(method = RequestMethod.POST) - public String create(@Valid Lot lot, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - uiModel.addAttribute("lot", lot); - addDateTimeFormatPatterns(uiModel); - return "lots/create"; - } - uiModel.asMap().clear(); - lot.persist(); - return "redirect:/lots/" + encodeUrlPathSegment(lot.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", method = RequestMethod.GET) - public String createForm(Model uiModel) { - uiModel.addAttribute("lot", new Lot()); - addDateTimeFormatPatterns(uiModel); - return "lots/create"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - public String show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - Lot lot = Lot.findLot(id); - uiModel.addAttribute("lot", lot); - uiModel.addAttribute("itemId", id); - uiModel.addAttribute("parent", lot.getSaltForm().getParent()); - List saltForms = new ArrayList(); - saltForms.add(lot.getSaltForm()); - uiModel.addAttribute("saltforms", saltForms); - return "lots/show"; - } - - @Transactional - @RequestMapping(method = RequestMethod.GET) - public String list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - uiModel.addAttribute("lots", Lot.findLotEntries(page == null ? 0 : (page.intValue() - 1) * sizeNo, sizeNo)); - float nrOfPages = (float) Lot.countLots() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lots", Lot.findLotEntries(0, 10)); - } - addDateTimeFormatPatterns(uiModel); - return "lots/list"; - } - - @Transactional - @RequestMapping(method = RequestMethod.PUT) - public String update(@Valid Lot lot, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - uiModel.addAttribute("lot", lot); - logger.debug("ERROR lot: " + lot.toJson()); - SaltForm saltForm = lot.getSaltForm(); - Parent parent = saltForm.getParent(); - uiModel.addAttribute("parent", parent); - List saltForms = new ArrayList(); - saltForms.add(lot.getSaltForm()); - uiModel.addAttribute("saltforms", saltForms); - addDateTimeFormatPatterns(uiModel); - return "lots/update"; - } - uiModel.asMap().clear(); - logger.debug("before merging the lot data back"); - lot.merge(); - return "redirect:/lots/" + encodeUrlPathSegment(lot.getId().toString(), httpServletRequest); - } - - @Transactional - @RequestMapping(value = "/{id}", params = "form", method = RequestMethod.GET) - public String updateForm(@PathVariable("id") Long id, Model uiModel) { - Lot lot = Lot.findLot(id); - uiModel.addAttribute("lot", lot); - SaltForm saltForm = lot.getSaltForm(); - Parent parent = saltForm.getParent(); - uiModel.addAttribute("parent", parent); - List saltForms = new ArrayList(); - saltForms.add(Lot.findLot(id).getSaltForm()); - uiModel.addAttribute("saltforms", saltForms); - addDateTimeFormatPatterns(uiModel); - return "lots/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) - public String delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - Lot.findLot(id).remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lots"; - } - - // @ModelAttribute("lots") - // public Collection populateLots() { - // return Lot.findLotEntries(0, 2); - // } - // - // @ModelAttribute("parents") - // public Collection populateParents() { - // return Parent.findParentEntries(0, 2); - // } - // - // @ModelAttribute("filelists") - // public Collection populateFileLists() { - // return FileList.findFileListEntries(0, 2); - // } - void addDateTimeFormatPatterns(Model uiModel) { - // uiModel.addAttribute("lot_synthesisdate_date_format", DateTimeFormat.patternForStyle("S-", LocaleContextHolder.getLocale())); - uiModel.addAttribute("lot_synthesisdate_date_format", DateTimeFormat.patternForStyle("S-", LocaleContextHolder.getLocale())); - } - - String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - Lot lot = Lot.findLot(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - if (lot == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - // return new ResponseEntity(lot.toJson(), headers, HttpStatus.OK); - return showJson(lot.getId()); - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - return new ResponseEntity(Lot.toJsonArray(Lot.findAllLots()), headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json) { - Lot lot = Lot.fromJsonToLot(json); - lot.persist(); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - return showJson(lot.getId()); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - for (Lot lot : Lot.fromJsonArrayToLots(json)) { - lot.persist(); - } - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - if (Lot.fromJsonToLot(json).merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - for (Lot lot : Lot.fromJsonArrayToLots(json)) { - if (lot.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - Lot lot = Lot.findLot(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - if (lot == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - lot.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } - - @ModelAttribute("operators") - public Collection populateOperators() { - return Operator.findAllOperators(); - } - - @ModelAttribute("physicalstates") - public Collection populatePhysicalStates() { - return PhysicalState.findAllPhysicalStates(); - } - - @ModelAttribute("puritymeasuredbys") - public Collection populatePurityMeasuredBys() { - return PurityMeasuredBy.findAllPurityMeasuredBys(); - } - - @ModelAttribute("solutionunits") - public Collection populateSolutionUnits() { - return SolutionUnit.findAllSolutionUnits(); - } - - @ModelAttribute("units") - public Collection populateUnits() { - return Unit.findAllUnits(); - } - - @ModelAttribute("vendors") - public Collection populateVendors() { - return Vendor.findAllVendors(); - } - - @RequestMapping(params = { "find=ByBuid", "form" }, method = RequestMethod.GET) - public String findLotsByBuidForm(Model uiModel) { - return "lots/findLotsByBuid"; - } - - @RequestMapping(params = "find=ByBuid", method = RequestMethod.GET) - public String findLotsByBuid(@RequestParam("buid") long buid, Model uiModel) { - uiModel.addAttribute("lots", Lot.findLotsByBuid(buid).getResultList()); - return "lots/list"; - } - - @RequestMapping(params = { "find=ByChemistAndSynthesisDateBetween", "form" }, method = RequestMethod.GET) - public String findLotsByChemistAndSynthesisDateBetweenForm(Model uiModel) { - uiModel.addAttribute("scientists", Author.findAllAuthors()); - addDateTimeFormatPatterns(uiModel); - return "lots/findLotsByChemistAndSynthesisDateBetween"; - } - - @RequestMapping(params = "find=ByChemistAndSynthesisDateBetween", method = RequestMethod.GET) - public String findLotsByChemistAndSynthesisDateBetween(@RequestParam("chemist") Author chemist, @RequestParam("minSynthesisDate") Date minSynthesisDate, @RequestParam("maxSynthesisDate") Date maxSynthesisDate, Model uiModel) { - uiModel.addAttribute("lots", Lot.findLotsByChemistAndSynthesisDateBetween(chemist.getUserName(), minSynthesisDate, maxSynthesisDate).getResultList()); - addDateTimeFormatPatterns(uiModel); - return "lots/list"; - } - - @RequestMapping(params = { "find=ByCorpNameEquals", "form" }, method = RequestMethod.GET) - public String findLotsByCorpNameEqualsForm(Model uiModel) { - return "lots/findLotsByCorpNameEquals"; - } - - @RequestMapping(params = "find=ByCorpNameEquals", method = RequestMethod.GET) - public String findLotsByCorpNameEquals(@RequestParam("corpName") String corpName, Model uiModel) { - uiModel.addAttribute("lots", Lot.findLotsByCorpNameEquals(corpName).getResultList()); - return "lots/list"; - } - - @RequestMapping(params = { "find=ByCorpNameLike", "form" }, method = RequestMethod.GET) - public String findLotsByCorpNameLikeForm(Model uiModel) { - return "lots/findLotsByCorpNameLike"; - } - - @RequestMapping(params = "find=ByCorpNameLike", method = RequestMethod.GET) - public String findLotsByCorpNameLike(@RequestParam("corpName") String corpName, Model uiModel) { - uiModel.addAttribute("lots", Lot.findLotsByCorpNameLike(corpName).getResultList()); - return "lots/list"; - } - - @RequestMapping(params = { "find=ByIsVirtualNot", "form" }, method = RequestMethod.GET) - public String findLotsByIsVirtualNotForm(Model uiModel) { - return "lots/findLotsByIsVirtualNot"; - } - - @RequestMapping(params = "find=ByIsVirtualNot", method = RequestMethod.GET) - public String findLotsByIsVirtualNot(@RequestParam(value = "isVirtual", required = false) Boolean isVirtual, Model uiModel) { - uiModel.addAttribute("lots", Lot.findLotsByIsVirtualNot(isVirtual == null ? new Boolean(false) : isVirtual).getResultList()); - return "lots/list"; - } - - @RequestMapping(params = { "find=ByNotebookPageEquals", "form" }, method = RequestMethod.GET) - public String findLotsByNotebookPageEqualsForm(Model uiModel) { - return "lots/findLotsByNotebookPageEquals"; - } - - @RequestMapping(params = "find=ByNotebookPageEquals", method = RequestMethod.GET) - public String findLotsByNotebookPageEquals(@RequestParam("notebookPage") String notebookPage, Model uiModel) { - uiModel.addAttribute("lots", Lot.findLotsByNotebookPageEquals(notebookPage).getResultList()); - return "lots/list"; - } - - @RequestMapping(params = { "find=ByNotebookPageEqualsAndIgnoreNot", "form" }, method = RequestMethod.GET) - public String findLotsByNotebookPageEqualsAndIgnoreNotForm(Model uiModel) { - return "lots/findLotsByNotebookPageEqualsAndIgnoreNot"; - } - - @RequestMapping(params = "find=ByNotebookPageEqualsAndIgnoreNot", method = RequestMethod.GET) - public String findLotsByNotebookPageEqualsAndIgnoreNot(@RequestParam("notebookPage") String notebookPage, @RequestParam(value = "ignore", required = false) Boolean ignore, Model uiModel) { - uiModel.addAttribute("lots", Lot.findLotsByNotebookPageEqualsAndIgnoreNot(notebookPage, ignore == null ? new Boolean(false) : ignore).getResultList()); - return "lots/list"; - } - - @RequestMapping(params = { "find=BySaltForm", "form" }, method = RequestMethod.GET) - public String findLotsBySaltFormForm(Model uiModel) { - uiModel.addAttribute("saltforms", SaltForm.findAllSaltForms()); - return "lots/findLotsBySaltForm"; - } - - @RequestMapping(params = "find=BySaltForm", method = RequestMethod.GET) - public String findLotsBySaltForm(@RequestParam("saltForm") SaltForm saltForm, Model uiModel) { - uiModel.addAttribute("lots", Lot.findLotsBySaltForm(saltForm).getResultList()); - return "lots/list"; - } - - @RequestMapping(params = { "find=BySynthesisDateBetween", "form" }, method = RequestMethod.GET) - public String findLotsBySynthesisDateBetweenForm(Model uiModel) { - addDateTimeFormatPatterns(uiModel); - return "lots/findLotsBySynthesisDateBetween"; - } - - @RequestMapping(params = "find=BySynthesisDateBetween", method = RequestMethod.GET) - public String findLotsBySynthesisDateBetween(@RequestParam("minSynthesisDate") Date minSynthesisDate, @RequestParam("maxSynthesisDate") Date maxSynthesisDate, Model uiModel) { - uiModel.addAttribute("lots", Lot.findLotsBySynthesisDateBetween(minSynthesisDate, maxSynthesisDate).getResultList()); - addDateTimeFormatPatterns(uiModel); - return "lots/list"; - } - - @RequestMapping(params = { "find=BySynthesisDateGreaterThan", "form" }, method = RequestMethod.GET) - public String findLotsBySynthesisDateGreaterThanForm(Model uiModel) { - addDateTimeFormatPatterns(uiModel); - return "lots/findLotsBySynthesisDateGreaterThan"; - } - - @RequestMapping(params = "find=BySynthesisDateGreaterThan", method = RequestMethod.GET) - public String findLotsBySynthesisDateGreaterThan(@RequestParam("synthesisDate") Date synthesisDate, Model uiModel) { - uiModel.addAttribute("lots", Lot.findLotsBySynthesisDateGreaterThan(synthesisDate).getResultList()); - addDateTimeFormatPatterns(uiModel); - return "lots/list"; - } - - @RequestMapping(params = { "find=BySynthesisDateLessThan", "form" }, method = RequestMethod.GET) - public String findLotsBySynthesisDateLessThanForm(Model uiModel) { - addDateTimeFormatPatterns(uiModel); - return "lots/findLotsBySynthesisDateLessThan"; - } - - @RequestMapping(params = "find=BySynthesisDateLessThan", method = RequestMethod.GET) - public String findLotsBySynthesisDateLessThan(@RequestParam("synthesisDate") Date synthesisDate, Model uiModel) { - uiModel.addAttribute("lots", Lot.findLotsBySynthesisDateLessThan(synthesisDate).getResultList()); - addDateTimeFormatPatterns(uiModel); - return "lots/list"; - } -} diff --git a/src/main/java/com/labsynch/labseer/web/LotController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LotController_Roo_Controller.aj deleted file mode 100644 index faf995e65..000000000 --- a/src/main/java/com/labsynch/labseer/web/LotController_Roo_Controller.aj +++ /dev/null @@ -1,37 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.BulkLoadFile; -import com.labsynch.labseer.domain.FileList; -import com.labsynch.labseer.domain.Lot; -import com.labsynch.labseer.domain.LotAlias; -import com.labsynch.labseer.domain.Operator; -import com.labsynch.labseer.domain.PhysicalState; -import com.labsynch.labseer.domain.PurityMeasuredBy; -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.domain.SolutionUnit; -import com.labsynch.labseer.domain.Unit; -import com.labsynch.labseer.domain.Vendor; -import com.labsynch.labseer.web.LotController; -import org.springframework.ui.Model; - -privileged aspect LotController_Roo_Controller { - - void LotController.populateEditForm(Model uiModel, Lot lot) { - uiModel.addAttribute("lot", lot); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("bulkloadfiles", BulkLoadFile.findAllBulkLoadFiles()); - uiModel.addAttribute("filelists", FileList.findAllFileLists()); - uiModel.addAttribute("lotaliases", LotAlias.findAllLotAliases()); - uiModel.addAttribute("operators", Operator.findAllOperators()); - uiModel.addAttribute("physicalstates", PhysicalState.findAllPhysicalStates()); - uiModel.addAttribute("puritymeasuredbys", PurityMeasuredBy.findAllPurityMeasuredBys()); - uiModel.addAttribute("saltforms", SaltForm.findAllSaltForms()); - uiModel.addAttribute("solutionunits", SolutionUnit.findAllSolutionUnits()); - uiModel.addAttribute("units", Unit.findAllUnits()); - uiModel.addAttribute("vendors", Vendor.findAllVendors()); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsInteractionController.java b/src/main/java/com/labsynch/labseer/web/LsInteractionController.java deleted file mode 100755 index 0ecf09581..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsInteractionController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsInteraction; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = LsInteraction.class) -@Controller -@RequestMapping("/lsinteractions") -@RooWebScaffold(path = "lsinteractions", formBackingObject = LsInteraction.class) -public class LsInteractionController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsInteractionController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsInteractionController_Roo_Controller.aj deleted file mode 100755 index c44b7aca2..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsInteractionController_Roo_Controller.aj +++ /dev/null @@ -1,112 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsInteraction; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.LsInteractionController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsInteractionController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsInteractionController.create(@Valid LsInteraction lsInteraction, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsInteraction); - return "lsinteractions/create"; - } - uiModel.asMap().clear(); - lsInteraction.persist(); - return "redirect:/lsinteractions/" + encodeUrlPathSegment(lsInteraction.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsInteractionController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsInteraction()); - return "lsinteractions/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsInteractionController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("lsinteraction", LsInteraction.findLsInteraction(id)); - uiModel.addAttribute("itemId", id); - return "lsinteractions/show"; - } - - @RequestMapping(produces = "text/html") - public String LsInteractionController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsinteractions", LsInteraction.findLsInteractionEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsInteraction.countLsInteractions() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsinteractions", LsInteraction.findAllLsInteractions(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "lsinteractions/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsInteractionController.update(@Valid LsInteraction lsInteraction, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsInteraction); - return "lsinteractions/update"; - } - uiModel.asMap().clear(); - lsInteraction.merge(); - return "redirect:/lsinteractions/" + encodeUrlPathSegment(lsInteraction.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsInteractionController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsInteraction.findLsInteraction(id)); - return "lsinteractions/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsInteractionController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsInteraction lsInteraction = LsInteraction.findLsInteraction(id); - lsInteraction.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsinteractions"; - } - - void LsInteractionController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("lsInteraction_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("lsInteraction_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void LsInteractionController.populateEditForm(Model uiModel, LsInteraction lsInteraction) { - uiModel.addAttribute("lsInteraction", lsInteraction); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - } - - String LsInteractionController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsInteractionController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/LsInteractionController_Roo_Controller_Json.aj deleted file mode 100644 index aa234dfc4..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsInteractionController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsInteraction; -import com.labsynch.labseer.web.LsInteractionController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect LsInteractionController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsInteractionController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - LsInteraction lsInteraction = LsInteraction.findLsInteraction(id); - if (lsInteraction == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lsInteraction.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsInteractionController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = LsInteraction.findAllLsInteractions(); - return new ResponseEntity(LsInteraction.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsInteractionController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsInteraction lsInteraction = LsInteraction.fromJsonToLsInteraction(json); - lsInteraction.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+lsInteraction.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsInteractionController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (LsInteraction lsInteraction: LsInteraction.fromJsonArrayToLsInteractions(json)) { - lsInteraction.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity LsInteractionController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsInteraction lsInteraction = LsInteraction.fromJsonToLsInteraction(json); - lsInteraction.setId(id); - if (lsInteraction.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity LsInteractionController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsInteraction lsInteraction = LsInteraction.findLsInteraction(id); - if (lsInteraction == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - lsInteraction.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsRoleController.java b/src/main/java/com/labsynch/labseer/web/LsRoleController.java deleted file mode 100755 index 8f30dbae4..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsRoleController.java +++ /dev/null @@ -1,123 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AuthorRole; -import com.labsynch.labseer.domain.LsRole; -import com.labsynch.labseer.domain.RoleKind; -import com.labsynch.labseer.domain.RoleType; -import com.labsynch.labseer.service.AnalysisGroupServiceImpl; -import java.io.UnsupportedEncodingException; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -@RooWebJson(jsonObject = LsRole.class) -@RequestMapping("/lsroles") -@Controller -@RooWebScaffold(path = "lsroles", formBackingObject = LsRole.class) -@RooWebFinder -public class LsRoleController { - - private static final Logger logger = LoggerFactory.getLogger(LsRoleController.class); - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String create(@Valid LsRole lsRole, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsRole); - return "lsroles/create"; - } - uiModel.asMap().clear(); - lsRole.persist(); - return "redirect:/lsroles/" + encodeUrlPathSegment(lsRole.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String createForm(Model uiModel) { - populateEditForm(uiModel, new LsRole()); - uiModel.addAttribute("lstypes", RoleType.findAllRoleTypes()); - uiModel.addAttribute("lskinds", RoleKind.findAllRoleKinds()); - return "lsroles/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lsrole", LsRole.findLsRole(id)); - uiModel.addAttribute("itemId", id); - return "lsroles/show"; - } - - @RequestMapping(produces = "text/html") - public String list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsroles", LsRole.findLsRoleEntries(firstResult, sizeNo)); - float nrOfPages = (float) LsRole.countLsRoles() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsroles", LsRole.findAllLsRoles()); - } - return "lsroles/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String update(@Valid LsRole lsRole, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsRole); - return "lsroles/update"; - } - uiModel.asMap().clear(); - lsRole.merge(); - return "redirect:/lsroles/" + encodeUrlPathSegment(lsRole.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsRole.findLsRole(id)); - return "lsroles/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsRole lsRole = LsRole.findLsRole(id); - lsRole.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsroles"; - } - - void populateEditForm(Model uiModel, LsRole lsRole) { - uiModel.addAttribute("lsRole", lsRole); - uiModel.addAttribute("authorroles", AuthorRole.findAllAuthorRoles()); - uiModel.addAttribute("collectiontypes", RoleType.findAllRoleTypes()); - uiModel.addAttribute("collectionkinds", RoleKind.findAllRoleKinds()); - } - - String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } -} diff --git a/src/main/java/com/labsynch/labseer/web/LsRoleController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/LsRoleController_Roo_Controller_Finder.aj deleted file mode 100644 index e4a8df209..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsRoleController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,129 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsRole; -import com.labsynch.labseer.web.LsRoleController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect LsRoleController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLsKindEquals", "form" }, method = RequestMethod.GET) - public String LsRoleController.findLsRolesByLsKindEqualsForm(Model uiModel) { - return "lsroles/findLsRolesByLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsKindEquals", method = RequestMethod.GET) - public String LsRoleController.findLsRolesByLsKindEquals(@RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsroles", LsRole.findLsRolesByLsKindEquals(lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsRole.countFindLsRolesByLsKindEquals(lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsroles", LsRole.findLsRolesByLsKindEquals(lsKind, sortFieldName, sortOrder).getResultList()); - } - return "lsroles/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEquals", "form" }, method = RequestMethod.GET) - public String LsRoleController.findLsRolesByLsTypeEqualsForm(Model uiModel) { - return "lsroles/findLsRolesByLsTypeEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEquals", method = RequestMethod.GET) - public String LsRoleController.findLsRolesByLsTypeEquals(@RequestParam("lsType") String lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsroles", LsRole.findLsRolesByLsTypeEquals(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsRole.countFindLsRolesByLsTypeEquals(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsroles", LsRole.findLsRolesByLsTypeEquals(lsType, sortFieldName, sortOrder).getResultList()); - } - return "lsroles/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String LsRoleController.findLsRolesByLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - return "lsroles/findLsRolesByLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String LsRoleController.findLsRolesByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsroles", LsRole.findLsRolesByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsRole.countFindLsRolesByLsTypeEqualsAndLsKindEquals(lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsroles", LsRole.findLsRolesByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - return "lsroles/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals", "form" }, method = RequestMethod.GET) - public String LsRoleController.findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEqualsForm(Model uiModel) { - return "lsroles/findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals", method = RequestMethod.GET) - public String LsRoleController.findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam("roleName") String roleName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsroles", LsRole.findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals(lsType, lsKind, roleName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsRole.countFindLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals(lsType, lsKind, roleName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsroles", LsRole.findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals(lsType, lsKind, roleName, sortFieldName, sortOrder).getResultList()); - } - return "lsroles/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndRoleNameEquals", "form" }, method = RequestMethod.GET) - public String LsRoleController.findLsRolesByLsTypeEqualsAndRoleNameEqualsForm(Model uiModel) { - return "lsroles/findLsRolesByLsTypeEqualsAndRoleNameEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndRoleNameEquals", method = RequestMethod.GET) - public String LsRoleController.findLsRolesByLsTypeEqualsAndRoleNameEquals(@RequestParam("lsType") String lsType, @RequestParam("roleName") String roleName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsroles", LsRole.findLsRolesByLsTypeEqualsAndRoleNameEquals(lsType, roleName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsRole.countFindLsRolesByLsTypeEqualsAndRoleNameEquals(lsType, roleName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsroles", LsRole.findLsRolesByLsTypeEqualsAndRoleNameEquals(lsType, roleName, sortFieldName, sortOrder).getResultList()); - } - return "lsroles/list"; - } - - @RequestMapping(params = { "find=ByRoleNameEquals", "form" }, method = RequestMethod.GET) - public String LsRoleController.findLsRolesByRoleNameEqualsForm(Model uiModel) { - return "lsroles/findLsRolesByRoleNameEquals"; - } - - @RequestMapping(params = "find=ByRoleNameEquals", method = RequestMethod.GET) - public String LsRoleController.findLsRolesByRoleNameEquals(@RequestParam("roleName") String roleName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsroles", LsRole.findLsRolesByRoleNameEquals(roleName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsRole.countFindLsRolesByRoleNameEquals(roleName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsroles", LsRole.findLsRolesByRoleNameEquals(roleName, sortFieldName, sortOrder).getResultList()); - } - return "lsroles/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsRoleController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/LsRoleController_Roo_Controller_Json.aj deleted file mode 100755 index a66be980e..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsRoleController_Roo_Controller_Json.aj +++ /dev/null @@ -1,184 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsRole; -import com.labsynch.labseer.web.LsRoleController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect LsRoleController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsRoleController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - LsRole lsRole = LsRole.findLsRole(id); - if (lsRole == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lsRole.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsRoleController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = LsRole.findAllLsRoles(); - return new ResponseEntity(LsRole.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsRoleController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsRole lsRole = LsRole.fromJsonToLsRole(json); - lsRole.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+lsRole.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsRoleController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (LsRole lsRole: LsRole.fromJsonArrayToLsRoles(json)) { - lsRole.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity LsRoleController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsRole lsRole = LsRole.fromJsonToLsRole(json); - lsRole.setId(id); - if (lsRole.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity LsRoleController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsRole lsRole = LsRole.findLsRole(id); - if (lsRole == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - lsRole.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsRoleController.jsonFindLsRolesByLsKindEquals(@RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsRole.toJsonArray(LsRole.findLsRolesByLsKindEquals(lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsRoleController.jsonFindLsRolesByLsTypeEquals(@RequestParam("lsType") String lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsRole.toJsonArray(LsRole.findLsRolesByLsTypeEquals(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsRoleController.jsonFindLsRolesByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsRole.toJsonArray(LsRole.findLsRolesByLsTypeEqualsAndLsKindEquals(lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsRoleController.jsonFindLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam("roleName") String roleName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsRole.toJsonArray(LsRole.findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals(lsType, lsKind, roleName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndRoleNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsRoleController.jsonFindLsRolesByLsTypeEqualsAndRoleNameEquals(@RequestParam("lsType") String lsType, @RequestParam("roleName") String roleName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsRole.toJsonArray(LsRole.findLsRolesByLsTypeEqualsAndRoleNameEquals(lsType, roleName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByRoleNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsRoleController.jsonFindLsRolesByRoleNameEquals(@RequestParam("roleName") String roleName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsRole.toJsonArray(LsRole.findLsRolesByRoleNameEquals(roleName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqAnlGrpController.java b/src/main/java/com/labsynch/labseer/web/LsSeqAnlGrpController.java deleted file mode 100644 index d1f7e0b50..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqAnlGrpController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqAnlGrp; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/lsseqanlgrps") -@Controller -@RooWebScaffold(path = "lsseqanlgrps", formBackingObject = LsSeqAnlGrp.class) -public class LsSeqAnlGrpController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqAnlGrpController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqAnlGrpController_Roo_Controller.aj deleted file mode 100644 index 9aa8ba003..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqAnlGrpController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqAnlGrp; -import com.labsynch.labseer.web.LsSeqAnlGrpController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsSeqAnlGrpController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsSeqAnlGrpController.create(@Valid LsSeqAnlGrp lsSeqAnlGrp, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqAnlGrp); - return "lsseqanlgrps/create"; - } - uiModel.asMap().clear(); - lsSeqAnlGrp.persist(); - return "redirect:/lsseqanlgrps/" + encodeUrlPathSegment(lsSeqAnlGrp.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsSeqAnlGrpController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsSeqAnlGrp()); - return "lsseqanlgrps/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsSeqAnlGrpController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lsseqanlgrp", LsSeqAnlGrp.findLsSeqAnlGrp(id)); - uiModel.addAttribute("itemId", id); - return "lsseqanlgrps/show"; - } - - @RequestMapping(produces = "text/html") - public String LsSeqAnlGrpController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsseqanlgrps", LsSeqAnlGrp.findLsSeqAnlGrpEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsSeqAnlGrp.countLsSeqAnlGrps() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsseqanlgrps", LsSeqAnlGrp.findAllLsSeqAnlGrps(sortFieldName, sortOrder)); - } - return "lsseqanlgrps/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsSeqAnlGrpController.update(@Valid LsSeqAnlGrp lsSeqAnlGrp, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqAnlGrp); - return "lsseqanlgrps/update"; - } - uiModel.asMap().clear(); - lsSeqAnlGrp.merge(); - return "redirect:/lsseqanlgrps/" + encodeUrlPathSegment(lsSeqAnlGrp.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsSeqAnlGrpController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsSeqAnlGrp.findLsSeqAnlGrp(id)); - return "lsseqanlgrps/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsSeqAnlGrpController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsSeqAnlGrp lsSeqAnlGrp = LsSeqAnlGrp.findLsSeqAnlGrp(id); - lsSeqAnlGrp.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsseqanlgrps"; - } - - void LsSeqAnlGrpController.populateEditForm(Model uiModel, LsSeqAnlGrp lsSeqAnlGrp) { - uiModel.addAttribute("lsSeqAnlGrp", lsSeqAnlGrp); - } - - String LsSeqAnlGrpController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqContainerController.java b/src/main/java/com/labsynch/labseer/web/LsSeqContainerController.java deleted file mode 100644 index 4894c6ff9..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqContainerController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqContainer; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/lsseqcontainers") -@Controller -@RooWebScaffold(path = "lsseqcontainers", formBackingObject = LsSeqContainer.class) -public class LsSeqContainerController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqContainerController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqContainerController_Roo_Controller.aj deleted file mode 100644 index 33352ed8d..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqContainerController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqContainer; -import com.labsynch.labseer.web.LsSeqContainerController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsSeqContainerController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsSeqContainerController.create(@Valid LsSeqContainer lsSeqContainer, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqContainer); - return "lsseqcontainers/create"; - } - uiModel.asMap().clear(); - lsSeqContainer.persist(); - return "redirect:/lsseqcontainers/" + encodeUrlPathSegment(lsSeqContainer.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsSeqContainerController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsSeqContainer()); - return "lsseqcontainers/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsSeqContainerController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lsseqcontainer", LsSeqContainer.findLsSeqContainer(id)); - uiModel.addAttribute("itemId", id); - return "lsseqcontainers/show"; - } - - @RequestMapping(produces = "text/html") - public String LsSeqContainerController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsseqcontainers", LsSeqContainer.findLsSeqContainerEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsSeqContainer.countLsSeqContainers() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsseqcontainers", LsSeqContainer.findAllLsSeqContainers(sortFieldName, sortOrder)); - } - return "lsseqcontainers/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsSeqContainerController.update(@Valid LsSeqContainer lsSeqContainer, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqContainer); - return "lsseqcontainers/update"; - } - uiModel.asMap().clear(); - lsSeqContainer.merge(); - return "redirect:/lsseqcontainers/" + encodeUrlPathSegment(lsSeqContainer.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsSeqContainerController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsSeqContainer.findLsSeqContainer(id)); - return "lsseqcontainers/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsSeqContainerController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsSeqContainer lsSeqContainer = LsSeqContainer.findLsSeqContainer(id); - lsSeqContainer.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsseqcontainers"; - } - - void LsSeqContainerController.populateEditForm(Model uiModel, LsSeqContainer lsSeqContainer) { - uiModel.addAttribute("lsSeqContainer", lsSeqContainer); - } - - String LsSeqContainerController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqExptController.java b/src/main/java/com/labsynch/labseer/web/LsSeqExptController.java deleted file mode 100644 index 76b3ce92e..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqExptController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqExpt; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/lsseqexpts") -@Controller -@RooWebScaffold(path = "lsseqexpts", formBackingObject = LsSeqExpt.class) -public class LsSeqExptController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqExptController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqExptController_Roo_Controller.aj deleted file mode 100644 index f0f52d852..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqExptController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqExpt; -import com.labsynch.labseer.web.LsSeqExptController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsSeqExptController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsSeqExptController.create(@Valid LsSeqExpt lsSeqExpt, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqExpt); - return "lsseqexpts/create"; - } - uiModel.asMap().clear(); - lsSeqExpt.persist(); - return "redirect:/lsseqexpts/" + encodeUrlPathSegment(lsSeqExpt.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsSeqExptController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsSeqExpt()); - return "lsseqexpts/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsSeqExptController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lsseqexpt", LsSeqExpt.findLsSeqExpt(id)); - uiModel.addAttribute("itemId", id); - return "lsseqexpts/show"; - } - - @RequestMapping(produces = "text/html") - public String LsSeqExptController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsseqexpts", LsSeqExpt.findLsSeqExptEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsSeqExpt.countLsSeqExpts() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsseqexpts", LsSeqExpt.findAllLsSeqExpts(sortFieldName, sortOrder)); - } - return "lsseqexpts/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsSeqExptController.update(@Valid LsSeqExpt lsSeqExpt, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqExpt); - return "lsseqexpts/update"; - } - uiModel.asMap().clear(); - lsSeqExpt.merge(); - return "redirect:/lsseqexpts/" + encodeUrlPathSegment(lsSeqExpt.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsSeqExptController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsSeqExpt.findLsSeqExpt(id)); - return "lsseqexpts/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsSeqExptController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsSeqExpt lsSeqExpt = LsSeqExpt.findLsSeqExpt(id); - lsSeqExpt.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsseqexpts"; - } - - void LsSeqExptController.populateEditForm(Model uiModel, LsSeqExpt lsSeqExpt) { - uiModel.addAttribute("lsSeqExpt", lsSeqExpt); - } - - String LsSeqExptController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxCntrCntrController.java b/src/main/java/com/labsynch/labseer/web/LsSeqItxCntrCntrController.java deleted file mode 100644 index acc6c1482..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxCntrCntrController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqItxCntrCntr; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/lsseqitxcntrcntrs") -@Controller -@RooWebScaffold(path = "lsseqitxcntrcntrs", formBackingObject = LsSeqItxCntrCntr.class) -public class LsSeqItxCntrCntrController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxCntrCntrController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqItxCntrCntrController_Roo_Controller.aj deleted file mode 100644 index 58a54c0c7..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxCntrCntrController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqItxCntrCntr; -import com.labsynch.labseer.web.LsSeqItxCntrCntrController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsSeqItxCntrCntrController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsSeqItxCntrCntrController.create(@Valid LsSeqItxCntrCntr lsSeqItxCntrCntr, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqItxCntrCntr); - return "lsseqitxcntrcntrs/create"; - } - uiModel.asMap().clear(); - lsSeqItxCntrCntr.persist(); - return "redirect:/lsseqitxcntrcntrs/" + encodeUrlPathSegment(lsSeqItxCntrCntr.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsSeqItxCntrCntrController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsSeqItxCntrCntr()); - return "lsseqitxcntrcntrs/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsSeqItxCntrCntrController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lsseqitxcntrcntr", LsSeqItxCntrCntr.findLsSeqItxCntrCntr(id)); - uiModel.addAttribute("itemId", id); - return "lsseqitxcntrcntrs/show"; - } - - @RequestMapping(produces = "text/html") - public String LsSeqItxCntrCntrController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsseqitxcntrcntrs", LsSeqItxCntrCntr.findLsSeqItxCntrCntrEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsSeqItxCntrCntr.countLsSeqItxCntrCntrs() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsseqitxcntrcntrs", LsSeqItxCntrCntr.findAllLsSeqItxCntrCntrs(sortFieldName, sortOrder)); - } - return "lsseqitxcntrcntrs/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsSeqItxCntrCntrController.update(@Valid LsSeqItxCntrCntr lsSeqItxCntrCntr, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqItxCntrCntr); - return "lsseqitxcntrcntrs/update"; - } - uiModel.asMap().clear(); - lsSeqItxCntrCntr.merge(); - return "redirect:/lsseqitxcntrcntrs/" + encodeUrlPathSegment(lsSeqItxCntrCntr.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsSeqItxCntrCntrController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsSeqItxCntrCntr.findLsSeqItxCntrCntr(id)); - return "lsseqitxcntrcntrs/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsSeqItxCntrCntrController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsSeqItxCntrCntr lsSeqItxCntrCntr = LsSeqItxCntrCntr.findLsSeqItxCntrCntr(id); - lsSeqItxCntrCntr.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsseqitxcntrcntrs"; - } - - void LsSeqItxCntrCntrController.populateEditForm(Model uiModel, LsSeqItxCntrCntr lsSeqItxCntrCntr) { - uiModel.addAttribute("lsSeqItxCntrCntr", lsSeqItxCntrCntr); - } - - String LsSeqItxCntrCntrController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxExperimentExperimentController.java b/src/main/java/com/labsynch/labseer/web/LsSeqItxExperimentExperimentController.java deleted file mode 100644 index f58cfe4f0..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxExperimentExperimentController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqItxExperimentExperiment; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/lsseqitxexperimentexperiments") -@Controller -@RooWebScaffold(path = "lsseqitxexperimentexperiments", formBackingObject = LsSeqItxExperimentExperiment.class) -public class LsSeqItxExperimentExperimentController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxExperimentExperimentController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqItxExperimentExperimentController_Roo_Controller.aj deleted file mode 100644 index 82c3cbe19..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxExperimentExperimentController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqItxExperimentExperiment; -import com.labsynch.labseer.web.LsSeqItxExperimentExperimentController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsSeqItxExperimentExperimentController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsSeqItxExperimentExperimentController.create(@Valid LsSeqItxExperimentExperiment lsSeqItxExperimentExperiment, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqItxExperimentExperiment); - return "lsseqitxexperimentexperiments/create"; - } - uiModel.asMap().clear(); - lsSeqItxExperimentExperiment.persist(); - return "redirect:/lsseqitxexperimentexperiments/" + encodeUrlPathSegment(lsSeqItxExperimentExperiment.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsSeqItxExperimentExperimentController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsSeqItxExperimentExperiment()); - return "lsseqitxexperimentexperiments/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsSeqItxExperimentExperimentController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lsseqitxexperimentexperiment", LsSeqItxExperimentExperiment.findLsSeqItxExperimentExperiment(id)); - uiModel.addAttribute("itemId", id); - return "lsseqitxexperimentexperiments/show"; - } - - @RequestMapping(produces = "text/html") - public String LsSeqItxExperimentExperimentController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsseqitxexperimentexperiments", LsSeqItxExperimentExperiment.findLsSeqItxExperimentExperimentEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsSeqItxExperimentExperiment.countLsSeqItxExperimentExperiments() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsseqitxexperimentexperiments", LsSeqItxExperimentExperiment.findAllLsSeqItxExperimentExperiments(sortFieldName, sortOrder)); - } - return "lsseqitxexperimentexperiments/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsSeqItxExperimentExperimentController.update(@Valid LsSeqItxExperimentExperiment lsSeqItxExperimentExperiment, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqItxExperimentExperiment); - return "lsseqitxexperimentexperiments/update"; - } - uiModel.asMap().clear(); - lsSeqItxExperimentExperiment.merge(); - return "redirect:/lsseqitxexperimentexperiments/" + encodeUrlPathSegment(lsSeqItxExperimentExperiment.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsSeqItxExperimentExperimentController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsSeqItxExperimentExperiment.findLsSeqItxExperimentExperiment(id)); - return "lsseqitxexperimentexperiments/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsSeqItxExperimentExperimentController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsSeqItxExperimentExperiment lsSeqItxExperimentExperiment = LsSeqItxExperimentExperiment.findLsSeqItxExperimentExperiment(id); - lsSeqItxExperimentExperiment.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsseqitxexperimentexperiments"; - } - - void LsSeqItxExperimentExperimentController.populateEditForm(Model uiModel, LsSeqItxExperimentExperiment lsSeqItxExperimentExperiment) { - uiModel.addAttribute("lsSeqItxExperimentExperiment", lsSeqItxExperimentExperiment); - } - - String LsSeqItxExperimentExperimentController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxLsThingLsThingController.java b/src/main/java/com/labsynch/labseer/web/LsSeqItxLsThingLsThingController.java deleted file mode 100644 index 9d06de9a4..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxLsThingLsThingController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqItxLsThingLsThing; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/lsseqitxlsthinglsthings") -@Controller -@RooWebScaffold(path = "lsseqitxlsthinglsthings", formBackingObject = LsSeqItxLsThingLsThing.class) -public class LsSeqItxLsThingLsThingController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxLsThingLsThingController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqItxLsThingLsThingController_Roo_Controller.aj deleted file mode 100644 index 71d31c696..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxLsThingLsThingController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqItxLsThingLsThing; -import com.labsynch.labseer.web.LsSeqItxLsThingLsThingController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsSeqItxLsThingLsThingController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsSeqItxLsThingLsThingController.create(@Valid LsSeqItxLsThingLsThing lsSeqItxLsThingLsThing, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqItxLsThingLsThing); - return "lsseqitxlsthinglsthings/create"; - } - uiModel.asMap().clear(); - lsSeqItxLsThingLsThing.persist(); - return "redirect:/lsseqitxlsthinglsthings/" + encodeUrlPathSegment(lsSeqItxLsThingLsThing.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsSeqItxLsThingLsThingController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsSeqItxLsThingLsThing()); - return "lsseqitxlsthinglsthings/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsSeqItxLsThingLsThingController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lsseqitxlsthinglsthing", LsSeqItxLsThingLsThing.findLsSeqItxLsThingLsThing(id)); - uiModel.addAttribute("itemId", id); - return "lsseqitxlsthinglsthings/show"; - } - - @RequestMapping(produces = "text/html") - public String LsSeqItxLsThingLsThingController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsseqitxlsthinglsthings", LsSeqItxLsThingLsThing.findLsSeqItxLsThingLsThingEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsSeqItxLsThingLsThing.countLsSeqItxLsThingLsThings() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsseqitxlsthinglsthings", LsSeqItxLsThingLsThing.findAllLsSeqItxLsThingLsThings(sortFieldName, sortOrder)); - } - return "lsseqitxlsthinglsthings/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsSeqItxLsThingLsThingController.update(@Valid LsSeqItxLsThingLsThing lsSeqItxLsThingLsThing, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqItxLsThingLsThing); - return "lsseqitxlsthinglsthings/update"; - } - uiModel.asMap().clear(); - lsSeqItxLsThingLsThing.merge(); - return "redirect:/lsseqitxlsthinglsthings/" + encodeUrlPathSegment(lsSeqItxLsThingLsThing.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsSeqItxLsThingLsThingController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsSeqItxLsThingLsThing.findLsSeqItxLsThingLsThing(id)); - return "lsseqitxlsthinglsthings/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsSeqItxLsThingLsThingController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsSeqItxLsThingLsThing lsSeqItxLsThingLsThing = LsSeqItxLsThingLsThing.findLsSeqItxLsThingLsThing(id); - lsSeqItxLsThingLsThing.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsseqitxlsthinglsthings"; - } - - void LsSeqItxLsThingLsThingController.populateEditForm(Model uiModel, LsSeqItxLsThingLsThing lsSeqItxLsThingLsThing) { - uiModel.addAttribute("lsSeqItxLsThingLsThing", lsSeqItxLsThingLsThing); - } - - String LsSeqItxLsThingLsThingController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxProtocolProtocolController.java b/src/main/java/com/labsynch/labseer/web/LsSeqItxProtocolProtocolController.java deleted file mode 100644 index ad21354a9..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxProtocolProtocolController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqItxProtocolProtocol; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/lsseqitxprotocolprotocols") -@Controller -@RooWebScaffold(path = "lsseqitxprotocolprotocols", formBackingObject = LsSeqItxProtocolProtocol.class) -public class LsSeqItxProtocolProtocolController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxProtocolProtocolController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqItxProtocolProtocolController_Roo_Controller.aj deleted file mode 100644 index bf9e47cf2..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxProtocolProtocolController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqItxProtocolProtocol; -import com.labsynch.labseer.web.LsSeqItxProtocolProtocolController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsSeqItxProtocolProtocolController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsSeqItxProtocolProtocolController.create(@Valid LsSeqItxProtocolProtocol lsSeqItxProtocolProtocol, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqItxProtocolProtocol); - return "lsseqitxprotocolprotocols/create"; - } - uiModel.asMap().clear(); - lsSeqItxProtocolProtocol.persist(); - return "redirect:/lsseqitxprotocolprotocols/" + encodeUrlPathSegment(lsSeqItxProtocolProtocol.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsSeqItxProtocolProtocolController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsSeqItxProtocolProtocol()); - return "lsseqitxprotocolprotocols/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsSeqItxProtocolProtocolController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lsseqitxprotocolprotocol", LsSeqItxProtocolProtocol.findLsSeqItxProtocolProtocol(id)); - uiModel.addAttribute("itemId", id); - return "lsseqitxprotocolprotocols/show"; - } - - @RequestMapping(produces = "text/html") - public String LsSeqItxProtocolProtocolController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsseqitxprotocolprotocols", LsSeqItxProtocolProtocol.findLsSeqItxProtocolProtocolEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsSeqItxProtocolProtocol.countLsSeqItxProtocolProtocols() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsseqitxprotocolprotocols", LsSeqItxProtocolProtocol.findAllLsSeqItxProtocolProtocols(sortFieldName, sortOrder)); - } - return "lsseqitxprotocolprotocols/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsSeqItxProtocolProtocolController.update(@Valid LsSeqItxProtocolProtocol lsSeqItxProtocolProtocol, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqItxProtocolProtocol); - return "lsseqitxprotocolprotocols/update"; - } - uiModel.asMap().clear(); - lsSeqItxProtocolProtocol.merge(); - return "redirect:/lsseqitxprotocolprotocols/" + encodeUrlPathSegment(lsSeqItxProtocolProtocol.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsSeqItxProtocolProtocolController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsSeqItxProtocolProtocol.findLsSeqItxProtocolProtocol(id)); - return "lsseqitxprotocolprotocols/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsSeqItxProtocolProtocolController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsSeqItxProtocolProtocol lsSeqItxProtocolProtocol = LsSeqItxProtocolProtocol.findLsSeqItxProtocolProtocol(id); - lsSeqItxProtocolProtocol.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsseqitxprotocolprotocols"; - } - - void LsSeqItxProtocolProtocolController.populateEditForm(Model uiModel, LsSeqItxProtocolProtocol lsSeqItxProtocolProtocol) { - uiModel.addAttribute("lsSeqItxProtocolProtocol", lsSeqItxProtocolProtocol); - } - - String LsSeqItxProtocolProtocolController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxSubjCntrController.java b/src/main/java/com/labsynch/labseer/web/LsSeqItxSubjCntrController.java deleted file mode 100644 index a23914bf0..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxSubjCntrController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqItxSubjCntr; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/lsseqitxsubjcntrs") -@Controller -@RooWebScaffold(path = "lsseqitxsubjcntrs", formBackingObject = LsSeqItxSubjCntr.class) -public class LsSeqItxSubjCntrController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqItxSubjCntrController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqItxSubjCntrController_Roo_Controller.aj deleted file mode 100644 index 1415386a9..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqItxSubjCntrController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqItxSubjCntr; -import com.labsynch.labseer.web.LsSeqItxSubjCntrController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsSeqItxSubjCntrController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsSeqItxSubjCntrController.create(@Valid LsSeqItxSubjCntr lsSeqItxSubjCntr, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqItxSubjCntr); - return "lsseqitxsubjcntrs/create"; - } - uiModel.asMap().clear(); - lsSeqItxSubjCntr.persist(); - return "redirect:/lsseqitxsubjcntrs/" + encodeUrlPathSegment(lsSeqItxSubjCntr.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsSeqItxSubjCntrController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsSeqItxSubjCntr()); - return "lsseqitxsubjcntrs/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsSeqItxSubjCntrController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lsseqitxsubjcntr", LsSeqItxSubjCntr.findLsSeqItxSubjCntr(id)); - uiModel.addAttribute("itemId", id); - return "lsseqitxsubjcntrs/show"; - } - - @RequestMapping(produces = "text/html") - public String LsSeqItxSubjCntrController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsseqitxsubjcntrs", LsSeqItxSubjCntr.findLsSeqItxSubjCntrEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsSeqItxSubjCntr.countLsSeqItxSubjCntrs() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsseqitxsubjcntrs", LsSeqItxSubjCntr.findAllLsSeqItxSubjCntrs(sortFieldName, sortOrder)); - } - return "lsseqitxsubjcntrs/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsSeqItxSubjCntrController.update(@Valid LsSeqItxSubjCntr lsSeqItxSubjCntr, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqItxSubjCntr); - return "lsseqitxsubjcntrs/update"; - } - uiModel.asMap().clear(); - lsSeqItxSubjCntr.merge(); - return "redirect:/lsseqitxsubjcntrs/" + encodeUrlPathSegment(lsSeqItxSubjCntr.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsSeqItxSubjCntrController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsSeqItxSubjCntr.findLsSeqItxSubjCntr(id)); - return "lsseqitxsubjcntrs/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsSeqItxSubjCntrController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsSeqItxSubjCntr lsSeqItxSubjCntr = LsSeqItxSubjCntr.findLsSeqItxSubjCntr(id); - lsSeqItxSubjCntr.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsseqitxsubjcntrs"; - } - - void LsSeqItxSubjCntrController.populateEditForm(Model uiModel, LsSeqItxSubjCntr lsSeqItxSubjCntr) { - uiModel.addAttribute("lsSeqItxSubjCntr", lsSeqItxSubjCntr); - } - - String LsSeqItxSubjCntrController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqProtocolController.java b/src/main/java/com/labsynch/labseer/web/LsSeqProtocolController.java deleted file mode 100644 index 9f08a25c3..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqProtocolController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqProtocol; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/lsseqprotocols") -@Controller -@RooWebScaffold(path = "lsseqprotocols", formBackingObject = LsSeqProtocol.class) -public class LsSeqProtocolController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqProtocolController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqProtocolController_Roo_Controller.aj deleted file mode 100644 index 29fd96611..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqProtocolController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqProtocol; -import com.labsynch.labseer.web.LsSeqProtocolController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsSeqProtocolController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsSeqProtocolController.create(@Valid LsSeqProtocol lsSeqProtocol, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqProtocol); - return "lsseqprotocols/create"; - } - uiModel.asMap().clear(); - lsSeqProtocol.persist(); - return "redirect:/lsseqprotocols/" + encodeUrlPathSegment(lsSeqProtocol.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsSeqProtocolController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsSeqProtocol()); - return "lsseqprotocols/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsSeqProtocolController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lsseqprotocol", LsSeqProtocol.findLsSeqProtocol(id)); - uiModel.addAttribute("itemId", id); - return "lsseqprotocols/show"; - } - - @RequestMapping(produces = "text/html") - public String LsSeqProtocolController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsseqprotocols", LsSeqProtocol.findLsSeqProtocolEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsSeqProtocol.countLsSeqProtocols() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsseqprotocols", LsSeqProtocol.findAllLsSeqProtocols(sortFieldName, sortOrder)); - } - return "lsseqprotocols/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsSeqProtocolController.update(@Valid LsSeqProtocol lsSeqProtocol, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqProtocol); - return "lsseqprotocols/update"; - } - uiModel.asMap().clear(); - lsSeqProtocol.merge(); - return "redirect:/lsseqprotocols/" + encodeUrlPathSegment(lsSeqProtocol.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsSeqProtocolController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsSeqProtocol.findLsSeqProtocol(id)); - return "lsseqprotocols/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsSeqProtocolController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsSeqProtocol lsSeqProtocol = LsSeqProtocol.findLsSeqProtocol(id); - lsSeqProtocol.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsseqprotocols"; - } - - void LsSeqProtocolController.populateEditForm(Model uiModel, LsSeqProtocol lsSeqProtocol) { - uiModel.addAttribute("lsSeqProtocol", lsSeqProtocol); - } - - String LsSeqProtocolController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqSubjectController.java b/src/main/java/com/labsynch/labseer/web/LsSeqSubjectController.java deleted file mode 100644 index 7c8b59c9b..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqSubjectController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqSubject; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/lsseqsubjects") -@Controller -@RooWebScaffold(path = "lsseqsubjects", formBackingObject = LsSeqSubject.class) -public class LsSeqSubjectController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqSubjectController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqSubjectController_Roo_Controller.aj deleted file mode 100644 index 2505ece6b..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqSubjectController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqSubject; -import com.labsynch.labseer.web.LsSeqSubjectController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsSeqSubjectController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsSeqSubjectController.create(@Valid LsSeqSubject lsSeqSubject, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqSubject); - return "lsseqsubjects/create"; - } - uiModel.asMap().clear(); - lsSeqSubject.persist(); - return "redirect:/lsseqsubjects/" + encodeUrlPathSegment(lsSeqSubject.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsSeqSubjectController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsSeqSubject()); - return "lsseqsubjects/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsSeqSubjectController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lsseqsubject", LsSeqSubject.findLsSeqSubject(id)); - uiModel.addAttribute("itemId", id); - return "lsseqsubjects/show"; - } - - @RequestMapping(produces = "text/html") - public String LsSeqSubjectController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsseqsubjects", LsSeqSubject.findLsSeqSubjectEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsSeqSubject.countLsSeqSubjects() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsseqsubjects", LsSeqSubject.findAllLsSeqSubjects(sortFieldName, sortOrder)); - } - return "lsseqsubjects/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsSeqSubjectController.update(@Valid LsSeqSubject lsSeqSubject, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqSubject); - return "lsseqsubjects/update"; - } - uiModel.asMap().clear(); - lsSeqSubject.merge(); - return "redirect:/lsseqsubjects/" + encodeUrlPathSegment(lsSeqSubject.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsSeqSubjectController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsSeqSubject.findLsSeqSubject(id)); - return "lsseqsubjects/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsSeqSubjectController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsSeqSubject lsSeqSubject = LsSeqSubject.findLsSeqSubject(id); - lsSeqSubject.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsseqsubjects"; - } - - void LsSeqSubjectController.populateEditForm(Model uiModel, LsSeqSubject lsSeqSubject) { - uiModel.addAttribute("lsSeqSubject", lsSeqSubject); - } - - String LsSeqSubjectController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqTrtGrpController.java b/src/main/java/com/labsynch/labseer/web/LsSeqTrtGrpController.java deleted file mode 100644 index d592f844b..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqTrtGrpController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqTrtGrp; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/lsseqtrtgrps") -@Controller -@RooWebScaffold(path = "lsseqtrtgrps", formBackingObject = LsSeqTrtGrp.class) -public class LsSeqTrtGrpController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsSeqTrtGrpController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsSeqTrtGrpController_Roo_Controller.aj deleted file mode 100644 index 1e8f0e053..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsSeqTrtGrpController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsSeqTrtGrp; -import com.labsynch.labseer.web.LsSeqTrtGrpController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsSeqTrtGrpController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsSeqTrtGrpController.create(@Valid LsSeqTrtGrp lsSeqTrtGrp, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqTrtGrp); - return "lsseqtrtgrps/create"; - } - uiModel.asMap().clear(); - lsSeqTrtGrp.persist(); - return "redirect:/lsseqtrtgrps/" + encodeUrlPathSegment(lsSeqTrtGrp.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsSeqTrtGrpController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsSeqTrtGrp()); - return "lsseqtrtgrps/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsSeqTrtGrpController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("lsseqtrtgrp", LsSeqTrtGrp.findLsSeqTrtGrp(id)); - uiModel.addAttribute("itemId", id); - return "lsseqtrtgrps/show"; - } - - @RequestMapping(produces = "text/html") - public String LsSeqTrtGrpController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsseqtrtgrps", LsSeqTrtGrp.findLsSeqTrtGrpEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsSeqTrtGrp.countLsSeqTrtGrps() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsseqtrtgrps", LsSeqTrtGrp.findAllLsSeqTrtGrps(sortFieldName, sortOrder)); - } - return "lsseqtrtgrps/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsSeqTrtGrpController.update(@Valid LsSeqTrtGrp lsSeqTrtGrp, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsSeqTrtGrp); - return "lsseqtrtgrps/update"; - } - uiModel.asMap().clear(); - lsSeqTrtGrp.merge(); - return "redirect:/lsseqtrtgrps/" + encodeUrlPathSegment(lsSeqTrtGrp.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsSeqTrtGrpController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsSeqTrtGrp.findLsSeqTrtGrp(id)); - return "lsseqtrtgrps/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsSeqTrtGrpController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsSeqTrtGrp lsSeqTrtGrp = LsSeqTrtGrp.findLsSeqTrtGrp(id); - lsSeqTrtGrp.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsseqtrtgrps"; - } - - void LsSeqTrtGrpController.populateEditForm(Model uiModel, LsSeqTrtGrp lsSeqTrtGrp) { - uiModel.addAttribute("lsSeqTrtGrp", lsSeqTrtGrp); - } - - String LsSeqTrtGrpController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsTagController.java b/src/main/java/com/labsynch/labseer/web/LsTagController.java deleted file mode 100755 index 4811f8741..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsTagController.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsTag; -import java.io.UnsupportedEncodingException; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -@RooWebJson(jsonObject = LsTag.class) -@Transactional -@RooWebFinder -@RequestMapping("/lstags") -@Controller -@RooWebScaffold(path = "lstags", formBackingObject = LsTag.class) -public class LsTagController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller.aj deleted file mode 100644 index f50f68480..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller.aj +++ /dev/null @@ -1,115 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.LsTag; -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.web.LsTagController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsTagController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsTagController.create(@Valid LsTag lsTag, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsTag); - return "lstags/create"; - } - uiModel.asMap().clear(); - lsTag.persist(); - return "redirect:/lstags/" + encodeUrlPathSegment(lsTag.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsTagController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsTag()); - return "lstags/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsTagController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("lstag", LsTag.findLsTag(id)); - uiModel.addAttribute("itemId", id); - return "lstags/show"; - } - - @RequestMapping(produces = "text/html") - public String LsTagController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lstags", LsTag.findLsTagEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsTag.countLsTags() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lstags", LsTag.findAllLsTags(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "lstags/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsTagController.update(@Valid LsTag lsTag, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsTag); - return "lstags/update"; - } - uiModel.asMap().clear(); - lsTag.merge(); - return "redirect:/lstags/" + encodeUrlPathSegment(lsTag.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsTagController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsTag.findLsTag(id)); - return "lstags/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsTagController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsTag lsTag = LsTag.findLsTag(id); - lsTag.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lstags"; - } - - void LsTagController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("lsTag_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void LsTagController.populateEditForm(Model uiModel, LsTag lsTag) { - uiModel.addAttribute("lsTag", lsTag); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - uiModel.addAttribute("lsthings", LsThing.findAllLsThings()); - uiModel.addAttribute("protocols", Protocol.findAllProtocols()); - } - - String LsTagController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller_Finder.aj deleted file mode 100755 index 606808682..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,55 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsTag; -import com.labsynch.labseer.web.LsTagController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect LsTagController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByTagTextEquals", "form" }, method = RequestMethod.GET) - public String LsTagController.findLsTagsByTagTextEqualsForm(Model uiModel) { - return "lstags/findLsTagsByTagTextEquals"; - } - - @RequestMapping(params = "find=ByTagTextEquals", method = RequestMethod.GET) - public String LsTagController.findLsTagsByTagTextEquals(@RequestParam("tagText") String tagText, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lstags", LsTag.findLsTagsByTagTextEquals(tagText, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsTag.countFindLsTagsByTagTextEquals(tagText) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lstags", LsTag.findLsTagsByTagTextEquals(tagText, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lstags/list"; - } - - @RequestMapping(params = { "find=ByTagTextLike", "form" }, method = RequestMethod.GET) - public String LsTagController.findLsTagsByTagTextLikeForm(Model uiModel) { - return "lstags/findLsTagsByTagTextLike"; - } - - @RequestMapping(params = "find=ByTagTextLike", method = RequestMethod.GET) - public String LsTagController.findLsTagsByTagTextLike(@RequestParam("tagText") String tagText, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lstags", LsTag.findLsTagsByTagTextLike(tagText, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsTag.countFindLsTagsByTagTextLike(tagText) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lstags", LsTag.findLsTagsByTagTextLike(tagText, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lstags/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller_Json.aj deleted file mode 100755 index a595d8a9b..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsTagController_Roo_Controller_Json.aj +++ /dev/null @@ -1,136 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsTag; -import com.labsynch.labseer.web.LsTagController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect LsTagController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsTagController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - LsTag lsTag = LsTag.findLsTag(id); - if (lsTag == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lsTag.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsTagController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = LsTag.findAllLsTags(); - return new ResponseEntity(LsTag.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsTagController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsTag lsTag = LsTag.fromJsonToLsTag(json); - lsTag.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+lsTag.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsTagController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (LsTag lsTag: LsTag.fromJsonArrayToLsTags(json)) { - lsTag.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity LsTagController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsTag lsTag = LsTag.fromJsonToLsTag(json); - lsTag.setId(id); - if (lsTag.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity LsTagController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsTag lsTag = LsTag.findLsTag(id); - if (lsTag == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - lsTag.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTagTextEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsTagController.jsonFindLsTagsByTagTextEquals(@RequestParam("tagText") String tagText) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsTag.toJsonArray(LsTag.findLsTagsByTagTextEquals(tagText).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTagTextLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsTagController.jsonFindLsTagsByTagTextLike(@RequestParam("tagText") String tagText) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsTag.toJsonArray(LsTag.findLsTagsByTagTextLike(tagText).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingController.java b/src/main/java/com/labsynch/labseer/web/LsThingController.java deleted file mode 100755 index a9926df43..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingController.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.dto.ErrorMessageDTO; -import com.labsynch.labseer.dto.PreferredNameResultsDTO; -import com.labsynch.labseer.dto.PreferredNameWithErrorDTO; -import com.labsynch.labseer.service.GeneThingService; -import com.labsynch.labseer.service.LsThingService; -import java.io.IOException; -import java.util.List; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = LsThing.class) -@Controller -@RequestMapping("/lsthings") -@RooWebScaffold(path = "lsthings", formBackingObject = LsThing.class) -@RooWebFinder -public class LsThingController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller.aj deleted file mode 100755 index 45e171225..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller.aj +++ /dev/null @@ -1,120 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxLsThingLsThing; -import com.labsynch.labseer.domain.LsTag; -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.domain.LsThingLabel; -import com.labsynch.labseer.domain.LsThingState; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.LsThingController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsThingController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsThingController.create(@Valid LsThing lsThing, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsThing); - return "lsthings/create"; - } - uiModel.asMap().clear(); - lsThing.persist(); - return "redirect:/lsthings/" + encodeUrlPathSegment(lsThing.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsThingController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsThing()); - return "lsthings/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsThingController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("lsthing", LsThing.findLsThing(id)); - uiModel.addAttribute("itemId", id); - return "lsthings/show"; - } - - @RequestMapping(produces = "text/html") - public String LsThingController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthings", LsThing.findLsThingEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsThing.countLsThings() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthings", LsThing.findAllLsThings(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "lsthings/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsThingController.update(@Valid LsThing lsThing, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsThing); - return "lsthings/update"; - } - uiModel.asMap().clear(); - lsThing.merge(); - return "redirect:/lsthings/" + encodeUrlPathSegment(lsThing.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsThingController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsThing.findLsThing(id)); - return "lsthings/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsThingController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsThing lsThing = LsThing.findLsThing(id); - lsThing.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsthings"; - } - - void LsThingController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("lsThing_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("lsThing_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void LsThingController.populateEditForm(Model uiModel, LsThing lsThing) { - uiModel.addAttribute("lsThing", lsThing); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxlsthinglsthings", ItxLsThingLsThing.findAllItxLsThingLsThings()); - uiModel.addAttribute("lstags", LsTag.findAllLsTags()); - uiModel.addAttribute("lsthinglabels", LsThingLabel.findAllLsThingLabels()); - uiModel.addAttribute("lsthingstates", LsThingState.findAllLsThingStates()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - } - - String LsThingController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller_Finder.aj deleted file mode 100755 index e47ef9c5c..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,239 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.web.LsThingController; -import java.util.Date; -import org.springframework.format.annotation.DateTimeFormat; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect LsThingController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeNameEquals", "form" }, method = RequestMethod.GET) - public String LsThingController.findLsThingsByCodeNameEqualsForm(Model uiModel) { - return "lsthings/findLsThingsByCodeNameEquals"; - } - - @RequestMapping(params = "find=ByCodeNameEquals", method = RequestMethod.GET) - public String LsThingController.findLsThingsByCodeNameEquals(@RequestParam("codeName") String codeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthings", LsThing.findLsThingsByCodeNameEquals(codeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThing.countFindLsThingsByCodeNameEquals(codeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthings", LsThing.findLsThingsByCodeNameEquals(codeName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthings/list"; - } - - @RequestMapping(params = { "find=ByCodeNameLike", "form" }, method = RequestMethod.GET) - public String LsThingController.findLsThingsByCodeNameLikeForm(Model uiModel) { - return "lsthings/findLsThingsByCodeNameLike"; - } - - @RequestMapping(params = "find=ByCodeNameLike", method = RequestMethod.GET) - public String LsThingController.findLsThingsByCodeNameLike(@RequestParam("codeName") String codeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthings", LsThing.findLsThingsByCodeNameLike(codeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThing.countFindLsThingsByCodeNameLike(codeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthings", LsThing.findLsThingsByCodeNameLike(codeName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthings/list"; - } - - @RequestMapping(params = { "find=ByLsKindEquals", "form" }, method = RequestMethod.GET) - public String LsThingController.findLsThingsByLsKindEqualsForm(Model uiModel) { - return "lsthings/findLsThingsByLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsKindEquals", method = RequestMethod.GET) - public String LsThingController.findLsThingsByLsKindEquals(@RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthings", LsThing.findLsThingsByLsKindEquals(lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThing.countFindLsThingsByLsKindEquals(lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthings", LsThing.findLsThingsByLsKindEquals(lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthings/list"; - } - - @RequestMapping(params = { "find=ByLsKindLike", "form" }, method = RequestMethod.GET) - public String LsThingController.findLsThingsByLsKindLikeForm(Model uiModel) { - return "lsthings/findLsThingsByLsKindLike"; - } - - @RequestMapping(params = "find=ByLsKindLike", method = RequestMethod.GET) - public String LsThingController.findLsThingsByLsKindLike(@RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthings", LsThing.findLsThingsByLsKindLike(lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThing.countFindLsThingsByLsKindLike(lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthings", LsThing.findLsThingsByLsKindLike(lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthings/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String LsThingController.findLsThingsByLsTransactionEqualsForm(Model uiModel) { - return "lsthings/findLsThingsByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String LsThingController.findLsThingsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthings", LsThing.findLsThingsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThing.countFindLsThingsByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthings", LsThing.findLsThingsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthings/list"; - } - - @RequestMapping(params = { "find=ByLsTypeAndKindEquals", "form" }, method = RequestMethod.GET) - public String LsThingController.findLsThingsByLsTypeAndKindEqualsForm(Model uiModel) { - return "lsthings/findLsThingsByLsTypeAndKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeAndKindEquals", method = RequestMethod.GET) - public String LsThingController.findLsThingsByLsTypeAndKindEquals(@RequestParam("lsTypeAndKind") String lsTypeAndKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthings", LsThing.findLsThingsByLsTypeAndKindEquals(lsTypeAndKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThing.countFindLsThingsByLsTypeAndKindEquals(lsTypeAndKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthings", LsThing.findLsThingsByLsTypeAndKindEquals(lsTypeAndKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthings/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEquals", "form" }, method = RequestMethod.GET) - public String LsThingController.findLsThingsByLsTypeEqualsForm(Model uiModel) { - return "lsthings/findLsThingsByLsTypeEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEquals", method = RequestMethod.GET) - public String LsThingController.findLsThingsByLsTypeEquals(@RequestParam("lsType") String lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthings", LsThing.findLsThingsByLsTypeEquals(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThing.countFindLsThingsByLsTypeEquals(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthings", LsThing.findLsThingsByLsTypeEquals(lsType, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthings/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String LsThingController.findLsThingsByLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - return "lsthings/findLsThingsByLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String LsThingController.findLsThingsByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthings", LsThing.findLsThingsByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThing.countFindLsThingsByLsTypeEqualsAndLsKindEquals(lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthings", LsThing.findLsThingsByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthings/list"; - } - - @RequestMapping(params = { "find=ByRecordedByLike", "form" }, method = RequestMethod.GET) - public String LsThingController.findLsThingsByRecordedByLikeForm(Model uiModel) { - return "lsthings/findLsThingsByRecordedByLike"; - } - - @RequestMapping(params = "find=ByRecordedByLike", method = RequestMethod.GET) - public String LsThingController.findLsThingsByRecordedByLike(@RequestParam("recordedBy") String recordedBy, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthings", LsThing.findLsThingsByRecordedByLike(recordedBy, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThing.countFindLsThingsByRecordedByLike(recordedBy) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthings", LsThing.findLsThingsByRecordedByLike(recordedBy, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthings/list"; - } - - @RequestMapping(params = { "find=ByRecordedDateGreaterThan", "form" }, method = RequestMethod.GET) - public String LsThingController.findLsThingsByRecordedDateGreaterThanForm(Model uiModel) { - addDateTimeFormatPatterns(uiModel); - return "lsthings/findLsThingsByRecordedDateGreaterThan"; - } - - @RequestMapping(params = "find=ByRecordedDateGreaterThan", method = RequestMethod.GET) - public String LsThingController.findLsThingsByRecordedDateGreaterThan(@RequestParam("recordedDate") @DateTimeFormat(style = "MM") Date recordedDate, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthings", LsThing.findLsThingsByRecordedDateGreaterThan(recordedDate, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThing.countFindLsThingsByRecordedDateGreaterThan(recordedDate) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthings", LsThing.findLsThingsByRecordedDateGreaterThan(recordedDate, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthings/list"; - } - - @RequestMapping(params = { "find=ByRecordedDateLessThan", "form" }, method = RequestMethod.GET) - public String LsThingController.findLsThingsByRecordedDateLessThanForm(Model uiModel) { - addDateTimeFormatPatterns(uiModel); - return "lsthings/findLsThingsByRecordedDateLessThan"; - } - - @RequestMapping(params = "find=ByRecordedDateLessThan", method = RequestMethod.GET) - public String LsThingController.findLsThingsByRecordedDateLessThan(@RequestParam("recordedDate") @DateTimeFormat(style = "MM") Date recordedDate, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthings", LsThing.findLsThingsByRecordedDateLessThan(recordedDate, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThing.countFindLsThingsByRecordedDateLessThan(recordedDate) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthings", LsThing.findLsThingsByRecordedDateLessThan(recordedDate, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthings/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller_Json.aj deleted file mode 100755 index 07ada0266..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingController_Roo_Controller_Json.aj +++ /dev/null @@ -1,246 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.web.LsThingController; -import java.util.Date; -import java.util.List; -import org.springframework.format.annotation.DateTimeFormat; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect LsThingController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - LsThing lsThing = LsThing.findLsThing(id); - if (lsThing == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lsThing.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = LsThing.findAllLsThings(); - return new ResponseEntity(LsThing.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsThingController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsThing lsThing = LsThing.fromJsonToLsThing(json); - lsThing.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+lsThing.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsThingController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (LsThing lsThing: LsThing.fromJsonArrayToLsThings(json)) { - lsThing.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity LsThingController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsThing lsThing = LsThing.fromJsonToLsThing(json); - lsThing.setId(id); - if (lsThing.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity LsThingController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsThing lsThing = LsThing.findLsThing(id); - if (lsThing == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - lsThing.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.jsonFindLsThingsByCodeNameEquals(@RequestParam("codeName") String codeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThing.toJsonArray(LsThing.findLsThingsByCodeNameEquals(codeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeNameLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.jsonFindLsThingsByCodeNameLike(@RequestParam("codeName") String codeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThing.toJsonArray(LsThing.findLsThingsByCodeNameLike(codeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.jsonFindLsThingsByLsKindEquals(@RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThing.toJsonArray(LsThing.findLsThingsByLsKindEquals(lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.jsonFindLsThingsByLsKindLike(@RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThing.toJsonArray(LsThing.findLsThingsByLsKindLike(lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.jsonFindLsThingsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThing.toJsonArray(LsThing.findLsThingsByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeAndKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.jsonFindLsThingsByLsTypeAndKindEquals(@RequestParam("lsTypeAndKind") String lsTypeAndKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThing.toJsonArray(LsThing.findLsThingsByLsTypeAndKindEquals(lsTypeAndKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.jsonFindLsThingsByLsTypeEquals(@RequestParam("lsType") String lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThing.toJsonArray(LsThing.findLsThingsByLsTypeEquals(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.jsonFindLsThingsByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThing.toJsonArray(LsThing.findLsThingsByLsTypeEqualsAndLsKindEquals(lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByRecordedByLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.jsonFindLsThingsByRecordedByLike(@RequestParam("recordedBy") String recordedBy) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThing.toJsonArray(LsThing.findLsThingsByRecordedByLike(recordedBy).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByRecordedDateGreaterThan", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.jsonFindLsThingsByRecordedDateGreaterThan(@RequestParam("recordedDate") @DateTimeFormat(style = "MM") Date recordedDate) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThing.toJsonArray(LsThing.findLsThingsByRecordedDateGreaterThan(recordedDate).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByRecordedDateLessThan", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingController.jsonFindLsThingsByRecordedDateLessThan(@RequestParam("recordedDate") @DateTimeFormat(style = "MM") Date recordedDate) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThing.toJsonArray(LsThing.findLsThingsByRecordedDateLessThan(recordedDate).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingLabelController.java b/src/main/java/com/labsynch/labseer/web/LsThingLabelController.java deleted file mode 100755 index b786e7542..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingLabelController.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThingLabel; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RooWebJson(jsonObject = LsThingLabel.class) -@Controller -@RequestMapping("/lsthinglabels") -@RooWebScaffold(path = "lsthinglabels", formBackingObject = LsThingLabel.class) -@RooWebFinder -public class LsThingLabelController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller.aj deleted file mode 100755 index d4efd3fb6..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller.aj +++ /dev/null @@ -1,119 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.domain.LsThingLabel; -import com.labsynch.labseer.web.LsThingLabelController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsThingLabelController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsThingLabelController.create(@Valid LsThingLabel lsThingLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsThingLabel); - return "lsthinglabels/create"; - } - uiModel.asMap().clear(); - lsThingLabel.persist(); - return "redirect:/lsthinglabels/" + encodeUrlPathSegment(lsThingLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsThingLabelController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsThingLabel()); - List dependencies = new ArrayList(); - if (LsThing.countLsThings() == 0) { - dependencies.add(new String[] { "lsThing", "lsthings" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "lsthinglabels/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsThingLabelController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("lsthinglabel", LsThingLabel.findLsThingLabel(id)); - uiModel.addAttribute("itemId", id); - return "lsthinglabels/show"; - } - - @RequestMapping(produces = "text/html") - public String LsThingLabelController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthinglabels", LsThingLabel.findLsThingLabelEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsThingLabel.countLsThingLabels() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthinglabels", LsThingLabel.findAllLsThingLabels(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "lsthinglabels/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsThingLabelController.update(@Valid LsThingLabel lsThingLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsThingLabel); - return "lsthinglabels/update"; - } - uiModel.asMap().clear(); - lsThingLabel.merge(); - return "redirect:/lsthinglabels/" + encodeUrlPathSegment(lsThingLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsThingLabelController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsThingLabel.findLsThingLabel(id)); - return "lsthinglabels/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsThingLabelController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsThingLabel lsThingLabel = LsThingLabel.findLsThingLabel(id); - lsThingLabel.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsthinglabels"; - } - - void LsThingLabelController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("lsThingLabel_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("lsThingLabel_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void LsThingLabelController.populateEditForm(Model uiModel, LsThingLabel lsThingLabel) { - uiModel.addAttribute("lsThingLabel", lsThingLabel); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("lsthings", LsThing.findAllLsThings()); - } - - String LsThingLabelController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller_Finder.aj deleted file mode 100755 index 260cfed07..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,117 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.domain.LsThingLabel; -import com.labsynch.labseer.web.LsThingLabelController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect LsThingLabelController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLabelTextEquals", "form" }, method = RequestMethod.GET) - public String LsThingLabelController.findLsThingLabelsByLabelTextEqualsForm(Model uiModel) { - return "lsthinglabels/findLsThingLabelsByLabelTextEquals"; - } - - @RequestMapping(params = "find=ByLabelTextEquals", method = RequestMethod.GET) - public String LsThingLabelController.findLsThingLabelsByLabelTextEquals(@RequestParam("labelText") String labelText, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthinglabels", LsThingLabel.findLsThingLabelsByLabelTextEquals(labelText, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingLabel.countFindLsThingLabelsByLabelTextEquals(labelText) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthinglabels", LsThingLabel.findLsThingLabelsByLabelTextEquals(labelText, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthinglabels/list"; - } - - @RequestMapping(params = { "find=ByLabelTextEqualsAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String LsThingLabelController.findLsThingLabelsByLabelTextEqualsAndIgnoredNotForm(Model uiModel) { - return "lsthinglabels/findLsThingLabelsByLabelTextEqualsAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByLabelTextEqualsAndIgnoredNot", method = RequestMethod.GET) - public String LsThingLabelController.findLsThingLabelsByLabelTextEqualsAndIgnoredNot(@RequestParam("labelText") String labelText, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthinglabels", LsThingLabel.findLsThingLabelsByLabelTextEqualsAndIgnoredNot(labelText, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingLabel.countFindLsThingLabelsByLabelTextEqualsAndIgnoredNot(labelText, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthinglabels", LsThingLabel.findLsThingLabelsByLabelTextEqualsAndIgnoredNot(labelText, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthinglabels/list"; - } - - @RequestMapping(params = { "find=ByLabelTextLike", "form" }, method = RequestMethod.GET) - public String LsThingLabelController.findLsThingLabelsByLabelTextLikeForm(Model uiModel) { - return "lsthinglabels/findLsThingLabelsByLabelTextLike"; - } - - @RequestMapping(params = "find=ByLabelTextLike", method = RequestMethod.GET) - public String LsThingLabelController.findLsThingLabelsByLabelTextLike(@RequestParam("labelText") String labelText, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthinglabels", LsThingLabel.findLsThingLabelsByLabelTextLike(labelText, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingLabel.countFindLsThingLabelsByLabelTextLike(labelText) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthinglabels", LsThingLabel.findLsThingLabelsByLabelTextLike(labelText, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthinglabels/list"; - } - - @RequestMapping(params = { "find=ByLsThing", "form" }, method = RequestMethod.GET) - public String LsThingLabelController.findLsThingLabelsByLsThingForm(Model uiModel) { - uiModel.addAttribute("lsthings", LsThing.findAllLsThings()); - return "lsthinglabels/findLsThingLabelsByLsThing"; - } - - @RequestMapping(params = "find=ByLsThing", method = RequestMethod.GET) - public String LsThingLabelController.findLsThingLabelsByLsThing(@RequestParam("lsThing") LsThing lsThing, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthinglabels", LsThingLabel.findLsThingLabelsByLsThing(lsThing, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingLabel.countFindLsThingLabelsByLsThing(lsThing) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthinglabels", LsThingLabel.findLsThingLabelsByLsThing(lsThing, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthinglabels/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String LsThingLabelController.findLsThingLabelsByLsTransactionEqualsForm(Model uiModel) { - return "lsthinglabels/findLsThingLabelsByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String LsThingLabelController.findLsThingLabelsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthinglabels", LsThingLabel.findLsThingLabelsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingLabel.countFindLsThingLabelsByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthinglabels", LsThingLabel.findLsThingLabelsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthinglabels/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller_Json.aj deleted file mode 100755 index 09b107417..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingLabelController_Roo_Controller_Json.aj +++ /dev/null @@ -1,173 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.domain.LsThingLabel; -import com.labsynch.labseer.web.LsThingLabelController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect LsThingLabelController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingLabelController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - LsThingLabel lsThingLabel = LsThingLabel.findLsThingLabel(id); - if (lsThingLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lsThingLabel.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingLabelController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = LsThingLabel.findAllLsThingLabels(); - return new ResponseEntity(LsThingLabel.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsThingLabelController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsThingLabel lsThingLabel = LsThingLabel.fromJsonToLsThingLabel(json); - lsThingLabel.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+lsThingLabel.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsThingLabelController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (LsThingLabel lsThingLabel: LsThingLabel.fromJsonArrayToLsThingLabels(json)) { - lsThingLabel.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity LsThingLabelController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsThingLabel lsThingLabel = LsThingLabel.fromJsonToLsThingLabel(json); - lsThingLabel.setId(id); - if (lsThingLabel.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity LsThingLabelController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsThingLabel lsThingLabel = LsThingLabel.findLsThingLabel(id); - if (lsThingLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - lsThingLabel.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLabelTextEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingLabelController.jsonFindLsThingLabelsByLabelTextEquals(@RequestParam("labelText") String labelText) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingLabel.toJsonArray(LsThingLabel.findLsThingLabelsByLabelTextEquals(labelText).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLabelTextEqualsAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingLabelController.jsonFindLsThingLabelsByLabelTextEqualsAndIgnoredNot(@RequestParam("labelText") String labelText, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingLabel.toJsonArray(LsThingLabel.findLsThingLabelsByLabelTextEqualsAndIgnoredNot(labelText, ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLabelTextLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingLabelController.jsonFindLsThingLabelsByLabelTextLike(@RequestParam("labelText") String labelText) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingLabel.toJsonArray(LsThingLabel.findLsThingLabelsByLabelTextLike(labelText).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsThing", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingLabelController.jsonFindLsThingLabelsByLsThing(@RequestParam("lsThing") LsThing lsThing) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingLabel.toJsonArray(LsThingLabel.findLsThingLabelsByLsThing(lsThing).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingLabelController.jsonFindLsThingLabelsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingLabel.toJsonArray(LsThingLabel.findLsThingLabelsByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingStateController.java b/src/main/java/com/labsynch/labseer/web/LsThingStateController.java deleted file mode 100755 index ec768dae0..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingStateController.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThingState; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RooWebJson(jsonObject = LsThingState.class) -@Controller -@RequestMapping("/lsthingstates") -@RooWebScaffold(path = "lsthingstates", formBackingObject = LsThingState.class) -@RooWebFinder -public class LsThingStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller.aj deleted file mode 100755 index 09ac4443a..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller.aj +++ /dev/null @@ -1,121 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.domain.LsThingState; -import com.labsynch.labseer.domain.LsThingValue; -import com.labsynch.labseer.web.LsThingStateController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsThingStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsThingStateController.create(@Valid LsThingState lsThingState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsThingState); - return "lsthingstates/create"; - } - uiModel.asMap().clear(); - lsThingState.persist(); - return "redirect:/lsthingstates/" + encodeUrlPathSegment(lsThingState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsThingStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsThingState()); - List dependencies = new ArrayList(); - if (LsThing.countLsThings() == 0) { - dependencies.add(new String[] { "lsThing", "lsthings" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "lsthingstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsThingStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("lsthingstate", LsThingState.findLsThingState(id)); - uiModel.addAttribute("itemId", id); - return "lsthingstates/show"; - } - - @RequestMapping(produces = "text/html") - public String LsThingStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingstates", LsThingState.findLsThingStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsThingState.countLsThingStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingstates", LsThingState.findAllLsThingStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsThingStateController.update(@Valid LsThingState lsThingState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsThingState); - return "lsthingstates/update"; - } - uiModel.asMap().clear(); - lsThingState.merge(); - return "redirect:/lsthingstates/" + encodeUrlPathSegment(lsThingState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsThingStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsThingState.findLsThingState(id)); - return "lsthingstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsThingStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsThingState lsThingState = LsThingState.findLsThingState(id); - lsThingState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsthingstates"; - } - - void LsThingStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("lsThingState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("lsThingState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void LsThingStateController.populateEditForm(Model uiModel, LsThingState lsThingState) { - uiModel.addAttribute("lsThingState", lsThingState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("lsthings", LsThing.findAllLsThings()); - uiModel.addAttribute("lsthingvalues", LsThingValue.findAllLsThingValues()); - } - - String LsThingStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller_Finder.aj deleted file mode 100755 index 98c6f88d9..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,57 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.domain.LsThingState; -import com.labsynch.labseer.web.LsThingStateController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect LsThingStateController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLsThing", "form" }, method = RequestMethod.GET) - public String LsThingStateController.findLsThingStatesByLsThingForm(Model uiModel) { - uiModel.addAttribute("lsthings", LsThing.findAllLsThings()); - return "lsthingstates/findLsThingStatesByLsThing"; - } - - @RequestMapping(params = "find=ByLsThing", method = RequestMethod.GET) - public String LsThingStateController.findLsThingStatesByLsThing(@RequestParam("lsThing") LsThing lsThing, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingstates", LsThingState.findLsThingStatesByLsThing(lsThing, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingState.countFindLsThingStatesByLsThing(lsThing) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingstates", LsThingState.findLsThingStatesByLsThing(lsThing, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingstates/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String LsThingStateController.findLsThingStatesByLsTransactionEqualsForm(Model uiModel) { - return "lsthingstates/findLsThingStatesByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String LsThingStateController.findLsThingStatesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingstates", LsThingState.findLsThingStatesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingState.countFindLsThingStatesByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingstates", LsThingState.findLsThingStatesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingstates/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller_Json.aj deleted file mode 100755 index c6a97bb39..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingStateController_Roo_Controller_Json.aj +++ /dev/null @@ -1,137 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThing; -import com.labsynch.labseer.domain.LsThingState; -import com.labsynch.labseer.web.LsThingStateController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect LsThingStateController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingStateController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - LsThingState lsThingState = LsThingState.findLsThingState(id); - if (lsThingState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lsThingState.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingStateController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = LsThingState.findAllLsThingStates(); - return new ResponseEntity(LsThingState.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsThingStateController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsThingState lsThingState = LsThingState.fromJsonToLsThingState(json); - lsThingState.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+lsThingState.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsThingStateController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (LsThingState lsThingState: LsThingState.fromJsonArrayToLsThingStates(json)) { - lsThingState.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity LsThingStateController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsThingState lsThingState = LsThingState.fromJsonToLsThingState(json); - lsThingState.setId(id); - if (lsThingState.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity LsThingStateController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsThingState lsThingState = LsThingState.findLsThingState(id); - if (lsThingState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - lsThingState.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsThing", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingStateController.jsonFindLsThingStatesByLsThing(@RequestParam("lsThing") LsThing lsThing) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingState.toJsonArray(LsThingState.findLsThingStatesByLsThing(lsThing).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingStateController.jsonFindLsThingStatesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingState.toJsonArray(LsThingState.findLsThingStatesByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingValueController.java b/src/main/java/com/labsynch/labseer/web/LsThingValueController.java deleted file mode 100755 index ccf4eab31..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingValueController.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThingValue; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RooWebJson(jsonObject = LsThingValue.class) -@Controller -@RequestMapping("/lsthingvalues") -@RooWebScaffold(path = "lsthingvalues", formBackingObject = LsThingValue.class) -@RooWebFinder -public class LsThingValueController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller.aj deleted file mode 100755 index 55eeb2cd2..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller.aj +++ /dev/null @@ -1,120 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThingState; -import com.labsynch.labseer.domain.LsThingValue; -import com.labsynch.labseer.web.LsThingValueController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsThingValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsThingValueController.create(@Valid LsThingValue lsThingValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsThingValue); - return "lsthingvalues/create"; - } - uiModel.asMap().clear(); - lsThingValue.persist(); - return "redirect:/lsthingvalues/" + encodeUrlPathSegment(lsThingValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsThingValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsThingValue()); - List dependencies = new ArrayList(); - if (LsThingState.countLsThingStates() == 0) { - dependencies.add(new String[] { "lsState", "lsthingstates" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "lsthingvalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsThingValueController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("lsthingvalue", LsThingValue.findLsThingValue(id)); - uiModel.addAttribute("itemId", id); - return "lsthingvalues/show"; - } - - @RequestMapping(produces = "text/html") - public String LsThingValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsThingValue.countLsThingValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findAllLsThingValues(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsThingValueController.update(@Valid LsThingValue lsThingValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsThingValue); - return "lsthingvalues/update"; - } - uiModel.asMap().clear(); - lsThingValue.merge(); - return "redirect:/lsthingvalues/" + encodeUrlPathSegment(lsThingValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsThingValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsThingValue.findLsThingValue(id)); - return "lsthingvalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsThingValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsThingValue lsThingValue = LsThingValue.findLsThingValue(id); - lsThingValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lsthingvalues"; - } - - void LsThingValueController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("lsThingValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("lsThingValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("lsThingValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void LsThingValueController.populateEditForm(Model uiModel, LsThingValue lsThingValue) { - uiModel.addAttribute("lsThingValue", lsThingValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("lsthingstates", LsThingState.findAllLsThingStates()); - } - - String LsThingValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller_Finder.aj deleted file mode 100755 index c94849824..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,283 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThingState; -import com.labsynch.labseer.domain.LsThingValue; -import com.labsynch.labseer.web.LsThingValueController; -import java.math.BigDecimal; -import java.util.Date; -import org.springframework.format.annotation.DateTimeFormat; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect LsThingValueController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeValueEquals", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByCodeValueEqualsForm(Model uiModel) { - return "lsthingvalues/findLsThingValuesByCodeValueEquals"; - } - - @RequestMapping(params = "find=ByCodeValueEquals", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByCodeValueEquals(@RequestParam("codeValue") String codeValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByCodeValueEquals(codeValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByCodeValueEquals(codeValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByCodeValueEquals(codeValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(params = { "find=ByIgnoredNotAndCodeValueEquals", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByIgnoredNotAndCodeValueEqualsForm(Model uiModel) { - return "lsthingvalues/findLsThingValuesByIgnoredNotAndCodeValueEquals"; - } - - @RequestMapping(params = "find=ByIgnoredNotAndCodeValueEquals", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByIgnoredNotAndCodeValueEquals(@RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam("codeValue") String codeValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(params = { "find=ByLsKindEqualsAndCodeValueLike", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndCodeValueLikeForm(Model uiModel) { - return "lsthingvalues/findLsThingValuesByLsKindEqualsAndCodeValueLike"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndCodeValueLike", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndCodeValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("codeValue") String codeValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndCodeValueLike(lsKind, codeValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByLsKindEqualsAndCodeValueLike(lsKind, codeValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndCodeValueLike(lsKind, codeValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(params = { "find=ByLsKindEqualsAndDateValueGreaterThanEquals", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndDateValueGreaterThanEqualsForm(Model uiModel) { - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueGreaterThanEquals"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndDateValueGreaterThanEquals", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndDateValueGreaterThanEquals(@RequestParam("lsKind") String lsKind, @RequestParam("dateValue") @DateTimeFormat(style = "MM") Date dateValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndDateValueGreaterThanEquals(lsKind, dateValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByLsKindEqualsAndDateValueGreaterThanEquals(lsKind, dateValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndDateValueGreaterThanEquals(lsKind, dateValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(params = { "find=ByLsKindEqualsAndDateValueLessThanEquals", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndDateValueLessThanEqualsForm(Model uiModel) { - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueLessThanEquals"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndDateValueLessThanEquals", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndDateValueLessThanEquals(@RequestParam("lsKind") String lsKind, @RequestParam("dateValue") @DateTimeFormat(style = "MM") Date dateValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndDateValueLessThanEquals(lsKind, dateValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByLsKindEqualsAndDateValueLessThanEquals(lsKind, dateValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndDateValueLessThanEquals(lsKind, dateValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(params = { "find=ByLsKindEqualsAndDateValueLike", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndDateValueLikeForm(Model uiModel) { - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueLike"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndDateValueLike", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndDateValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("dateValue") @DateTimeFormat(style = "MM") Date dateValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndDateValueLike(lsKind, dateValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByLsKindEqualsAndDateValueLike(lsKind, dateValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndDateValueLike(lsKind, dateValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(params = { "find=ByLsKindEqualsAndNumericValueEquals", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndNumericValueEqualsForm(Model uiModel) { - return "lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueEquals"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndNumericValueEquals", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndNumericValueEquals(@RequestParam("lsKind") String lsKind, @RequestParam("numericValue") BigDecimal numericValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndNumericValueEquals(lsKind, numericValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByLsKindEqualsAndNumericValueEquals(lsKind, numericValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndNumericValueEquals(lsKind, numericValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(params = { "find=ByLsKindEqualsAndNumericValueGreaterThanEquals", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndNumericValueGreaterThanEqualsForm(Model uiModel) { - return "lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueGreaterThanEquals"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndNumericValueGreaterThanEquals", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndNumericValueGreaterThanEquals(@RequestParam("lsKind") String lsKind, @RequestParam("numericValue") BigDecimal numericValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndNumericValueGreaterThanEquals(lsKind, numericValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByLsKindEqualsAndNumericValueGreaterThanEquals(lsKind, numericValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndNumericValueGreaterThanEquals(lsKind, numericValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(params = { "find=ByLsKindEqualsAndNumericValueLessThanEquals", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndNumericValueLessThanEqualsForm(Model uiModel) { - return "lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueLessThanEquals"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndNumericValueLessThanEquals", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndNumericValueLessThanEquals(@RequestParam("lsKind") String lsKind, @RequestParam("numericValue") BigDecimal numericValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndNumericValueLessThanEquals(lsKind, numericValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByLsKindEqualsAndNumericValueLessThanEquals(lsKind, numericValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndNumericValueLessThanEquals(lsKind, numericValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(params = { "find=ByLsKindEqualsAndStringValueEquals", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndStringValueEqualsForm(Model uiModel) { - return "lsthingvalues/findLsThingValuesByLsKindEqualsAndStringValueEquals"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndStringValueEquals", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndStringValueEquals(@RequestParam("lsKind") String lsKind, @RequestParam("stringValue") String stringValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndStringValueEquals(lsKind, stringValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByLsKindEqualsAndStringValueEquals(lsKind, stringValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndStringValueEquals(lsKind, stringValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(params = { "find=ByLsKindEqualsAndStringValueLike", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndStringValueLikeForm(Model uiModel) { - return "lsthingvalues/findLsThingValuesByLsKindEqualsAndStringValueLike"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndStringValueLike", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsKindEqualsAndStringValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("stringValue") String stringValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndStringValueLike(lsKind, stringValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByLsKindEqualsAndStringValueLike(lsKind, stringValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsKindEqualsAndStringValueLike(lsKind, stringValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(params = { "find=ByLsState", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsStateForm(Model uiModel) { - uiModel.addAttribute("lsthingstates", LsThingState.findAllLsThingStates()); - return "lsthingvalues/findLsThingValuesByLsState"; - } - - @RequestMapping(params = "find=ByLsState", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsState(@RequestParam("lsState") LsThingState lsState, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsState(lsState, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByLsState(lsState) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsState(lsState, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsTransactionEqualsForm(Model uiModel) { - return "lsthingvalues/findLsThingValuesByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String LsThingValueController.findLsThingValuesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) LsThingValue.countFindLsThingValuesByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lsthingvalues", LsThingValue.findLsThingValuesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "lsthingvalues/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller_Json.aj deleted file mode 100755 index d4f10ce30..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsThingValueController_Roo_Controller_Json.aj +++ /dev/null @@ -1,272 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsThingState; -import com.labsynch.labseer.domain.LsThingValue; -import com.labsynch.labseer.web.LsThingValueController; -import java.math.BigDecimal; -import java.util.Date; -import java.util.List; -import org.springframework.format.annotation.DateTimeFormat; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect LsThingValueController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - LsThingValue lsThingValue = LsThingValue.findLsThingValue(id); - if (lsThingValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lsThingValue.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = LsThingValue.findAllLsThingValues(); - return new ResponseEntity(LsThingValue.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsThingValueController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsThingValue lsThingValue = LsThingValue.fromJsonToLsThingValue(json); - lsThingValue.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+lsThingValue.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsThingValueController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (LsThingValue lsThingValue: LsThingValue.fromJsonArrayToLsThingValues(json)) { - lsThingValue.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity LsThingValueController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsThingValue lsThingValue = LsThingValue.fromJsonToLsThingValue(json); - lsThingValue.setId(id); - if (lsThingValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity LsThingValueController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsThingValue lsThingValue = LsThingValue.findLsThingValue(id); - if (lsThingValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - lsThingValue.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeValueEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByCodeValueEquals(@RequestParam("codeValue") String codeValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByCodeValueEquals(codeValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByIgnoredNotAndCodeValueEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByIgnoredNotAndCodeValueEquals(@RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam("codeValue") String codeValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndCodeValueLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByLsKindEqualsAndCodeValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("codeValue") String codeValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByLsKindEqualsAndCodeValueLike(lsKind, codeValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndDateValueGreaterThanEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByLsKindEqualsAndDateValueGreaterThanEquals(@RequestParam("lsKind") String lsKind, @RequestParam("dateValue") @DateTimeFormat(style = "MM") Date dateValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByLsKindEqualsAndDateValueGreaterThanEquals(lsKind, dateValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndDateValueLessThanEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByLsKindEqualsAndDateValueLessThanEquals(@RequestParam("lsKind") String lsKind, @RequestParam("dateValue") @DateTimeFormat(style = "MM") Date dateValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByLsKindEqualsAndDateValueLessThanEquals(lsKind, dateValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndDateValueLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByLsKindEqualsAndDateValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("dateValue") @DateTimeFormat(style = "MM") Date dateValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByLsKindEqualsAndDateValueLike(lsKind, dateValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndNumericValueEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByLsKindEqualsAndNumericValueEquals(@RequestParam("lsKind") String lsKind, @RequestParam("numericValue") BigDecimal numericValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByLsKindEqualsAndNumericValueEquals(lsKind, numericValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndNumericValueGreaterThanEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByLsKindEqualsAndNumericValueGreaterThanEquals(@RequestParam("lsKind") String lsKind, @RequestParam("numericValue") BigDecimal numericValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByLsKindEqualsAndNumericValueGreaterThanEquals(lsKind, numericValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndNumericValueLessThanEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByLsKindEqualsAndNumericValueLessThanEquals(@RequestParam("lsKind") String lsKind, @RequestParam("numericValue") BigDecimal numericValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByLsKindEqualsAndNumericValueLessThanEquals(lsKind, numericValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndStringValueEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByLsKindEqualsAndStringValueEquals(@RequestParam("lsKind") String lsKind, @RequestParam("stringValue") String stringValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByLsKindEqualsAndStringValueEquals(lsKind, stringValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndStringValueLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByLsKindEqualsAndStringValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("stringValue") String stringValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByLsKindEqualsAndStringValueLike(lsKind, stringValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsState", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByLsState(@RequestParam("lsState") LsThingState lsState) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByLsState(lsState).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsThingValueController.jsonFindLsThingValuesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(LsThingValue.toJsonArray(LsThingValue.findLsThingValuesByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsTransactionController.java b/src/main/java/com/labsynch/labseer/web/LsTransactionController.java deleted file mode 100755 index 7589eb9b2..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsTransactionController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsTransaction; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = LsTransaction.class) -@Controller -@RequestMapping("/lstransactions") -@RooWebScaffold(path = "lstransactions", formBackingObject = LsTransaction.class) -public class LsTransactionController { -} diff --git a/src/main/java/com/labsynch/labseer/web/LsTransactionController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/LsTransactionController_Roo_Controller.aj deleted file mode 100755 index 2062e5a59..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsTransactionController_Roo_Controller.aj +++ /dev/null @@ -1,114 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsTransaction; -import com.labsynch.labseer.domain.LsTransactionStatus; -import com.labsynch.labseer.domain.LsTransactionType; -import com.labsynch.labseer.web.LsTransactionController; -import java.io.UnsupportedEncodingException; -import java.util.Arrays; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect LsTransactionController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String LsTransactionController.create(@Valid LsTransaction lsTransaction, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsTransaction); - return "lstransactions/create"; - } - uiModel.asMap().clear(); - lsTransaction.persist(); - return "redirect:/lstransactions/" + encodeUrlPathSegment(lsTransaction.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String LsTransactionController.createForm(Model uiModel) { - populateEditForm(uiModel, new LsTransaction()); - return "lstransactions/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String LsTransactionController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("lstransaction", LsTransaction.findLsTransaction(id)); - uiModel.addAttribute("itemId", id); - return "lstransactions/show"; - } - - @RequestMapping(produces = "text/html") - public String LsTransactionController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("lstransactions", LsTransaction.findLsTransactionEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) LsTransaction.countLsTransactions() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("lstransactions", LsTransaction.findAllLsTransactions(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "lstransactions/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String LsTransactionController.update(@Valid LsTransaction lsTransaction, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, lsTransaction); - return "lstransactions/update"; - } - uiModel.asMap().clear(); - lsTransaction.merge(); - return "redirect:/lstransactions/" + encodeUrlPathSegment(lsTransaction.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String LsTransactionController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, LsTransaction.findLsTransaction(id)); - return "lstransactions/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String LsTransactionController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - LsTransaction lsTransaction = LsTransaction.findLsTransaction(id); - lsTransaction.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/lstransactions"; - } - - void LsTransactionController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("lsTransaction_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void LsTransactionController.populateEditForm(Model uiModel, LsTransaction lsTransaction) { - uiModel.addAttribute("lsTransaction", lsTransaction); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("lstransactionstatuses", Arrays.asList(LsTransactionStatus.values())); - uiModel.addAttribute("lstransactiontypes", Arrays.asList(LsTransactionType.values())); - } - - String LsTransactionController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/LsTransactionController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/LsTransactionController_Roo_Controller_Json.aj deleted file mode 100644 index 7f8a3b96f..000000000 --- a/src/main/java/com/labsynch/labseer/web/LsTransactionController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.LsTransaction; -import com.labsynch.labseer.web.LsTransactionController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect LsTransactionController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsTransactionController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - LsTransaction lsTransaction = LsTransaction.findLsTransaction(id); - if (lsTransaction == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(lsTransaction.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity LsTransactionController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = LsTransaction.findAllLsTransactions(); - return new ResponseEntity(LsTransaction.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsTransactionController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsTransaction lsTransaction = LsTransaction.fromJsonToLsTransaction(json); - lsTransaction.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+lsTransaction.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity LsTransactionController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (LsTransaction lsTransaction: LsTransaction.fromJsonArrayToLsTransactions(json)) { - lsTransaction.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity LsTransactionController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsTransaction lsTransaction = LsTransaction.fromJsonToLsTransaction(json); - lsTransaction.setId(id); - if (lsTransaction.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity LsTransactionController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - LsTransaction lsTransaction = LsTransaction.findLsTransaction(id); - if (lsTransaction == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - lsTransaction.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/OperatorKindController.java b/src/main/java/com/labsynch/labseer/web/OperatorKindController.java deleted file mode 100755 index ad00ac84f..000000000 --- a/src/main/java/com/labsynch/labseer/web/OperatorKindController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.OperatorKind; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RequestMapping("/operatorkinds") -@Controller -@RooWebScaffold(path = "operatorkinds", formBackingObject = OperatorKind.class) -@RooWebJson(jsonObject = OperatorKind.class) -public class OperatorKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/OperatorKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/OperatorKindController_Roo_Controller.aj deleted file mode 100755 index c50ed2bba..000000000 --- a/src/main/java/com/labsynch/labseer/web/OperatorKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.OperatorKind; -import com.labsynch.labseer.domain.OperatorType; -import com.labsynch.labseer.web.OperatorKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect OperatorKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String OperatorKindController.create(@Valid OperatorKind operatorKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, operatorKind); - return "operatorkinds/create"; - } - uiModel.asMap().clear(); - operatorKind.persist(); - return "redirect:/operatorkinds/" + encodeUrlPathSegment(operatorKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String OperatorKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new OperatorKind()); - List dependencies = new ArrayList(); - if (OperatorType.countOperatorTypes() == 0) { - dependencies.add(new String[] { "lsType", "operatortypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "operatorkinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String OperatorKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("operatorkind", OperatorKind.findOperatorKind(id)); - uiModel.addAttribute("itemId", id); - return "operatorkinds/show"; - } - - @RequestMapping(produces = "text/html") - public String OperatorKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("operatorkinds", OperatorKind.findOperatorKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) OperatorKind.countOperatorKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("operatorkinds", OperatorKind.findAllOperatorKinds(sortFieldName, sortOrder)); - } - return "operatorkinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String OperatorKindController.update(@Valid OperatorKind operatorKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, operatorKind); - return "operatorkinds/update"; - } - uiModel.asMap().clear(); - operatorKind.merge(); - return "redirect:/operatorkinds/" + encodeUrlPathSegment(operatorKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String OperatorKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, OperatorKind.findOperatorKind(id)); - return "operatorkinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String OperatorKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - OperatorKind operatorKind = OperatorKind.findOperatorKind(id); - operatorKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/operatorkinds"; - } - - void OperatorKindController.populateEditForm(Model uiModel, OperatorKind operatorKind) { - uiModel.addAttribute("operatorKind", operatorKind); - uiModel.addAttribute("operatortypes", OperatorType.findAllOperatorTypes()); - } - - String OperatorKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/OperatorKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/OperatorKindController_Roo_Controller_Json.aj deleted file mode 100644 index 71f4a62cb..000000000 --- a/src/main/java/com/labsynch/labseer/web/OperatorKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,125 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.OperatorKind; -import com.labsynch.labseer.domain.OperatorType; -import com.labsynch.labseer.web.OperatorKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect OperatorKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity OperatorKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - OperatorKind operatorKind = OperatorKind.findOperatorKind(id); - if (operatorKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(operatorKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity OperatorKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = OperatorKind.findAllOperatorKinds(); - return new ResponseEntity(OperatorKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity OperatorKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - OperatorKind operatorKind = OperatorKind.fromJsonToOperatorKind(json); - operatorKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+operatorKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity OperatorKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (OperatorKind operatorKind: OperatorKind.fromJsonArrayToOperatorKinds(json)) { - operatorKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity OperatorKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - OperatorKind operatorKind = OperatorKind.fromJsonToOperatorKind(json); - operatorKind.setId(id); - if (operatorKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity OperatorKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - OperatorKind operatorKind = OperatorKind.findOperatorKind(id); - if (operatorKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - operatorKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity OperatorKindController.jsonFindOperatorKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") OperatorType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(OperatorKind.toJsonArray(OperatorKind.findOperatorKindsByKindNameEqualsAndLsType(kindName, lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/OperatorTypeController.java b/src/main/java/com/labsynch/labseer/web/OperatorTypeController.java deleted file mode 100755 index 0fd69f82d..000000000 --- a/src/main/java/com/labsynch/labseer/web/OperatorTypeController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.OperatorType; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = OperatorType.class) -@Controller -@RequestMapping("/operatortypes") -@RooWebScaffold(path = "operatortypes", formBackingObject = OperatorType.class) -@RooWebFinder -public class OperatorTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller.aj deleted file mode 100755 index 614fa292f..000000000 --- a/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.OperatorType; -import com.labsynch.labseer.web.OperatorTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect OperatorTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String OperatorTypeController.create(@Valid OperatorType operatorType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, operatorType); - return "operatortypes/create"; - } - uiModel.asMap().clear(); - operatorType.persist(); - return "redirect:/operatortypes/" + encodeUrlPathSegment(operatorType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String OperatorTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new OperatorType()); - return "operatortypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String OperatorTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("operatortype", OperatorType.findOperatorType(id)); - uiModel.addAttribute("itemId", id); - return "operatortypes/show"; - } - - @RequestMapping(produces = "text/html") - public String OperatorTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("operatortypes", OperatorType.findOperatorTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) OperatorType.countOperatorTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("operatortypes", OperatorType.findAllOperatorTypes(sortFieldName, sortOrder)); - } - return "operatortypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String OperatorTypeController.update(@Valid OperatorType operatorType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, operatorType); - return "operatortypes/update"; - } - uiModel.asMap().clear(); - operatorType.merge(); - return "redirect:/operatortypes/" + encodeUrlPathSegment(operatorType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String OperatorTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, OperatorType.findOperatorType(id)); - return "operatortypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String OperatorTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - OperatorType operatorType = OperatorType.findOperatorType(id); - operatorType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/operatortypes"; - } - - void OperatorTypeController.populateEditForm(Model uiModel, OperatorType operatorType) { - uiModel.addAttribute("operatorType", operatorType); - } - - String OperatorTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller_Finder.aj deleted file mode 100755 index 0b4d07016..000000000 --- a/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.OperatorType; -import com.labsynch.labseer.web.OperatorTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect OperatorTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByTypeNameEquals", "form" }, method = RequestMethod.GET) - public String OperatorTypeController.findOperatorTypesByTypeNameEqualsForm(Model uiModel) { - return "operatortypes/findOperatorTypesByTypeNameEquals"; - } - - @RequestMapping(params = "find=ByTypeNameEquals", method = RequestMethod.GET) - public String OperatorTypeController.findOperatorTypesByTypeNameEquals(@RequestParam("typeName") String typeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("operatortypes", OperatorType.findOperatorTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) OperatorType.countFindOperatorTypesByTypeNameEquals(typeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("operatortypes", OperatorType.findOperatorTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).getResultList()); - } - return "operatortypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller_Json.aj deleted file mode 100755 index 8d1c440d9..000000000 --- a/src/main/java/com/labsynch/labseer/web/OperatorTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.OperatorType; -import com.labsynch.labseer.web.OperatorTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect OperatorTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity OperatorTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - OperatorType operatorType = OperatorType.findOperatorType(id); - if (operatorType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(operatorType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity OperatorTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = OperatorType.findAllOperatorTypes(); - return new ResponseEntity(OperatorType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity OperatorTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - OperatorType operatorType = OperatorType.fromJsonToOperatorType(json); - operatorType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+operatorType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity OperatorTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (OperatorType operatorType: OperatorType.fromJsonArrayToOperatorTypes(json)) { - operatorType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity OperatorTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - OperatorType operatorType = OperatorType.fromJsonToOperatorType(json); - operatorType.setId(id); - if (operatorType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity OperatorTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - OperatorType operatorType = OperatorType.findOperatorType(id); - if (operatorType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - operatorType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity OperatorTypeController.jsonFindOperatorTypesByTypeNameEquals(@RequestParam("typeName") String typeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(OperatorType.toJsonArray(OperatorType.findOperatorTypesByTypeNameEquals(typeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ParentAliasController.java b/src/main/java/com/labsynch/labseer/web/ParentAliasController.java deleted file mode 100644 index c0da82dd9..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentAliasController.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.labsynch.labseer.web; -import javax.servlet.http.HttpServletRequest; - -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.domain.ParentAlias; - -@RequestMapping("/parentaliases") -@Controller -@Transactional - -@RooWebJson(jsonObject = ParentAlias.class) -@RooWebScaffold(path = "parentaliases", formBackingObject = ParentAlias.class) -@RooWebFinder -public class ParentAliasController { - - - -} diff --git a/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller.aj deleted file mode 100644 index a9f463375..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller.aj +++ /dev/null @@ -1,102 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Parent; -import com.labsynch.labseer.domain.ParentAlias; -import com.labsynch.labseer.web.ParentAliasController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ParentAliasController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ParentAliasController.create(@Valid ParentAlias parentAlias, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, parentAlias); - return "parentaliases/create"; - } - uiModel.asMap().clear(); - parentAlias.persist(); - return "redirect:/parentaliases/" + encodeUrlPathSegment(parentAlias.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ParentAliasController.createForm(Model uiModel) { - populateEditForm(uiModel, new ParentAlias()); - return "parentaliases/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ParentAliasController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("parentalias", ParentAlias.findParentAlias(id)); - uiModel.addAttribute("itemId", id); - return "parentaliases/show"; - } - - @RequestMapping(produces = "text/html") - public String ParentAliasController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parentaliases", ParentAlias.findParentAliasEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ParentAlias.countParentAliases() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parentaliases", ParentAlias.findAllParentAliases(sortFieldName, sortOrder)); - } - return "parentaliases/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ParentAliasController.update(@Valid ParentAlias parentAlias, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, parentAlias); - return "parentaliases/update"; - } - uiModel.asMap().clear(); - parentAlias.merge(); - return "redirect:/parentaliases/" + encodeUrlPathSegment(parentAlias.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ParentAliasController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ParentAlias.findParentAlias(id)); - return "parentaliases/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ParentAliasController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ParentAlias parentAlias = ParentAlias.findParentAlias(id); - parentAlias.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/parentaliases"; - } - - void ParentAliasController.populateEditForm(Model uiModel, ParentAlias parentAlias) { - uiModel.addAttribute("parentAlias", parentAlias); - uiModel.addAttribute("parents", Parent.findAllParents()); - } - - String ParentAliasController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller_Finder.aj deleted file mode 100644 index 696d26b6d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,114 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Parent; -import com.labsynch.labseer.domain.ParentAlias; -import com.labsynch.labseer.web.ParentAliasController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ParentAliasController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByAliasNameEquals", "form" }, method = RequestMethod.GET) - public String ParentAliasController.findParentAliasesByAliasNameEqualsForm(Model uiModel) { - return "parentaliases/findParentAliasesByAliasNameEquals"; - } - - @RequestMapping(params = "find=ByAliasNameEquals", method = RequestMethod.GET) - public String ParentAliasController.findParentAliasesByAliasNameEquals(@RequestParam("aliasName") String aliasName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parentaliases", ParentAlias.findParentAliasesByAliasNameEquals(aliasName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ParentAlias.countFindParentAliasesByAliasNameEquals(aliasName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parentaliases", ParentAlias.findParentAliasesByAliasNameEquals(aliasName, sortFieldName, sortOrder).getResultList()); - } - return "parentaliases/list"; - } - - @RequestMapping(params = { "find=ByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String ParentAliasController.findParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - return "parentaliases/findParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String ParentAliasController.findParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(@RequestParam("aliasName") String aliasName, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parentaliases", ParentAlias.findParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(aliasName, lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ParentAlias.countFindParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(aliasName, lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parentaliases", ParentAlias.findParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(aliasName, lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - return "parentaliases/list"; - } - - @RequestMapping(params = { "find=ByParent", "form" }, method = RequestMethod.GET) - public String ParentAliasController.findParentAliasesByParentForm(Model uiModel) { - uiModel.addAttribute("parents", Parent.findAllParents()); - return "parentaliases/findParentAliasesByParent"; - } - - @RequestMapping(params = "find=ByParent", method = RequestMethod.GET) - public String ParentAliasController.findParentAliasesByParent(@RequestParam("parent") Parent parent, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parentaliases", ParentAlias.findParentAliasesByParent(parent, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ParentAlias.countFindParentAliasesByParent(parent) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parentaliases", ParentAlias.findParentAliasesByParent(parent, sortFieldName, sortOrder).getResultList()); - } - return "parentaliases/list"; - } - - @RequestMapping(params = { "find=ByParentAndLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String ParentAliasController.findParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - uiModel.addAttribute("parents", Parent.findAllParents()); - return "parentaliases/findParentAliasesByParentAndLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByParentAndLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String ParentAliasController.findParentAliasesByParentAndLsTypeEqualsAndLsKindEquals(@RequestParam("parent") Parent parent, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parentaliases", ParentAlias.findParentAliasesByParentAndLsTypeEqualsAndLsKindEquals(parent, lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ParentAlias.countFindParentAliasesByParentAndLsTypeEqualsAndLsKindEquals(parent, lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parentaliases", ParentAlias.findParentAliasesByParentAndLsTypeEqualsAndLsKindEquals(parent, lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - return "parentaliases/list"; - } - - @RequestMapping(params = { "find=ByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals", "form" }, method = RequestMethod.GET) - public String ParentAliasController.findParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEqualsForm(Model uiModel) { - uiModel.addAttribute("parents", Parent.findAllParents()); - return "parentaliases/findParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals"; - } - - @RequestMapping(params = "find=ByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals", method = RequestMethod.GET) - public String ParentAliasController.findParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals(@RequestParam("parent") Parent parent, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam("aliasName") String aliasName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parentaliases", ParentAlias.findParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals(parent, lsType, lsKind, aliasName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ParentAlias.countFindParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals(parent, lsType, lsKind, aliasName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parentaliases", ParentAlias.findParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals(parent, lsType, lsKind, aliasName, sortFieldName, sortOrder).getResultList()); - } - return "parentaliases/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller_Json.aj deleted file mode 100644 index 9e718ee18..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentAliasController_Roo_Controller_Json.aj +++ /dev/null @@ -1,173 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Parent; -import com.labsynch.labseer.domain.ParentAlias; -import com.labsynch.labseer.web.ParentAliasController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ParentAliasController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ParentAliasController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ParentAlias parentAlias = ParentAlias.findParentAlias(id); - if (parentAlias == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(parentAlias.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ParentAliasController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ParentAlias.findAllParentAliases(); - return new ResponseEntity(ParentAlias.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ParentAliasController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ParentAlias parentAlias = ParentAlias.fromJsonToParentAlias(json); - parentAlias.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+parentAlias.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ParentAliasController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ParentAlias parentAlias: ParentAlias.fromJsonArrayToParentAliases(json)) { - parentAlias.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ParentAliasController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ParentAlias parentAlias = ParentAlias.fromJsonToParentAlias(json); - parentAlias.setId(id); - if (parentAlias.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ParentAliasController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ParentAlias parentAlias = ParentAlias.findParentAlias(id); - if (parentAlias == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - parentAlias.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByAliasNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ParentAliasController.jsonFindParentAliasesByAliasNameEquals(@RequestParam("aliasName") String aliasName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ParentAlias.toJsonArray(ParentAlias.findParentAliasesByAliasNameEquals(aliasName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ParentAliasController.jsonFindParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(@RequestParam("aliasName") String aliasName, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ParentAlias.toJsonArray(ParentAlias.findParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(aliasName, lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByParent", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ParentAliasController.jsonFindParentAliasesByParent(@RequestParam("parent") Parent parent) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ParentAlias.toJsonArray(ParentAlias.findParentAliasesByParent(parent).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByParentAndLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ParentAliasController.jsonFindParentAliasesByParentAndLsTypeEqualsAndLsKindEquals(@RequestParam("parent") Parent parent, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ParentAlias.toJsonArray(ParentAlias.findParentAliasesByParentAndLsTypeEqualsAndLsKindEquals(parent, lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ParentAliasController.jsonFindParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals(@RequestParam("parent") Parent parent, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam("aliasName") String aliasName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ParentAlias.toJsonArray(ParentAlias.findParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals(parent, lsType, lsKind, aliasName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ParentAliasKindController.java b/src/main/java/com/labsynch/labseer/web/ParentAliasKindController.java deleted file mode 100644 index 83e99db6b..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentAliasKindController.java +++ /dev/null @@ -1,162 +0,0 @@ -package com.labsynch.labseer.web; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; - -import javax.servlet.http.HttpServletRequest; - -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -import com.labsynch.labseer.domain.ParentAliasKind; - -@RooWebScaffold(path = "parentaliaskinds", formBackingObject = ParentAliasKind.class) -@RequestMapping("/parentaliaskinds") -@Controller -@Transactional - -@RooWebFinder -@RooWebJson(jsonObject = ParentAliasKind.class) -public class ParentAliasKindController { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - try { - ParentAliasKind parentAliasKind = ParentAliasKind.findParentAliasKind(id); - if (parentAliasKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(parentAliasKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - try { - List result = ParentAliasKind.findAllParentAliasKinds(); - return new ResponseEntity(ParentAliasKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - try { - ParentAliasKind parentAliasKind = ParentAliasKind.fromJsonToParentAliasKind(json); - parentAliasKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location", uriBuilder.path(a.value()[0] + "/" + parentAliasKind.getId().toString()).build().toUriString()); - return new ResponseEntity(parentAliasKind.toJson(), headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - Collection parentAliasKinds = new HashSet(); - try { - for (ParentAliasKind parentAliasKind : ParentAliasKind.fromJsonArrayToParentAliasKinds(json)) { - parentAliasKind.persist(); - parentAliasKinds.add(parentAliasKind); - } - return new ResponseEntity(ParentAliasKind.toJsonArray(parentAliasKinds), headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - try { - ParentAliasKind parentAliasKind = ParentAliasKind.fromJsonToParentAliasKind(json); - parentAliasKind.setId(id); - if (parentAliasKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(parentAliasKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - try { - ParentAliasKind parentAliasKind = ParentAliasKind.findParentAliasKind(id); - if (parentAliasKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - parentAliasKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.OPTIONS) - public ResponseEntity getIsotopeOptions() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Kind", "application/json"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - return new ResponseEntity(headers, HttpStatus.OK); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ParentAliasKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ParentAliasKindController_Roo_Controller.aj deleted file mode 100644 index 99fd18a92..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentAliasKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ParentAliasKind; -import com.labsynch.labseer.domain.ParentAliasType; -import com.labsynch.labseer.web.ParentAliasKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ParentAliasKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ParentAliasKindController.create(@Valid ParentAliasKind parentAliasKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, parentAliasKind); - return "parentaliaskinds/create"; - } - uiModel.asMap().clear(); - parentAliasKind.persist(); - return "redirect:/parentaliaskinds/" + encodeUrlPathSegment(parentAliasKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ParentAliasKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new ParentAliasKind()); - List dependencies = new ArrayList(); - if (ParentAliasType.countParentAliasTypes() == 0) { - dependencies.add(new String[] { "lsType", "parentaliastypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "parentaliaskinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ParentAliasKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("parentaliaskind", ParentAliasKind.findParentAliasKind(id)); - uiModel.addAttribute("itemId", id); - return "parentaliaskinds/show"; - } - - @RequestMapping(produces = "text/html") - public String ParentAliasKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parentaliaskinds", ParentAliasKind.findParentAliasKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ParentAliasKind.countParentAliasKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parentaliaskinds", ParentAliasKind.findAllParentAliasKinds(sortFieldName, sortOrder)); - } - return "parentaliaskinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ParentAliasKindController.update(@Valid ParentAliasKind parentAliasKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, parentAliasKind); - return "parentaliaskinds/update"; - } - uiModel.asMap().clear(); - parentAliasKind.merge(); - return "redirect:/parentaliaskinds/" + encodeUrlPathSegment(parentAliasKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ParentAliasKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ParentAliasKind.findParentAliasKind(id)); - return "parentaliaskinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ParentAliasKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ParentAliasKind parentAliasKind = ParentAliasKind.findParentAliasKind(id); - parentAliasKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/parentaliaskinds"; - } - - void ParentAliasKindController.populateEditForm(Model uiModel, ParentAliasKind parentAliasKind) { - uiModel.addAttribute("parentAliasKind", parentAliasKind); - uiModel.addAttribute("parentaliastypes", ParentAliasType.findAllParentAliasTypes()); - } - - String ParentAliasKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ParentAliasTypeController.java b/src/main/java/com/labsynch/labseer/web/ParentAliasTypeController.java deleted file mode 100644 index e61851548..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentAliasTypeController.java +++ /dev/null @@ -1,163 +0,0 @@ -package com.labsynch.labseer.web; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; - -import javax.servlet.http.HttpServletRequest; - -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -import com.labsynch.labseer.domain.ParentAliasType; - -@RooWebScaffold(path = "parentaliastypes", formBackingObject = ParentAliasType.class) -@RequestMapping("/parentaliastypes") -@Controller -@Transactional - -@RooWebFinder -@RooWebJson(jsonObject = ParentAliasType.class) -public class ParentAliasTypeController { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - try { - ParentAliasType parentAliasType = ParentAliasType.findParentAliasType(id); - if (parentAliasType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(parentAliasType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - try { - List result = ParentAliasType.findAllParentAliasTypes(); - return new ResponseEntity(ParentAliasType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - try { - ParentAliasType parentAliasType = ParentAliasType.fromJsonToParentAliasType(json); - parentAliasType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location", uriBuilder.path(a.value()[0] + "/" + parentAliasType.getId().toString()).build().toUriString()); - return new ResponseEntity(parentAliasType.toJson(), headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - Collection parentAliasTypes = new HashSet(); - try { - for (ParentAliasType parentAliasType : ParentAliasType.fromJsonArrayToParentAliasTypes(json)) { - parentAliasType.persist(); - parentAliasTypes.add(parentAliasType); - } - return new ResponseEntity(ParentAliasType.toJsonArray(parentAliasTypes), headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - try { - ParentAliasType parentAliasType = ParentAliasType.fromJsonToParentAliasType(json); - parentAliasType.setId(id); - if (parentAliasType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(parentAliasType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - headers.add("Content-Kind", "application/json; charset=utf-8"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - try { - ParentAliasType parentAliasType = ParentAliasType.findParentAliasType(id); - if (parentAliasType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - parentAliasType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":" + e.getMessage() + "\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.OPTIONS) - public ResponseEntity getIsotopeOptions() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Kind", "application/json"); - headers.add("Access-Control-Allow-Headers", "Content-Kind"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - return new ResponseEntity(headers, HttpStatus.OK); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ParentAliasTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ParentAliasTypeController_Roo_Controller.aj deleted file mode 100644 index 8923a555b..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentAliasTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ParentAliasType; -import com.labsynch.labseer.web.ParentAliasTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ParentAliasTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ParentAliasTypeController.create(@Valid ParentAliasType parentAliasType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, parentAliasType); - return "parentaliastypes/create"; - } - uiModel.asMap().clear(); - parentAliasType.persist(); - return "redirect:/parentaliastypes/" + encodeUrlPathSegment(parentAliasType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ParentAliasTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new ParentAliasType()); - return "parentaliastypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ParentAliasTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("parentaliastype", ParentAliasType.findParentAliasType(id)); - uiModel.addAttribute("itemId", id); - return "parentaliastypes/show"; - } - - @RequestMapping(produces = "text/html") - public String ParentAliasTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parentaliastypes", ParentAliasType.findParentAliasTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ParentAliasType.countParentAliasTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parentaliastypes", ParentAliasType.findAllParentAliasTypes(sortFieldName, sortOrder)); - } - return "parentaliastypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ParentAliasTypeController.update(@Valid ParentAliasType parentAliasType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, parentAliasType); - return "parentaliastypes/update"; - } - uiModel.asMap().clear(); - parentAliasType.merge(); - return "redirect:/parentaliastypes/" + encodeUrlPathSegment(parentAliasType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ParentAliasTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ParentAliasType.findParentAliasType(id)); - return "parentaliastypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ParentAliasTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ParentAliasType parentAliasType = ParentAliasType.findParentAliasType(id); - parentAliasType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/parentaliastypes"; - } - - void ParentAliasTypeController.populateEditForm(Model uiModel, ParentAliasType parentAliasType) { - uiModel.addAttribute("parentAliasType", parentAliasType); - } - - String ParentAliasTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ParentController.java b/src/main/java/com/labsynch/labseer/web/ParentController.java deleted file mode 100755 index 1edda45e6..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentController.java +++ /dev/null @@ -1,298 +0,0 @@ -package com.labsynch.labseer.web; -import java.io.UnsupportedEncodingException; -import java.util.Collection; -import java.util.Map; -import java.util.Set; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; - -import org.joda.time.format.DateTimeFormat; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.MessageSource; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.core.convert.ConversionService; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; -import com.labsynch.labseer.domain.Parent; -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.domain.StereoCategory; -import com.labsynch.labseer.exceptions.CmpdRegMolFormatException; -import com.labsynch.labseer.service.ChemStructureService; -import com.labsynch.labseer.service.ErrorMessage; -import com.labsynch.labseer.service.ParentStructureService; -import com.labsynch.labseer.service.ChemStructureService.StructureType; -import com.labsynch.labseer.utils.MoleculeUtil; -import com.mysema.query.BooleanBuilder; -import com.mysema.query.types.path.PathBuilder; - -@RooWebScaffold(path = "parents", formBackingObject = Parent.class) -@RequestMapping("/parents") -@Controller -@Transactional - -@RooWebFinder -public class ParentController { - - Logger logger = LoggerFactory.getLogger(ParentController.class); - - @Autowired - public ConversionService conversionService_dtt; - - @Autowired - public MessageSource messageSource_dtt; - - @Autowired - private ChemStructureService service; - - @Autowired - private ParentStructureService parentService; - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - Parent parent = Parent.findParent(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - if (parent == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(parent.toJson(), headers, HttpStatus.OK); - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text; charset=utf-8"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - return new ResponseEntity(Parent.toJsonArray(Parent.findAllParents()), headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - Parent parent = Parent.fromJsonToParent(json); - parent = this.saveParentStructure(parent); - parent.persist(); - if (parent.getCdId() == -1) { - ErrorMessage error = new ErrorMessage(); - error.setLevel("error"); - error.setMessage("Bad molformat. Please fix the molfile: " + parent.getMolStructure()); - return new ResponseEntity(error.toJson(), headers, HttpStatus.BAD_REQUEST); - } else if (parent.getCdId() > 0) { - try{ - String molfile = service.toMolfile(parent.getMolStructure()); - parent.setMolStructure(molfile); - parent.persist(); - return showJson(parent.getId()); - }catch (CmpdRegMolFormatException e) { - return new ResponseEntity("Cannot parse input mol: "+e.toString(), headers, HttpStatus.BAD_REQUEST); - } - } else { - ErrorMessage error = new ErrorMessage(); - error.setLevel("warning"); - error.setMessage("Duplicate parent found. Please select existing parent."); - return new ResponseEntity(error.toJson(), headers, HttpStatus.CONFLICT); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - for (Parent parent : Parent.fromJsonArrayToParents(json)) { - parent = this.saveParentStructure(parent); - parent.persist(); - } - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - if (Parent.fromJsonToParent(json).merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - for (Parent parent : Parent.fromJsonArrayToParents(json)) { - if (parent.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - Parent parent = Parent.findParent(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - if (parent == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - parent.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.POST) - public String create(@Valid Parent parent, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - uiModel.addAttribute("parent", parent); - return "parents/create"; - } - uiModel.asMap().clear(); - parent = this.saveParentStructure(parent); - String molfile; - try { - molfile = service.toMolfile(parent.getMolStructure()); - parent.setMolStructure(molfile); - parent.persist(); - return "redirect:/parents/" + encodeUrlPathSegment(parent.getId().toString(), httpServletRequest); - } catch (CmpdRegMolFormatException e) { - logger.error("Cannot parse input mol: "+e.toString()); - } - return "redirect:/error/"; - } - - private Parent saveParentStructure(Parent parent) { - int parentCdId = service.saveStructure(parent.getMolStructure(), StructureType.PARENT); - parent.setCdId(parentCdId); - return parent; - } - - @RequestMapping(params = "form", method = RequestMethod.GET) - public String createForm(Model uiModel) { - uiModel.addAttribute("parent", new Parent()); - return "parents/create"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - public String show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("parent", Parent.findParent(id)); - uiModel.addAttribute("itemId", id); - return "parents/show"; - } - - @RequestMapping(method = RequestMethod.GET) - public String list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - uiModel.addAttribute("parents", Parent.findParentEntries(page == null ? 0 : (page.intValue() - 1) * sizeNo, sizeNo)); - float nrOfPages = (float) Parent.countParents() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parents", Parent.findParentEntries(0, 10)); - } - return "parents/list"; - } - - @Transactional - @RequestMapping(method = RequestMethod.PUT) - public String update(@Valid Parent parent, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - uiModel.addAttribute("parent", parent); - return "parents/update"; - } - uiModel.asMap().clear(); - try { - logger.debug("Parent weight: " + service.getMolWeight(parent.getMolStructure())); - } catch (CmpdRegMolFormatException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - parentService.update(parent); - // parent.merge(); - return "redirect:/parents/" + encodeUrlPathSegment(parent.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", method = RequestMethod.GET) - public String updateForm(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("parent", Parent.findParent(id)); - return "parents/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) - public String delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - Parent.findParent(id).remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/parents"; - } - - @ModelAttribute("parents") - public Collection populateParents() { - return Parent.findParentEntries(0, 2); - } - - @ModelAttribute("saltforms") - public Collection populateSaltForms() { - return SaltForm.findSaltFormEntries(0, 2); - } - - @ModelAttribute("stereocategorys") - public Collection populateStereoCategorys() { - return StereoCategory.findAllStereoCategorys(); - } - - String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - - @RequestMapping(method = RequestMethod.OPTIONS) - public ResponseEntity getOptions() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/text, text/html"); - headers.add("Access-Control-Allow-Headers", "Content-Type"); - headers.add("Access-Control-Allow-Origin", "*"); - headers.add("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1 - headers.add("Pragma", "no-cache"); //HTTP 1.0 - headers.setExpires(0); // Expire the cache - return new ResponseEntity(headers, HttpStatus.OK); - } - - void addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("parent_registrationdate_date_format", DateTimeFormat.patternForStyle("S-", LocaleContextHolder.getLocale())); - uiModel.addAttribute("parent_modifieddate_date_format", DateTimeFormat.patternForStyle("S-", LocaleContextHolder.getLocale())); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/ParentController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ParentController_Roo_Controller.aj deleted file mode 100644 index 4269ba523..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentController_Roo_Controller.aj +++ /dev/null @@ -1,29 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.BulkLoadFile; -import com.labsynch.labseer.domain.CompoundType; -import com.labsynch.labseer.domain.Parent; -import com.labsynch.labseer.domain.ParentAlias; -import com.labsynch.labseer.domain.ParentAnnotation; -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.domain.StereoCategory; -import com.labsynch.labseer.web.ParentController; -import org.springframework.ui.Model; - -privileged aspect ParentController_Roo_Controller { - - void ParentController.populateEditForm(Model uiModel, Parent parent) { - uiModel.addAttribute("parent", parent); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("bulkloadfiles", BulkLoadFile.findAllBulkLoadFiles()); - uiModel.addAttribute("compoundtypes", CompoundType.findAllCompoundTypes()); - uiModel.addAttribute("parentaliases", ParentAlias.findAllParentAliases()); - uiModel.addAttribute("parentannotations", ParentAnnotation.findAllParentAnnotations()); - uiModel.addAttribute("saltforms", SaltForm.findAllSaltForms()); - uiModel.addAttribute("stereocategorys", StereoCategory.findAllStereoCategorys()); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ParentController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ParentController_Roo_Controller_Finder.aj deleted file mode 100644 index 2a5de4924..000000000 --- a/src/main/java/com/labsynch/labseer/web/ParentController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,140 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.BulkLoadFile; -import com.labsynch.labseer.domain.Parent; -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.web.ParentController; -import java.util.Set; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ParentController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByBulkLoadFileEquals", "form" }, method = RequestMethod.GET) - public String ParentController.findParentsByBulkLoadFileEqualsForm(Model uiModel) { - uiModel.addAttribute("bulkloadfiles", BulkLoadFile.findAllBulkLoadFiles()); - return "parents/findParentsByBulkLoadFileEquals"; - } - - @RequestMapping(params = "find=ByBulkLoadFileEquals", method = RequestMethod.GET) - public String ParentController.findParentsByBulkLoadFileEquals(@RequestParam("bulkLoadFile") BulkLoadFile bulkLoadFile, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parents", Parent.findParentsByBulkLoadFileEquals(bulkLoadFile, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Parent.countFindParentsByBulkLoadFileEquals(bulkLoadFile) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parents", Parent.findParentsByBulkLoadFileEquals(bulkLoadFile, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "parents/list"; - } - - @RequestMapping(params = { "find=ByCdId", "form" }, method = RequestMethod.GET) - public String ParentController.findParentsByCdIdForm(Model uiModel) { - return "parents/findParentsByCdId"; - } - - @RequestMapping(params = "find=ByCdId", method = RequestMethod.GET) - public String ParentController.findParentsByCdId(@RequestParam("cdId") int CdId, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parents", Parent.findParentsByCdId(CdId, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Parent.countFindParentsByCdId(CdId) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parents", Parent.findParentsByCdId(CdId, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "parents/list"; - } - - @RequestMapping(params = { "find=ByCommonNameLike", "form" }, method = RequestMethod.GET) - public String ParentController.findParentsByCommonNameLikeForm(Model uiModel) { - return "parents/findParentsByCommonNameLike"; - } - - @RequestMapping(params = "find=ByCommonNameLike", method = RequestMethod.GET) - public String ParentController.findParentsByCommonNameLike(@RequestParam("commonName") String commonName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parents", Parent.findParentsByCommonNameLike(commonName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Parent.countFindParentsByCommonNameLike(commonName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parents", Parent.findParentsByCommonNameLike(commonName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "parents/list"; - } - - @RequestMapping(params = { "find=ByCorpNameEquals", "form" }, method = RequestMethod.GET) - public String ParentController.findParentsByCorpNameEqualsForm(Model uiModel) { - return "parents/findParentsByCorpNameEquals"; - } - - @RequestMapping(params = "find=ByCorpNameEquals", method = RequestMethod.GET) - public String ParentController.findParentsByCorpNameEquals(@RequestParam("corpName") String corpName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parents", Parent.findParentsByCorpNameEquals(corpName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Parent.countFindParentsByCorpNameEquals(corpName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parents", Parent.findParentsByCorpNameEquals(corpName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "parents/list"; - } - - @RequestMapping(params = { "find=ByCorpNameLike", "form" }, method = RequestMethod.GET) - public String ParentController.findParentsByCorpNameLikeForm(Model uiModel) { - return "parents/findParentsByCorpNameLike"; - } - - @RequestMapping(params = "find=ByCorpNameLike", method = RequestMethod.GET) - public String ParentController.findParentsByCorpNameLike(@RequestParam("corpName") String corpName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parents", Parent.findParentsByCorpNameLike(corpName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Parent.countFindParentsByCorpNameLike(corpName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parents", Parent.findParentsByCorpNameLike(corpName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "parents/list"; - } - - @RequestMapping(params = { "find=BySaltForms", "form" }, method = RequestMethod.GET) - public String ParentController.findParentsBySaltFormsForm(Model uiModel) { - uiModel.addAttribute("saltforms", SaltForm.findAllSaltForms()); - return "parents/findParentsBySaltForms"; - } - - @RequestMapping(params = "find=BySaltForms", method = RequestMethod.GET) - public String ParentController.findParentsBySaltForms(@RequestParam("saltForms") Set saltForms, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("parents", Parent.findParentsBySaltForms(saltForms, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Parent.countFindParentsBySaltForms(saltForms) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("parents", Parent.findParentsBySaltForms(saltForms, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "parents/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/PreDef_CorpNameController.java b/src/main/java/com/labsynch/labseer/web/PreDef_CorpNameController.java deleted file mode 100644 index 0b2f46022..000000000 --- a/src/main/java/com/labsynch/labseer/web/PreDef_CorpNameController.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.labsynch.labseer.web; -import javax.servlet.http.HttpServletRequest; - -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.domain.PreDef_CorpName; - -@RequestMapping("/predef_corpnames") -@Controller -@RooWebScaffold(path = "predef_corpnames", formBackingObject = PreDef_CorpName.class) - -public class PreDef_CorpNameController { - -} diff --git a/src/main/java/com/labsynch/labseer/web/PreDef_CorpNameController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/PreDef_CorpNameController_Roo_Controller.aj deleted file mode 100644 index 45dbd1d7e..000000000 --- a/src/main/java/com/labsynch/labseer/web/PreDef_CorpNameController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.PreDef_CorpName; -import com.labsynch.labseer.web.PreDef_CorpNameController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect PreDef_CorpNameController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String PreDef_CorpNameController.create(@Valid PreDef_CorpName preDef_CorpName, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, preDef_CorpName); - return "predef_corpnames/create"; - } - uiModel.asMap().clear(); - preDef_CorpName.persist(); - return "redirect:/predef_corpnames/" + encodeUrlPathSegment(preDef_CorpName.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String PreDef_CorpNameController.createForm(Model uiModel) { - populateEditForm(uiModel, new PreDef_CorpName()); - return "predef_corpnames/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String PreDef_CorpNameController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("predef_corpname", PreDef_CorpName.findPreDef_CorpName(id)); - uiModel.addAttribute("itemId", id); - return "predef_corpnames/show"; - } - - @RequestMapping(produces = "text/html") - public String PreDef_CorpNameController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("predef_corpnames", PreDef_CorpName.findPreDef_CorpNameEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) PreDef_CorpName.countPreDef_CorpNames() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("predef_corpnames", PreDef_CorpName.findAllPreDef_CorpNames(sortFieldName, sortOrder)); - } - return "predef_corpnames/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String PreDef_CorpNameController.update(@Valid PreDef_CorpName preDef_CorpName, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, preDef_CorpName); - return "predef_corpnames/update"; - } - uiModel.asMap().clear(); - preDef_CorpName.merge(); - return "redirect:/predef_corpnames/" + encodeUrlPathSegment(preDef_CorpName.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String PreDef_CorpNameController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, PreDef_CorpName.findPreDef_CorpName(id)); - return "predef_corpnames/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String PreDef_CorpNameController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - PreDef_CorpName preDef_CorpName = PreDef_CorpName.findPreDef_CorpName(id); - preDef_CorpName.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/predef_corpnames"; - } - - void PreDef_CorpNameController.populateEditForm(Model uiModel, PreDef_CorpName preDef_CorpName) { - uiModel.addAttribute("preDef_CorpName", preDef_CorpName); - } - - String PreDef_CorpNameController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/PreferredNameDTOController.java b/src/main/java/com/labsynch/labseer/web/PreferredNameDTOController.java deleted file mode 100755 index 859d9000e..000000000 --- a/src/main/java/com/labsynch/labseer/web/PreferredNameDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.PreferredNameDTO; - -@RooWebJson(jsonObject = PreferredNameDTO.class) -@Controller -@RequestMapping("/preferrednamedto") -public class PreferredNameDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/PreferredNameRequestDTOController.java b/src/main/java/com/labsynch/labseer/web/PreferredNameRequestDTOController.java deleted file mode 100755 index e4cdaaa33..000000000 --- a/src/main/java/com/labsynch/labseer/web/PreferredNameRequestDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.PreferredNameRequestDTO; - -@RooWebJson(jsonObject = PreferredNameRequestDTO.class) -@Controller -@RequestMapping("/preferrednamerequestdto") -public class PreferredNameRequestDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/PreferredNameResultsDTOController.java b/src/main/java/com/labsynch/labseer/web/PreferredNameResultsDTOController.java deleted file mode 100755 index 5408f9c04..000000000 --- a/src/main/java/com/labsynch/labseer/web/PreferredNameResultsDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.PreferredNameResultsDTO; - -@RooWebJson(jsonObject = PreferredNameResultsDTO.class) -@Controller -@RequestMapping("/preferrednameresultsdto") -public class PreferredNameResultsDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/PreferredNameWithErrorDTOController.java b/src/main/java/com/labsynch/labseer/web/PreferredNameWithErrorDTOController.java deleted file mode 100755 index efc7e3aa0..000000000 --- a/src/main/java/com/labsynch/labseer/web/PreferredNameWithErrorDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.PreferredNameWithErrorDTO; - -@RooWebJson(jsonObject = PreferredNameWithErrorDTO.class) -@Controller -@RequestMapping("/preferrednamewitherroes") -public class PreferredNameWithErrorDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolController.java b/src/main/java/com/labsynch/labseer/web/ProtocolController.java deleted file mode 100755 index df2a2af1c..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolController.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.dto.CodeTableDTO; -import com.labsynch.labseer.exceptions.UniqueNameException; -import com.labsynch.labseer.service.ProtocolService; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.apache.commons.io.IOUtils; -import org.joda.time.format.DateTimeFormat; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.servlet.HandlerMapping; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -@RooWebJson(jsonObject = Protocol.class) -@Controller -@RequestMapping("/protocols") -@RooWebScaffold(path = "protocols", formBackingObject = Protocol.class) -@RooWebFinder -public class ProtocolController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller.aj deleted file mode 100644 index 5cc7d6756..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller.aj +++ /dev/null @@ -1,122 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Experiment; -import com.labsynch.labseer.domain.ItxProtocolProtocol; -import com.labsynch.labseer.domain.LsTag; -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.domain.ProtocolLabel; -import com.labsynch.labseer.domain.ProtocolState; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.ProtocolController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ProtocolController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ProtocolController.create(@Valid Protocol protocol, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, protocol); - return "protocols/create"; - } - uiModel.asMap().clear(); - protocol.persist(); - return "redirect:/protocols/" + encodeUrlPathSegment(protocol.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ProtocolController.createForm(Model uiModel) { - populateEditForm(uiModel, new Protocol()); - return "protocols/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ProtocolController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("protocol", Protocol.findProtocol(id)); - uiModel.addAttribute("itemId", id); - return "protocols/show"; - } - - @RequestMapping(produces = "text/html") - public String ProtocolController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) Protocol.countProtocols() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findAllProtocols(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ProtocolController.update(@Valid Protocol protocol, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, protocol); - return "protocols/update"; - } - uiModel.asMap().clear(); - protocol.merge(); - return "redirect:/protocols/" + encodeUrlPathSegment(protocol.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ProtocolController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, Protocol.findProtocol(id)); - return "protocols/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ProtocolController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - Protocol protocol = Protocol.findProtocol(id); - protocol.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/protocols"; - } - - void ProtocolController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("protocol_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("protocol_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ProtocolController.populateEditForm(Model uiModel, Protocol protocol) { - uiModel.addAttribute("protocol", protocol); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("experiments", Experiment.findAllExperiments()); - uiModel.addAttribute("itxprotocolprotocols", ItxProtocolProtocol.findAllItxProtocolProtocols()); - uiModel.addAttribute("lstags", LsTag.findAllLsTags()); - uiModel.addAttribute("protocollabels", ProtocolLabel.findAllProtocolLabels()); - uiModel.addAttribute("protocolstates", ProtocolState.findAllProtocolStates()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - } - - String ProtocolController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller_Finder.aj deleted file mode 100755 index 916ad9817..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,255 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.web.ProtocolController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ProtocolController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeNameEquals", "form" }, method = RequestMethod.GET) - public String ProtocolController.findProtocolsByCodeNameEqualsForm(Model uiModel) { - return "protocols/findProtocolsByCodeNameEquals"; - } - - @RequestMapping(params = "find=ByCodeNameEquals", method = RequestMethod.GET) - public String ProtocolController.findProtocolsByCodeNameEquals(@RequestParam("codeName") String codeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolsByCodeNameEquals(codeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Protocol.countFindProtocolsByCodeNameEquals(codeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findProtocolsByCodeNameEquals(codeName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - - @RequestMapping(params = { "find=ByCodeNameEqualsAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String ProtocolController.findProtocolsByCodeNameEqualsAndIgnoredNotForm(Model uiModel) { - return "protocols/findProtocolsByCodeNameEqualsAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByCodeNameEqualsAndIgnoredNot", method = RequestMethod.GET) - public String ProtocolController.findProtocolsByCodeNameEqualsAndIgnoredNot(@RequestParam("codeName") String codeName, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolsByCodeNameEqualsAndIgnoredNot(codeName, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Protocol.countFindProtocolsByCodeNameEqualsAndIgnoredNot(codeName, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findProtocolsByCodeNameEqualsAndIgnoredNot(codeName, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - - @RequestMapping(params = { "find=ByCodeNameLike", "form" }, method = RequestMethod.GET) - public String ProtocolController.findProtocolsByCodeNameLikeForm(Model uiModel) { - return "protocols/findProtocolsByCodeNameLike"; - } - - @RequestMapping(params = "find=ByCodeNameLike", method = RequestMethod.GET) - public String ProtocolController.findProtocolsByCodeNameLike(@RequestParam("codeName") String codeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolsByCodeNameLike(codeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Protocol.countFindProtocolsByCodeNameLike(codeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findProtocolsByCodeNameLike(codeName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - - @RequestMapping(params = { "find=ByIgnoredNot", "form" }, method = RequestMethod.GET) - public String ProtocolController.findProtocolsByIgnoredNotForm(Model uiModel) { - return "protocols/findProtocolsByIgnoredNot"; - } - - @RequestMapping(params = "find=ByIgnoredNot", method = RequestMethod.GET) - public String ProtocolController.findProtocolsByIgnoredNot(@RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolsByIgnoredNot(ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Protocol.countFindProtocolsByIgnoredNot(ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findProtocolsByIgnoredNot(ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - - @RequestMapping(params = { "find=ByLsKindEquals", "form" }, method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsKindEqualsForm(Model uiModel) { - return "protocols/findProtocolsByLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsKindEquals", method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsKindEquals(@RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsKindEquals(lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Protocol.countFindProtocolsByLsKindEquals(lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsKindEquals(lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - - @RequestMapping(params = { "find=ByLsKindLike", "form" }, method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsKindLikeForm(Model uiModel) { - return "protocols/findProtocolsByLsKindLike"; - } - - @RequestMapping(params = "find=ByLsKindLike", method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsKindLike(@RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsKindLike(lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Protocol.countFindProtocolsByLsKindLike(lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsKindLike(lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsTransactionEqualsForm(Model uiModel) { - return "protocols/findProtocolsByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Protocol.countFindProtocolsByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - - @RequestMapping(params = { "find=ByLsTypeAndKindEquals", "form" }, method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsTypeAndKindEqualsForm(Model uiModel) { - return "protocols/findProtocolsByLsTypeAndKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeAndKindEquals", method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsTypeAndKindEquals(@RequestParam("lsTypeAndKind") String lsTypeAndKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsTypeAndKindEquals(lsTypeAndKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Protocol.countFindProtocolsByLsTypeAndKindEquals(lsTypeAndKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsTypeAndKindEquals(lsTypeAndKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEquals", "form" }, method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsTypeEqualsForm(Model uiModel) { - return "protocols/findProtocolsByLsTypeEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEquals", method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsTypeEquals(@RequestParam("lsType") String lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsTypeEquals(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Protocol.countFindProtocolsByLsTypeEquals(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsTypeEquals(lsType, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - return "protocols/findProtocolsByLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Protocol.countFindProtocolsByLsTypeEqualsAndLsKindEquals(lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - - @RequestMapping(params = { "find=ByLsTypeLike", "form" }, method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsTypeLikeForm(Model uiModel) { - return "protocols/findProtocolsByLsTypeLike"; - } - - @RequestMapping(params = "find=ByLsTypeLike", method = RequestMethod.GET) - public String ProtocolController.findProtocolsByLsTypeLike(@RequestParam("lsType") String lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsTypeLike(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Protocol.countFindProtocolsByLsTypeLike(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findProtocolsByLsTypeLike(lsType, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - - @RequestMapping(params = { "find=ByRecordedByLike", "form" }, method = RequestMethod.GET) - public String ProtocolController.findProtocolsByRecordedByLikeForm(Model uiModel) { - return "protocols/findProtocolsByRecordedByLike"; - } - - @RequestMapping(params = "find=ByRecordedByLike", method = RequestMethod.GET) - public String ProtocolController.findProtocolsByRecordedByLike(@RequestParam("recordedBy") String recordedBy, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocols", Protocol.findProtocolsByRecordedByLike(recordedBy, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Protocol.countFindProtocolsByRecordedByLike(recordedBy) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocols", Protocol.findProtocolsByRecordedByLike(recordedBy, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocols/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller_Json.aj deleted file mode 100755 index 7d0392a8d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolController_Roo_Controller_Json.aj +++ /dev/null @@ -1,256 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.web.ProtocolController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ProtocolController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - Protocol protocol = Protocol.findProtocol(id); - if (protocol == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(protocol.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = Protocol.findAllProtocols(); - return new ResponseEntity(Protocol.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ProtocolController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Protocol protocol = Protocol.fromJsonToProtocol(json); - protocol.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+protocol.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ProtocolController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (Protocol protocol: Protocol.fromJsonArrayToProtocols(json)) { - protocol.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ProtocolController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Protocol protocol = Protocol.fromJsonToProtocol(json); - protocol.setId(id); - if (protocol.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ProtocolController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Protocol protocol = Protocol.findProtocol(id); - if (protocol == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - protocol.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.jsonFindProtocolsByCodeNameEquals(@RequestParam("codeName") String codeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Protocol.toJsonArray(Protocol.findProtocolsByCodeNameEquals(codeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeNameEqualsAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.jsonFindProtocolsByCodeNameEqualsAndIgnoredNot(@RequestParam("codeName") String codeName, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Protocol.toJsonArray(Protocol.findProtocolsByCodeNameEqualsAndIgnoredNot(codeName, ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeNameLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.jsonFindProtocolsByCodeNameLike(@RequestParam("codeName") String codeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Protocol.toJsonArray(Protocol.findProtocolsByCodeNameLike(codeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.jsonFindProtocolsByIgnoredNot(@RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Protocol.toJsonArray(Protocol.findProtocolsByIgnoredNot(ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.jsonFindProtocolsByLsKindEquals(@RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Protocol.toJsonArray(Protocol.findProtocolsByLsKindEquals(lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.jsonFindProtocolsByLsKindLike(@RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Protocol.toJsonArray(Protocol.findProtocolsByLsKindLike(lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.jsonFindProtocolsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Protocol.toJsonArray(Protocol.findProtocolsByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeAndKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.jsonFindProtocolsByLsTypeAndKindEquals(@RequestParam("lsTypeAndKind") String lsTypeAndKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Protocol.toJsonArray(Protocol.findProtocolsByLsTypeAndKindEquals(lsTypeAndKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.jsonFindProtocolsByLsTypeEquals(@RequestParam("lsType") String lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Protocol.toJsonArray(Protocol.findProtocolsByLsTypeEquals(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.jsonFindProtocolsByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Protocol.toJsonArray(Protocol.findProtocolsByLsTypeEqualsAndLsKindEquals(lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.jsonFindProtocolsByLsTypeLike(@RequestParam("lsType") String lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Protocol.toJsonArray(Protocol.findProtocolsByLsTypeLike(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByRecordedByLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolController.jsonFindProtocolsByRecordedByLike(@RequestParam("recordedBy") String recordedBy) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Protocol.toJsonArray(Protocol.findProtocolsByRecordedByLike(recordedBy).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolKindController.java b/src/main/java/com/labsynch/labseer/web/ProtocolKindController.java deleted file mode 100755 index 514c4a439..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolKindController.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ProtocolKind; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ProtocolKind.class) -@RequestMapping("/protocolkinds") -@Controller -@RooWebScaffold(path = "protocolkinds", formBackingObject = ProtocolKind.class) -@RooWebFinder -public class ProtocolKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller.aj deleted file mode 100755 index 937a45fec..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ProtocolKind; -import com.labsynch.labseer.domain.ProtocolType; -import com.labsynch.labseer.web.ProtocolKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ProtocolKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ProtocolKindController.create(@Valid ProtocolKind protocolKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, protocolKind); - return "protocolkinds/create"; - } - uiModel.asMap().clear(); - protocolKind.persist(); - return "redirect:/protocolkinds/" + encodeUrlPathSegment(protocolKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ProtocolKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new ProtocolKind()); - List dependencies = new ArrayList(); - if (ProtocolType.countProtocolTypes() == 0) { - dependencies.add(new String[] { "lsType", "protocoltypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "protocolkinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ProtocolKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("protocolkind", ProtocolKind.findProtocolKind(id)); - uiModel.addAttribute("itemId", id); - return "protocolkinds/show"; - } - - @RequestMapping(produces = "text/html") - public String ProtocolKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocolkinds", ProtocolKind.findProtocolKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ProtocolKind.countProtocolKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocolkinds", ProtocolKind.findAllProtocolKinds(sortFieldName, sortOrder)); - } - return "protocolkinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ProtocolKindController.update(@Valid ProtocolKind protocolKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, protocolKind); - return "protocolkinds/update"; - } - uiModel.asMap().clear(); - protocolKind.merge(); - return "redirect:/protocolkinds/" + encodeUrlPathSegment(protocolKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ProtocolKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ProtocolKind.findProtocolKind(id)); - return "protocolkinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ProtocolKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ProtocolKind protocolKind = ProtocolKind.findProtocolKind(id); - protocolKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/protocolkinds"; - } - - void ProtocolKindController.populateEditForm(Model uiModel, ProtocolKind protocolKind) { - uiModel.addAttribute("protocolKind", protocolKind); - uiModel.addAttribute("protocoltypes", ProtocolType.findAllProtocolTypes()); - } - - String ProtocolKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller_Finder.aj deleted file mode 100644 index badfd876b..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,36 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ProtocolKind; -import com.labsynch.labseer.domain.ProtocolType; -import com.labsynch.labseer.web.ProtocolKindController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ProtocolKindController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLsTypeEqualsAndKindNameEquals", "form" }, method = RequestMethod.GET) - public String ProtocolKindController.findProtocolKindsByLsTypeEqualsAndKindNameEqualsForm(Model uiModel) { - uiModel.addAttribute("protocoltypes", ProtocolType.findAllProtocolTypes()); - return "protocolkinds/findProtocolKindsByLsTypeEqualsAndKindNameEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndKindNameEquals", method = RequestMethod.GET) - public String ProtocolKindController.findProtocolKindsByLsTypeEqualsAndKindNameEquals(@RequestParam("lsType") ProtocolType lsType, @RequestParam("kindName") String kindName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocolkinds", ProtocolKind.findProtocolKindsByLsTypeEqualsAndKindNameEquals(lsType, kindName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ProtocolKind.countFindProtocolKindsByLsTypeEqualsAndKindNameEquals(lsType, kindName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocolkinds", ProtocolKind.findProtocolKindsByLsTypeEqualsAndKindNameEquals(lsType, kindName, sortFieldName, sortOrder).getResultList()); - } - return "protocolkinds/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller_Json.aj deleted file mode 100644 index 9f61d0eac..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,125 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ProtocolKind; -import com.labsynch.labseer.domain.ProtocolType; -import com.labsynch.labseer.web.ProtocolKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ProtocolKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ProtocolKind protocolKind = ProtocolKind.findProtocolKind(id); - if (protocolKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(protocolKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ProtocolKind.findAllProtocolKinds(); - return new ResponseEntity(ProtocolKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ProtocolKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolKind protocolKind = ProtocolKind.fromJsonToProtocolKind(json); - protocolKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+protocolKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ProtocolKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ProtocolKind protocolKind: ProtocolKind.fromJsonArrayToProtocolKinds(json)) { - protocolKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ProtocolKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolKind protocolKind = ProtocolKind.fromJsonToProtocolKind(json); - protocolKind.setId(id); - if (protocolKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ProtocolKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolKind protocolKind = ProtocolKind.findProtocolKind(id); - if (protocolKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - protocolKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndKindNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolKindController.jsonFindProtocolKindsByLsTypeEqualsAndKindNameEquals(@RequestParam("lsType") ProtocolType lsType, @RequestParam("kindName") String kindName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ProtocolKind.toJsonArray(ProtocolKind.findProtocolKindsByLsTypeEqualsAndKindNameEquals(lsType, kindName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolLabelController.java b/src/main/java/com/labsynch/labseer/web/ProtocolLabelController.java deleted file mode 100755 index c175bd9c1..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolLabelController.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.domain.ProtocolLabel; -import com.labsynch.labseer.dto.CodeTableDTO; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ProtocolLabel.class) -@Controller -@RequestMapping("/protocollabels") -@RooWebScaffold(path = "protocollabels", formBackingObject = ProtocolLabel.class) -@RooWebFinder -public class ProtocolLabelController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller.aj deleted file mode 100755 index 86d0c8aed..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller.aj +++ /dev/null @@ -1,119 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.domain.ProtocolLabel; -import com.labsynch.labseer.web.ProtocolLabelController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ProtocolLabelController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ProtocolLabelController.create(@Valid ProtocolLabel protocolLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, protocolLabel); - return "protocollabels/create"; - } - uiModel.asMap().clear(); - protocolLabel.persist(); - return "redirect:/protocollabels/" + encodeUrlPathSegment(protocolLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ProtocolLabelController.createForm(Model uiModel) { - populateEditForm(uiModel, new ProtocolLabel()); - List dependencies = new ArrayList(); - if (Protocol.countProtocols() == 0) { - dependencies.add(new String[] { "protocol", "protocols" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "protocollabels/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ProtocolLabelController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("protocollabel", ProtocolLabel.findProtocolLabel(id)); - uiModel.addAttribute("itemId", id); - return "protocollabels/show"; - } - - @RequestMapping(produces = "text/html") - public String ProtocolLabelController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocollabels", ProtocolLabel.findProtocolLabelEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ProtocolLabel.countProtocolLabels() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocollabels", ProtocolLabel.findAllProtocolLabels(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "protocollabels/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ProtocolLabelController.update(@Valid ProtocolLabel protocolLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, protocolLabel); - return "protocollabels/update"; - } - uiModel.asMap().clear(); - protocolLabel.merge(); - return "redirect:/protocollabels/" + encodeUrlPathSegment(protocolLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ProtocolLabelController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ProtocolLabel.findProtocolLabel(id)); - return "protocollabels/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ProtocolLabelController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ProtocolLabel protocolLabel = ProtocolLabel.findProtocolLabel(id); - protocolLabel.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/protocollabels"; - } - - void ProtocolLabelController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("protocolLabel_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("protocolLabel_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ProtocolLabelController.populateEditForm(Model uiModel, ProtocolLabel protocolLabel) { - uiModel.addAttribute("protocolLabel", protocolLabel); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("protocols", Protocol.findAllProtocols()); - } - - String ProtocolLabelController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller_Finder.aj deleted file mode 100755 index c7c741511..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,97 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.domain.ProtocolLabel; -import com.labsynch.labseer.web.ProtocolLabelController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ProtocolLabelController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLabelTextEqualsAndIgnoredNot", "form" }, method = RequestMethod.GET) - public String ProtocolLabelController.findProtocolLabelsByLabelTextEqualsAndIgnoredNotForm(Model uiModel) { - return "protocollabels/findProtocolLabelsByLabelTextEqualsAndIgnoredNot"; - } - - @RequestMapping(params = "find=ByLabelTextEqualsAndIgnoredNot", method = RequestMethod.GET) - public String ProtocolLabelController.findProtocolLabelsByLabelTextEqualsAndIgnoredNot(@RequestParam("labelText") String labelText, @RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocollabels", ProtocolLabel.findProtocolLabelsByLabelTextEqualsAndIgnoredNot(labelText, ignored, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ProtocolLabel.countFindProtocolLabelsByLabelTextEqualsAndIgnoredNot(labelText, ignored) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocollabels", ProtocolLabel.findProtocolLabelsByLabelTextEqualsAndIgnoredNot(labelText, ignored, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocollabels/list"; - } - - @RequestMapping(params = { "find=ByLabelTextLike", "form" }, method = RequestMethod.GET) - public String ProtocolLabelController.findProtocolLabelsByLabelTextLikeForm(Model uiModel) { - return "protocollabels/findProtocolLabelsByLabelTextLike"; - } - - @RequestMapping(params = "find=ByLabelTextLike", method = RequestMethod.GET) - public String ProtocolLabelController.findProtocolLabelsByLabelTextLike(@RequestParam("labelText") String labelText, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocollabels", ProtocolLabel.findProtocolLabelsByLabelTextLike(labelText, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ProtocolLabel.countFindProtocolLabelsByLabelTextLike(labelText) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocollabels", ProtocolLabel.findProtocolLabelsByLabelTextLike(labelText, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocollabels/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String ProtocolLabelController.findProtocolLabelsByLsTransactionEqualsForm(Model uiModel) { - return "protocollabels/findProtocolLabelsByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String ProtocolLabelController.findProtocolLabelsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocollabels", ProtocolLabel.findProtocolLabelsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ProtocolLabel.countFindProtocolLabelsByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocollabels", ProtocolLabel.findProtocolLabelsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocollabels/list"; - } - - @RequestMapping(params = { "find=ByProtocol", "form" }, method = RequestMethod.GET) - public String ProtocolLabelController.findProtocolLabelsByProtocolForm(Model uiModel) { - uiModel.addAttribute("protocols", Protocol.findAllProtocols()); - return "protocollabels/findProtocolLabelsByProtocol"; - } - - @RequestMapping(params = "find=ByProtocol", method = RequestMethod.GET) - public String ProtocolLabelController.findProtocolLabelsByProtocol(@RequestParam("protocol") Protocol protocol, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocollabels", ProtocolLabel.findProtocolLabelsByProtocol(protocol, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ProtocolLabel.countFindProtocolLabelsByProtocol(protocol) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocollabels", ProtocolLabel.findProtocolLabelsByProtocol(protocol, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocollabels/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller_Json.aj deleted file mode 100755 index 41c709b05..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolLabelController_Roo_Controller_Json.aj +++ /dev/null @@ -1,161 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.domain.ProtocolLabel; -import com.labsynch.labseer.web.ProtocolLabelController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ProtocolLabelController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolLabelController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ProtocolLabel protocolLabel = ProtocolLabel.findProtocolLabel(id); - if (protocolLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(protocolLabel.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolLabelController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ProtocolLabel.findAllProtocolLabels(); - return new ResponseEntity(ProtocolLabel.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ProtocolLabelController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolLabel protocolLabel = ProtocolLabel.fromJsonToProtocolLabel(json); - protocolLabel.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+protocolLabel.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ProtocolLabelController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ProtocolLabel protocolLabel: ProtocolLabel.fromJsonArrayToProtocolLabels(json)) { - protocolLabel.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ProtocolLabelController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolLabel protocolLabel = ProtocolLabel.fromJsonToProtocolLabel(json); - protocolLabel.setId(id); - if (protocolLabel.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ProtocolLabelController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolLabel protocolLabel = ProtocolLabel.findProtocolLabel(id); - if (protocolLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - protocolLabel.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLabelTextEqualsAndIgnoredNot", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolLabelController.jsonFindProtocolLabelsByLabelTextEqualsAndIgnoredNot(@RequestParam("labelText") String labelText, @RequestParam(value = "ignored", required = false) boolean ignored) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ProtocolLabel.toJsonArray(ProtocolLabel.findProtocolLabelsByLabelTextEqualsAndIgnoredNot(labelText, ignored).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLabelTextLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolLabelController.jsonFindProtocolLabelsByLabelTextLike(@RequestParam("labelText") String labelText) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ProtocolLabel.toJsonArray(ProtocolLabel.findProtocolLabelsByLabelTextLike(labelText).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolLabelController.jsonFindProtocolLabelsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ProtocolLabel.toJsonArray(ProtocolLabel.findProtocolLabelsByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByProtocol", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolLabelController.jsonFindProtocolLabelsByProtocol(@RequestParam("protocol") Protocol protocol) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ProtocolLabel.toJsonArray(ProtocolLabel.findProtocolLabelsByProtocol(protocol).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolStateController.java b/src/main/java/com/labsynch/labseer/web/ProtocolStateController.java deleted file mode 100755 index 947119412..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolStateController.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.domain.ProtocolState; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.apache.commons.io.IOUtils; -import org.joda.time.format.DateTimeFormat; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -@RooWebJson(jsonObject = ProtocolState.class) -@Controller -@RequestMapping("/protocolstates") -@RooWebScaffold(path = "protocolstates", formBackingObject = ProtocolState.class) -@RooWebFinder -@Transactional -public class ProtocolStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller.aj deleted file mode 100644 index b2b5744f4..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller.aj +++ /dev/null @@ -1,121 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.domain.ProtocolState; -import com.labsynch.labseer.domain.ProtocolValue; -import com.labsynch.labseer.web.ProtocolStateController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ProtocolStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ProtocolStateController.create(@Valid ProtocolState protocolState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, protocolState); - return "protocolstates/create"; - } - uiModel.asMap().clear(); - protocolState.persist(); - return "redirect:/protocolstates/" + encodeUrlPathSegment(protocolState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ProtocolStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new ProtocolState()); - List dependencies = new ArrayList(); - if (Protocol.countProtocols() == 0) { - dependencies.add(new String[] { "protocol", "protocols" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "protocolstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ProtocolStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("protocolstate", ProtocolState.findProtocolState(id)); - uiModel.addAttribute("itemId", id); - return "protocolstates/show"; - } - - @RequestMapping(produces = "text/html") - public String ProtocolStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocolstates", ProtocolState.findProtocolStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ProtocolState.countProtocolStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocolstates", ProtocolState.findAllProtocolStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "protocolstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ProtocolStateController.update(@Valid ProtocolState protocolState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, protocolState); - return "protocolstates/update"; - } - uiModel.asMap().clear(); - protocolState.merge(); - return "redirect:/protocolstates/" + encodeUrlPathSegment(protocolState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ProtocolStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ProtocolState.findProtocolState(id)); - return "protocolstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ProtocolStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ProtocolState protocolState = ProtocolState.findProtocolState(id); - protocolState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/protocolstates"; - } - - void ProtocolStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("protocolState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("protocolState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ProtocolStateController.populateEditForm(Model uiModel, ProtocolState protocolState) { - uiModel.addAttribute("protocolState", protocolState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("protocols", Protocol.findAllProtocols()); - uiModel.addAttribute("protocolvalues", ProtocolValue.findAllProtocolValues()); - } - - String ProtocolStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller_Finder.aj deleted file mode 100755 index 37f791bb2..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,57 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.domain.ProtocolState; -import com.labsynch.labseer.web.ProtocolStateController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ProtocolStateController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String ProtocolStateController.findProtocolStatesByLsTransactionEqualsForm(Model uiModel) { - return "protocolstates/findProtocolStatesByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String ProtocolStateController.findProtocolStatesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocolstates", ProtocolState.findProtocolStatesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ProtocolState.countFindProtocolStatesByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocolstates", ProtocolState.findProtocolStatesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocolstates/list"; - } - - @RequestMapping(params = { "find=ByProtocol", "form" }, method = RequestMethod.GET) - public String ProtocolStateController.findProtocolStatesByProtocolForm(Model uiModel) { - uiModel.addAttribute("protocols", Protocol.findAllProtocols()); - return "protocolstates/findProtocolStatesByProtocol"; - } - - @RequestMapping(params = "find=ByProtocol", method = RequestMethod.GET) - public String ProtocolStateController.findProtocolStatesByProtocol(@RequestParam("protocol") Protocol protocol, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocolstates", ProtocolState.findProtocolStatesByProtocol(protocol, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ProtocolState.countFindProtocolStatesByProtocol(protocol) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocolstates", ProtocolState.findProtocolStatesByProtocol(protocol, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocolstates/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller_Json.aj deleted file mode 100755 index 112aef33d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolStateController_Roo_Controller_Json.aj +++ /dev/null @@ -1,137 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Protocol; -import com.labsynch.labseer.domain.ProtocolState; -import com.labsynch.labseer.web.ProtocolStateController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ProtocolStateController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolStateController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ProtocolState protocolState = ProtocolState.findProtocolState(id); - if (protocolState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(protocolState.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolStateController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ProtocolState.findAllProtocolStates(); - return new ResponseEntity(ProtocolState.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ProtocolStateController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolState protocolState = ProtocolState.fromJsonToProtocolState(json); - protocolState.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+protocolState.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ProtocolStateController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ProtocolState protocolState: ProtocolState.fromJsonArrayToProtocolStates(json)) { - protocolState.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ProtocolStateController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolState protocolState = ProtocolState.fromJsonToProtocolState(json); - protocolState.setId(id); - if (protocolState.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ProtocolStateController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolState protocolState = ProtocolState.findProtocolState(id); - if (protocolState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - protocolState.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolStateController.jsonFindProtocolStatesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ProtocolState.toJsonArray(ProtocolState.findProtocolStatesByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByProtocol", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolStateController.jsonFindProtocolStatesByProtocol(@RequestParam("protocol") Protocol protocol) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ProtocolState.toJsonArray(ProtocolState.findProtocolStatesByProtocol(protocol).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolTypeController.java b/src/main/java/com/labsynch/labseer/web/ProtocolTypeController.java deleted file mode 100755 index 8667eb76e..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolTypeController.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ProtocolType; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RequestMapping("/protocoltypes") -@Controller -@RooWebScaffold(path = "protocoltypes", formBackingObject = ProtocolType.class) -@RooWebJson(jsonObject = ProtocolType.class) -@RooWebFinder -public class ProtocolTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller.aj deleted file mode 100755 index 4df1e40d9..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ProtocolType; -import com.labsynch.labseer.web.ProtocolTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ProtocolTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ProtocolTypeController.create(@Valid ProtocolType protocolType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, protocolType); - return "protocoltypes/create"; - } - uiModel.asMap().clear(); - protocolType.persist(); - return "redirect:/protocoltypes/" + encodeUrlPathSegment(protocolType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ProtocolTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new ProtocolType()); - return "protocoltypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ProtocolTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("protocoltype", ProtocolType.findProtocolType(id)); - uiModel.addAttribute("itemId", id); - return "protocoltypes/show"; - } - - @RequestMapping(produces = "text/html") - public String ProtocolTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocoltypes", ProtocolType.findProtocolTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ProtocolType.countProtocolTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocoltypes", ProtocolType.findAllProtocolTypes(sortFieldName, sortOrder)); - } - return "protocoltypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ProtocolTypeController.update(@Valid ProtocolType protocolType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, protocolType); - return "protocoltypes/update"; - } - uiModel.asMap().clear(); - protocolType.merge(); - return "redirect:/protocoltypes/" + encodeUrlPathSegment(protocolType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ProtocolTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ProtocolType.findProtocolType(id)); - return "protocoltypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ProtocolTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ProtocolType protocolType = ProtocolType.findProtocolType(id); - protocolType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/protocoltypes"; - } - - void ProtocolTypeController.populateEditForm(Model uiModel, ProtocolType protocolType) { - uiModel.addAttribute("protocolType", protocolType); - } - - String ProtocolTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller_Finder.aj deleted file mode 100755 index ee99b61f4..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ProtocolType; -import com.labsynch.labseer.web.ProtocolTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ProtocolTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByTypeNameEquals", "form" }, method = RequestMethod.GET) - public String ProtocolTypeController.findProtocolTypesByTypeNameEqualsForm(Model uiModel) { - return "protocoltypes/findProtocolTypesByTypeNameEquals"; - } - - @RequestMapping(params = "find=ByTypeNameEquals", method = RequestMethod.GET) - public String ProtocolTypeController.findProtocolTypesByTypeNameEquals(@RequestParam("typeName") String typeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocoltypes", ProtocolType.findProtocolTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ProtocolType.countFindProtocolTypesByTypeNameEquals(typeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocoltypes", ProtocolType.findProtocolTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).getResultList()); - } - return "protocoltypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller_Json.aj deleted file mode 100755 index 686ed407f..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ProtocolType; -import com.labsynch.labseer.web.ProtocolTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ProtocolTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ProtocolType protocolType = ProtocolType.findProtocolType(id); - if (protocolType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(protocolType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ProtocolType.findAllProtocolTypes(); - return new ResponseEntity(ProtocolType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ProtocolTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolType protocolType = ProtocolType.fromJsonToProtocolType(json); - protocolType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+protocolType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ProtocolTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ProtocolType protocolType: ProtocolType.fromJsonArrayToProtocolTypes(json)) { - protocolType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ProtocolTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolType protocolType = ProtocolType.fromJsonToProtocolType(json); - protocolType.setId(id); - if (protocolType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ProtocolTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolType protocolType = ProtocolType.findProtocolType(id); - if (protocolType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - protocolType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolTypeController.jsonFindProtocolTypesByTypeNameEquals(@RequestParam("typeName") String typeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ProtocolType.toJsonArray(ProtocolType.findProtocolTypesByTypeNameEquals(typeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolValueController.java b/src/main/java/com/labsynch/labseer/web/ProtocolValueController.java deleted file mode 100755 index 3c1242327..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolValueController.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ProtocolState; -import com.labsynch.labseer.domain.ProtocolValue; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.apache.commons.io.IOUtils; -import org.joda.time.format.DateTimeFormat; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -@RooWebJson(jsonObject = ProtocolValue.class) -@Controller -@RequestMapping("/protocolvalues") -@RooWebScaffold(path = "protocolvalues", formBackingObject = ProtocolValue.class) -@RooWebFinder -@Transactional -public class ProtocolValueController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller.aj deleted file mode 100644 index 32e03e257..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller.aj +++ /dev/null @@ -1,120 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ProtocolState; -import com.labsynch.labseer.domain.ProtocolValue; -import com.labsynch.labseer.web.ProtocolValueController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ProtocolValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ProtocolValueController.create(@Valid ProtocolValue protocolValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, protocolValue); - return "protocolvalues/create"; - } - uiModel.asMap().clear(); - protocolValue.persist(); - return "redirect:/protocolvalues/" + encodeUrlPathSegment(protocolValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ProtocolValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new ProtocolValue()); - List dependencies = new ArrayList(); - if (ProtocolState.countProtocolStates() == 0) { - dependencies.add(new String[] { "lsState", "protocolstates" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "protocolvalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ProtocolValueController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("protocolvalue", ProtocolValue.findProtocolValue(id)); - uiModel.addAttribute("itemId", id); - return "protocolvalues/show"; - } - - @RequestMapping(produces = "text/html") - public String ProtocolValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocolvalues", ProtocolValue.findProtocolValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ProtocolValue.countProtocolValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocolvalues", ProtocolValue.findAllProtocolValues(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "protocolvalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ProtocolValueController.update(@Valid ProtocolValue protocolValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, protocolValue); - return "protocolvalues/update"; - } - uiModel.asMap().clear(); - protocolValue.merge(); - return "redirect:/protocolvalues/" + encodeUrlPathSegment(protocolValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ProtocolValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ProtocolValue.findProtocolValue(id)); - return "protocolvalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ProtocolValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ProtocolValue protocolValue = ProtocolValue.findProtocolValue(id); - protocolValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/protocolvalues"; - } - - void ProtocolValueController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("protocolValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("protocolValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("protocolValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ProtocolValueController.populateEditForm(Model uiModel, ProtocolValue protocolValue) { - uiModel.addAttribute("protocolValue", protocolValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("protocolstates", ProtocolState.findAllProtocolStates()); - } - - String ProtocolValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller_Finder.aj deleted file mode 100755 index 05146a8af..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,97 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ProtocolState; -import com.labsynch.labseer.domain.ProtocolValue; -import com.labsynch.labseer.web.ProtocolValueController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ProtocolValueController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLsKindEqualsAndCodeValueLike", "form" }, method = RequestMethod.GET) - public String ProtocolValueController.findProtocolValuesByLsKindEqualsAndCodeValueLikeForm(Model uiModel) { - return "protocolvalues/findProtocolValuesByLsKindEqualsAndCodeValueLike"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndCodeValueLike", method = RequestMethod.GET) - public String ProtocolValueController.findProtocolValuesByLsKindEqualsAndCodeValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("codeValue") String codeValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocolvalues", ProtocolValue.findProtocolValuesByLsKindEqualsAndCodeValueLike(lsKind, codeValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ProtocolValue.countFindProtocolValuesByLsKindEqualsAndCodeValueLike(lsKind, codeValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocolvalues", ProtocolValue.findProtocolValuesByLsKindEqualsAndCodeValueLike(lsKind, codeValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocolvalues/list"; - } - - @RequestMapping(params = { "find=ByLsKindEqualsAndStringValueLike", "form" }, method = RequestMethod.GET) - public String ProtocolValueController.findProtocolValuesByLsKindEqualsAndStringValueLikeForm(Model uiModel) { - return "protocolvalues/findProtocolValuesByLsKindEqualsAndStringValueLike"; - } - - @RequestMapping(params = "find=ByLsKindEqualsAndStringValueLike", method = RequestMethod.GET) - public String ProtocolValueController.findProtocolValuesByLsKindEqualsAndStringValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("stringValue") String stringValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocolvalues", ProtocolValue.findProtocolValuesByLsKindEqualsAndStringValueLike(lsKind, stringValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ProtocolValue.countFindProtocolValuesByLsKindEqualsAndStringValueLike(lsKind, stringValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocolvalues", ProtocolValue.findProtocolValuesByLsKindEqualsAndStringValueLike(lsKind, stringValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocolvalues/list"; - } - - @RequestMapping(params = { "find=ByLsState", "form" }, method = RequestMethod.GET) - public String ProtocolValueController.findProtocolValuesByLsStateForm(Model uiModel) { - uiModel.addAttribute("protocolstates", ProtocolState.findAllProtocolStates()); - return "protocolvalues/findProtocolValuesByLsState"; - } - - @RequestMapping(params = "find=ByLsState", method = RequestMethod.GET) - public String ProtocolValueController.findProtocolValuesByLsState(@RequestParam("lsState") ProtocolState lsState, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocolvalues", ProtocolValue.findProtocolValuesByLsState(lsState, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ProtocolValue.countFindProtocolValuesByLsState(lsState) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocolvalues", ProtocolValue.findProtocolValuesByLsState(lsState, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocolvalues/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String ProtocolValueController.findProtocolValuesByLsTransactionEqualsForm(Model uiModel) { - return "protocolvalues/findProtocolValuesByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String ProtocolValueController.findProtocolValuesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("protocolvalues", ProtocolValue.findProtocolValuesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ProtocolValue.countFindProtocolValuesByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("protocolvalues", ProtocolValue.findProtocolValuesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "protocolvalues/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller_Json.aj deleted file mode 100755 index e6610cabf..000000000 --- a/src/main/java/com/labsynch/labseer/web/ProtocolValueController_Roo_Controller_Json.aj +++ /dev/null @@ -1,161 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ProtocolState; -import com.labsynch.labseer.domain.ProtocolValue; -import com.labsynch.labseer.web.ProtocolValueController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ProtocolValueController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolValueController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ProtocolValue protocolValue = ProtocolValue.findProtocolValue(id); - if (protocolValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(protocolValue.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolValueController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ProtocolValue.findAllProtocolValues(); - return new ResponseEntity(ProtocolValue.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ProtocolValueController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolValue protocolValue = ProtocolValue.fromJsonToProtocolValue(json); - protocolValue.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+protocolValue.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ProtocolValueController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ProtocolValue protocolValue: ProtocolValue.fromJsonArrayToProtocolValues(json)) { - protocolValue.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ProtocolValueController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolValue protocolValue = ProtocolValue.fromJsonToProtocolValue(json); - protocolValue.setId(id); - if (protocolValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ProtocolValueController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ProtocolValue protocolValue = ProtocolValue.findProtocolValue(id); - if (protocolValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - protocolValue.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndCodeValueLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolValueController.jsonFindProtocolValuesByLsKindEqualsAndCodeValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("codeValue") String codeValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ProtocolValue.toJsonArray(ProtocolValue.findProtocolValuesByLsKindEqualsAndCodeValueLike(lsKind, codeValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsKindEqualsAndStringValueLike", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolValueController.jsonFindProtocolValuesByLsKindEqualsAndStringValueLike(@RequestParam("lsKind") String lsKind, @RequestParam("stringValue") String stringValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ProtocolValue.toJsonArray(ProtocolValue.findProtocolValuesByLsKindEqualsAndStringValueLike(lsKind, stringValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsState", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolValueController.jsonFindProtocolValuesByLsState(@RequestParam("lsState") ProtocolState lsState) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ProtocolValue.toJsonArray(ProtocolValue.findProtocolValuesByLsState(lsState).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ProtocolValueController.jsonFindProtocolValuesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ProtocolValue.toJsonArray(ProtocolValue.findProtocolValuesByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/RequestNameDTOController.java b/src/main/java/com/labsynch/labseer/web/RequestNameDTOController.java deleted file mode 100755 index 632ccf4dc..000000000 --- a/src/main/java/com/labsynch/labseer/web/RequestNameDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.RequestNameDTO; - -@RooWebJson(jsonObject = RequestNameDTO.class) -@Controller -@RequestMapping("/requestnamedto") -public class RequestNameDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/RoleKindController.java b/src/main/java/com/labsynch/labseer/web/RoleKindController.java deleted file mode 100644 index 006735ccb..000000000 --- a/src/main/java/com/labsynch/labseer/web/RoleKindController.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.RoleKind; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; - -@RooWebJson(jsonObject = RoleKind.class) -@Controller -@RequestMapping("/rolekinds") -@RooWebScaffold(path = "rolekinds", formBackingObject = RoleKind.class) -@RooWebFinder -public class RoleKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller.aj deleted file mode 100644 index ea3e9d7b7..000000000 --- a/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.RoleKind; -import com.labsynch.labseer.domain.RoleType; -import com.labsynch.labseer.web.RoleKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect RoleKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String RoleKindController.create(@Valid RoleKind roleKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, roleKind); - return "rolekinds/create"; - } - uiModel.asMap().clear(); - roleKind.persist(); - return "redirect:/rolekinds/" + encodeUrlPathSegment(roleKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String RoleKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new RoleKind()); - List dependencies = new ArrayList(); - if (RoleType.countRoleTypes() == 0) { - dependencies.add(new String[] { "lsType", "roletypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "rolekinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String RoleKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("rolekind", RoleKind.findRoleKind(id)); - uiModel.addAttribute("itemId", id); - return "rolekinds/show"; - } - - @RequestMapping(produces = "text/html") - public String RoleKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("rolekinds", RoleKind.findRoleKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) RoleKind.countRoleKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("rolekinds", RoleKind.findAllRoleKinds(sortFieldName, sortOrder)); - } - return "rolekinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String RoleKindController.update(@Valid RoleKind roleKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, roleKind); - return "rolekinds/update"; - } - uiModel.asMap().clear(); - roleKind.merge(); - return "redirect:/rolekinds/" + encodeUrlPathSegment(roleKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String RoleKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, RoleKind.findRoleKind(id)); - return "rolekinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String RoleKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - RoleKind roleKind = RoleKind.findRoleKind(id); - roleKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/rolekinds"; - } - - void RoleKindController.populateEditForm(Model uiModel, RoleKind roleKind) { - uiModel.addAttribute("roleKind", roleKind); - uiModel.addAttribute("roletypes", RoleType.findAllRoleTypes()); - } - - String RoleKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller_Finder.aj deleted file mode 100644 index a1281b744..000000000 --- a/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,56 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.RoleKind; -import com.labsynch.labseer.domain.RoleType; -import com.labsynch.labseer.web.RoleKindController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect RoleKindController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByKindNameEqualsAndLsType", "form" }, method = RequestMethod.GET) - public String RoleKindController.findRoleKindsByKindNameEqualsAndLsTypeForm(Model uiModel) { - uiModel.addAttribute("roletypes", RoleType.findAllRoleTypes()); - return "rolekinds/findRoleKindsByKindNameEqualsAndLsType"; - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", method = RequestMethod.GET) - public String RoleKindController.findRoleKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") RoleType lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("rolekinds", RoleKind.findRoleKindsByKindNameEqualsAndLsType(kindName, lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) RoleKind.countFindRoleKindsByKindNameEqualsAndLsType(kindName, lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("rolekinds", RoleKind.findRoleKindsByKindNameEqualsAndLsType(kindName, lsType, sortFieldName, sortOrder).getResultList()); - } - return "rolekinds/list"; - } - - @RequestMapping(params = { "find=ByLsType", "form" }, method = RequestMethod.GET) - public String RoleKindController.findRoleKindsByLsTypeForm(Model uiModel) { - uiModel.addAttribute("roletypes", RoleType.findAllRoleTypes()); - return "rolekinds/findRoleKindsByLsType"; - } - - @RequestMapping(params = "find=ByLsType", method = RequestMethod.GET) - public String RoleKindController.findRoleKindsByLsType(@RequestParam("lsType") RoleType lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("rolekinds", RoleKind.findRoleKindsByLsType(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) RoleKind.countFindRoleKindsByLsType(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("rolekinds", RoleKind.findRoleKindsByLsType(lsType, sortFieldName, sortOrder).getResultList()); - } - return "rolekinds/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller_Json.aj deleted file mode 100644 index f544f3883..000000000 --- a/src/main/java/com/labsynch/labseer/web/RoleKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,137 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.RoleKind; -import com.labsynch.labseer.domain.RoleType; -import com.labsynch.labseer.web.RoleKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect RoleKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity RoleKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - RoleKind roleKind = RoleKind.findRoleKind(id); - if (roleKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(roleKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity RoleKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = RoleKind.findAllRoleKinds(); - return new ResponseEntity(RoleKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity RoleKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - RoleKind roleKind = RoleKind.fromJsonToRoleKind(json); - roleKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+roleKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity RoleKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (RoleKind roleKind: RoleKind.fromJsonArrayToRoleKinds(json)) { - roleKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity RoleKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - RoleKind roleKind = RoleKind.fromJsonToRoleKind(json); - roleKind.setId(id); - if (roleKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity RoleKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - RoleKind roleKind = RoleKind.findRoleKind(id); - if (roleKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - roleKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity RoleKindController.jsonFindRoleKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") RoleType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(RoleKind.toJsonArray(RoleKind.findRoleKindsByKindNameEqualsAndLsType(kindName, lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity RoleKindController.jsonFindRoleKindsByLsType(@RequestParam("lsType") RoleType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(RoleKind.toJsonArray(RoleKind.findRoleKindsByLsType(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/RoleTypeController.java b/src/main/java/com/labsynch/labseer/web/RoleTypeController.java deleted file mode 100644 index db24767f8..000000000 --- a/src/main/java/com/labsynch/labseer/web/RoleTypeController.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.RoleType; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; - -@RooWebJson(jsonObject = RoleType.class) -@Controller -@RequestMapping("/roletypes") -@RooWebScaffold(path = "roletypes", formBackingObject = RoleType.class) -@RooWebFinder -public class RoleTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller.aj deleted file mode 100644 index 00395a75d..000000000 --- a/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.RoleType; -import com.labsynch.labseer.web.RoleTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect RoleTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String RoleTypeController.create(@Valid RoleType roleType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, roleType); - return "roletypes/create"; - } - uiModel.asMap().clear(); - roleType.persist(); - return "redirect:/roletypes/" + encodeUrlPathSegment(roleType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String RoleTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new RoleType()); - return "roletypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String RoleTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("roletype", RoleType.findRoleType(id)); - uiModel.addAttribute("itemId", id); - return "roletypes/show"; - } - - @RequestMapping(produces = "text/html") - public String RoleTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("roletypes", RoleType.findRoleTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) RoleType.countRoleTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("roletypes", RoleType.findAllRoleTypes(sortFieldName, sortOrder)); - } - return "roletypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String RoleTypeController.update(@Valid RoleType roleType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, roleType); - return "roletypes/update"; - } - uiModel.asMap().clear(); - roleType.merge(); - return "redirect:/roletypes/" + encodeUrlPathSegment(roleType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String RoleTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, RoleType.findRoleType(id)); - return "roletypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String RoleTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - RoleType roleType = RoleType.findRoleType(id); - roleType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/roletypes"; - } - - void RoleTypeController.populateEditForm(Model uiModel, RoleType roleType) { - uiModel.addAttribute("roleType", roleType); - } - - String RoleTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller_Finder.aj deleted file mode 100644 index 2d8d6f820..000000000 --- a/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.RoleType; -import com.labsynch.labseer.web.RoleTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect RoleTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByTypeNameEquals", "form" }, method = RequestMethod.GET) - public String RoleTypeController.findRoleTypesByTypeNameEqualsForm(Model uiModel) { - return "roletypes/findRoleTypesByTypeNameEquals"; - } - - @RequestMapping(params = "find=ByTypeNameEquals", method = RequestMethod.GET) - public String RoleTypeController.findRoleTypesByTypeNameEquals(@RequestParam("typeName") String typeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("roletypes", RoleType.findRoleTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) RoleType.countFindRoleTypesByTypeNameEquals(typeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("roletypes", RoleType.findRoleTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).getResultList()); - } - return "roletypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller_Json.aj deleted file mode 100644 index 7d44618a7..000000000 --- a/src/main/java/com/labsynch/labseer/web/RoleTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.RoleType; -import com.labsynch.labseer.web.RoleTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect RoleTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity RoleTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - RoleType roleType = RoleType.findRoleType(id); - if (roleType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(roleType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity RoleTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = RoleType.findAllRoleTypes(); - return new ResponseEntity(RoleType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity RoleTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - RoleType roleType = RoleType.fromJsonToRoleType(json); - roleType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+roleType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity RoleTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (RoleType roleType: RoleType.fromJsonArrayToRoleTypes(json)) { - roleType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity RoleTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - RoleType roleType = RoleType.fromJsonToRoleType(json); - roleType.setId(id); - if (roleType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity RoleTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - RoleType roleType = RoleType.findRoleType(id); - if (roleType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - roleType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity RoleTypeController.jsonFindRoleTypesByTypeNameEquals(@RequestParam("typeName") String typeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(RoleType.toJsonArray(RoleType.findRoleTypesByTypeNameEquals(typeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormAliasController.java b/src/main/java/com/labsynch/labseer/web/SaltFormAliasController.java deleted file mode 100644 index e1020c845..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltFormAliasController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; -import com.labsynch.labseer.domain.SaltFormAlias; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; - -@RequestMapping("/saltformaliases") -@Controller -@RooWebScaffold(path = "saltformaliases", formBackingObject = SaltFormAlias.class) -@RooWebFinder -public class SaltFormAliasController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormAliasController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SaltFormAliasController_Roo_Controller.aj deleted file mode 100644 index b781d59db..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltFormAliasController_Roo_Controller.aj +++ /dev/null @@ -1,102 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.domain.SaltFormAlias; -import com.labsynch.labseer.web.SaltFormAliasController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect SaltFormAliasController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String SaltFormAliasController.create(@Valid SaltFormAlias saltFormAlias, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, saltFormAlias); - return "saltformaliases/create"; - } - uiModel.asMap().clear(); - saltFormAlias.persist(); - return "redirect:/saltformaliases/" + encodeUrlPathSegment(saltFormAlias.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String SaltFormAliasController.createForm(Model uiModel) { - populateEditForm(uiModel, new SaltFormAlias()); - return "saltformaliases/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String SaltFormAliasController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("saltformalias", SaltFormAlias.findSaltFormAlias(id)); - uiModel.addAttribute("itemId", id); - return "saltformaliases/show"; - } - - @RequestMapping(produces = "text/html") - public String SaltFormAliasController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("saltformaliases", SaltFormAlias.findSaltFormAliasEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) SaltFormAlias.countSaltFormAliases() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("saltformaliases", SaltFormAlias.findAllSaltFormAliases(sortFieldName, sortOrder)); - } - return "saltformaliases/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String SaltFormAliasController.update(@Valid SaltFormAlias saltFormAlias, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, saltFormAlias); - return "saltformaliases/update"; - } - uiModel.asMap().clear(); - saltFormAlias.merge(); - return "redirect:/saltformaliases/" + encodeUrlPathSegment(saltFormAlias.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String SaltFormAliasController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, SaltFormAlias.findSaltFormAlias(id)); - return "saltformaliases/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String SaltFormAliasController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - SaltFormAlias saltFormAlias = SaltFormAlias.findSaltFormAlias(id); - saltFormAlias.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/saltformaliases"; - } - - void SaltFormAliasController.populateEditForm(Model uiModel, SaltFormAlias saltFormAlias) { - uiModel.addAttribute("saltFormAlias", saltFormAlias); - uiModel.addAttribute("saltforms", SaltForm.findAllSaltForms()); - } - - String SaltFormAliasController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormAliasController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/SaltFormAliasController_Roo_Controller_Finder.aj deleted file mode 100644 index 77b1749b3..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltFormAliasController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,55 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.domain.SaltFormAlias; -import com.labsynch.labseer.web.SaltFormAliasController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect SaltFormAliasController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String SaltFormAliasController.findSaltFormAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - return "saltformaliases/findSaltFormAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String SaltFormAliasController.findSaltFormAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(@RequestParam("aliasName") String aliasName, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("saltformaliases", SaltFormAlias.findSaltFormAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(aliasName, lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SaltFormAlias.countFindSaltFormAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(aliasName, lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("saltformaliases", SaltFormAlias.findSaltFormAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals(aliasName, lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - return "saltformaliases/list"; - } - - @RequestMapping(params = { "find=BySaltForm", "form" }, method = RequestMethod.GET) - public String SaltFormAliasController.findSaltFormAliasesBySaltFormForm(Model uiModel) { - uiModel.addAttribute("saltforms", SaltForm.findAllSaltForms()); - return "saltformaliases/findSaltFormAliasesBySaltForm"; - } - - @RequestMapping(params = "find=BySaltForm", method = RequestMethod.GET) - public String SaltFormAliasController.findSaltFormAliasesBySaltForm(@RequestParam("saltForm") SaltForm saltForm, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("saltformaliases", SaltFormAlias.findSaltFormAliasesBySaltForm(saltForm, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SaltFormAlias.countFindSaltFormAliasesBySaltForm(saltForm) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("saltformaliases", SaltFormAlias.findSaltFormAliasesBySaltForm(saltForm, sortFieldName, sortOrder).getResultList()); - } - return "saltformaliases/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormAliasKindController.java b/src/main/java/com/labsynch/labseer/web/SaltFormAliasKindController.java deleted file mode 100644 index 2a0ff195d..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltFormAliasKindController.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.labsynch.labseer.web; -import com.labsynch.labseer.domain.SaltFormAliasKind; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/saltformaliaskinds") -@Controller -@RooWebScaffold(path = "saltformaliaskinds", formBackingObject = SaltFormAliasKind.class) -public class SaltFormAliasKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormAliasKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SaltFormAliasKindController_Roo_Controller.aj deleted file mode 100644 index 39ca9c1af..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltFormAliasKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.SaltFormAliasKind; -import com.labsynch.labseer.domain.SaltFormAliasType; -import com.labsynch.labseer.web.SaltFormAliasKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect SaltFormAliasKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String SaltFormAliasKindController.create(@Valid SaltFormAliasKind saltFormAliasKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, saltFormAliasKind); - return "saltformaliaskinds/create"; - } - uiModel.asMap().clear(); - saltFormAliasKind.persist(); - return "redirect:/saltformaliaskinds/" + encodeUrlPathSegment(saltFormAliasKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String SaltFormAliasKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new SaltFormAliasKind()); - List dependencies = new ArrayList(); - if (SaltFormAliasType.countSaltFormAliasTypes() == 0) { - dependencies.add(new String[] { "lsType", "saltformaliastypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "saltformaliaskinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String SaltFormAliasKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("saltformaliaskind", SaltFormAliasKind.findSaltFormAliasKind(id)); - uiModel.addAttribute("itemId", id); - return "saltformaliaskinds/show"; - } - - @RequestMapping(produces = "text/html") - public String SaltFormAliasKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("saltformaliaskinds", SaltFormAliasKind.findSaltFormAliasKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) SaltFormAliasKind.countSaltFormAliasKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("saltformaliaskinds", SaltFormAliasKind.findAllSaltFormAliasKinds(sortFieldName, sortOrder)); - } - return "saltformaliaskinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String SaltFormAliasKindController.update(@Valid SaltFormAliasKind saltFormAliasKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, saltFormAliasKind); - return "saltformaliaskinds/update"; - } - uiModel.asMap().clear(); - saltFormAliasKind.merge(); - return "redirect:/saltformaliaskinds/" + encodeUrlPathSegment(saltFormAliasKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String SaltFormAliasKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, SaltFormAliasKind.findSaltFormAliasKind(id)); - return "saltformaliaskinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String SaltFormAliasKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - SaltFormAliasKind saltFormAliasKind = SaltFormAliasKind.findSaltFormAliasKind(id); - saltFormAliasKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/saltformaliaskinds"; - } - - void SaltFormAliasKindController.populateEditForm(Model uiModel, SaltFormAliasKind saltFormAliasKind) { - uiModel.addAttribute("saltFormAliasKind", saltFormAliasKind); - uiModel.addAttribute("saltformaliastypes", SaltFormAliasType.findAllSaltFormAliasTypes()); - } - - String SaltFormAliasKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormAliasTypeController.java b/src/main/java/com/labsynch/labseer/web/SaltFormAliasTypeController.java deleted file mode 100644 index 5cf0bb130..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltFormAliasTypeController.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.labsynch.labseer.web; -import com.labsynch.labseer.domain.SaltFormAliasType; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/saltformaliastypes") -@Controller -@RooWebScaffold(path = "saltformaliastypes", formBackingObject = SaltFormAliasType.class) -public class SaltFormAliasTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormAliasTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SaltFormAliasTypeController_Roo_Controller.aj deleted file mode 100644 index 008b1b5c8..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltFormAliasTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.SaltFormAliasType; -import com.labsynch.labseer.web.SaltFormAliasTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect SaltFormAliasTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String SaltFormAliasTypeController.create(@Valid SaltFormAliasType saltFormAliasType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, saltFormAliasType); - return "saltformaliastypes/create"; - } - uiModel.asMap().clear(); - saltFormAliasType.persist(); - return "redirect:/saltformaliastypes/" + encodeUrlPathSegment(saltFormAliasType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String SaltFormAliasTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new SaltFormAliasType()); - return "saltformaliastypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String SaltFormAliasTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("saltformaliastype", SaltFormAliasType.findSaltFormAliasType(id)); - uiModel.addAttribute("itemId", id); - return "saltformaliastypes/show"; - } - - @RequestMapping(produces = "text/html") - public String SaltFormAliasTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("saltformaliastypes", SaltFormAliasType.findSaltFormAliasTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) SaltFormAliasType.countSaltFormAliasTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("saltformaliastypes", SaltFormAliasType.findAllSaltFormAliasTypes(sortFieldName, sortOrder)); - } - return "saltformaliastypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String SaltFormAliasTypeController.update(@Valid SaltFormAliasType saltFormAliasType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, saltFormAliasType); - return "saltformaliastypes/update"; - } - uiModel.asMap().clear(); - saltFormAliasType.merge(); - return "redirect:/saltformaliastypes/" + encodeUrlPathSegment(saltFormAliasType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String SaltFormAliasTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, SaltFormAliasType.findSaltFormAliasType(id)); - return "saltformaliastypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String SaltFormAliasTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - SaltFormAliasType saltFormAliasType = SaltFormAliasType.findSaltFormAliasType(id); - saltFormAliasType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/saltformaliastypes"; - } - - void SaltFormAliasTypeController.populateEditForm(Model uiModel, SaltFormAliasType saltFormAliasType) { - uiModel.addAttribute("saltFormAliasType", saltFormAliasType); - } - - String SaltFormAliasTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormController.java b/src/main/java/com/labsynch/labseer/web/SaltFormController.java deleted file mode 100755 index 8fb83e215..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltFormController.java +++ /dev/null @@ -1,189 +0,0 @@ -package com.labsynch.labseer.web; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; -import com.labsynch.labseer.domain.IsoSalt; -import com.labsynch.labseer.domain.Lot; -import com.labsynch.labseer.domain.Parent; -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.exceptions.CmpdRegMolFormatException; -import com.labsynch.labseer.service.ChemStructureService; -import com.labsynch.labseer.service.ChemStructureService.StructureType; -import com.mysema.query.BooleanBuilder; -import com.mysema.query.types.path.PathBuilder; - -@RooWebScaffold(path = "saltforms", formBackingObject = SaltForm.class) -@RequestMapping("/saltforms") -@Controller -@Transactional - -@RooWebFinder -public class SaltFormController { - - private static final Logger logger = LoggerFactory.getLogger(SaltFormController.class); - - @Autowired - private ChemStructureService service; - - private SaltForm saveSaltFormStructure(SaltForm saltForm) { - int saltFormCdId = service.saveStructure(saltForm.getMolStructure(), StructureType.SALT_FORM); - saltForm.setCdId(saltFormCdId); - return saltForm; - } - - @RequestMapping(method = RequestMethod.POST) - public String create(@Valid SaltForm saltForm, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - uiModel.addAttribute("saltForm", saltForm); - return "saltforms/create"; - } - uiModel.asMap().clear(); - String molfile; - try { - molfile = service.toMolfile(saltForm.getMolStructure()); - saltForm.setMolStructure(molfile); - saltForm = this.saveSaltFormStructure(saltForm); - saltForm.persist(); - return "redirect:/saltforms/" + encodeUrlPathSegment(saltForm.getId().toString(), httpServletRequest); - } catch (CmpdRegMolFormatException e) { - return "redirect:/error"; - } - } - - @RequestMapping(params = "form", method = RequestMethod.GET) - public String createForm(Model uiModel) { - uiModel.addAttribute("saltForm", new SaltForm()); - return "saltforms/create"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - public String show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("saltform", SaltForm.findSaltForm(id)); - uiModel.addAttribute("itemId", id); - return "saltforms/show"; - } - - @RequestMapping(method = RequestMethod.GET) - public String list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - uiModel.addAttribute("saltforms", SaltForm.findSaltFormEntries(page == null ? 0 : (page.intValue() - 1) * sizeNo, sizeNo)); - float nrOfPages = (float) SaltForm.countSaltForms() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("saltforms", SaltForm.findSaltFormEntries(0, 10)); - } - return "saltforms/list"; - } - - @Transactional - @RequestMapping(method = RequestMethod.PUT) - public String update(@Valid SaltForm saltForm, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - logger.debug("binding error lajolla "); - uiModel.addAttribute("saltForm", saltForm); - Parent parent = saltForm.getParent(); - List parents = new ArrayList(); - parents.add(parent); - uiModel.addAttribute("parents", parents); - uiModel.addAttribute("parent", parent); - return "saltforms/update"; - } - uiModel.asMap().clear(); - saltForm.merge(); - return "redirect:/saltforms/" + encodeUrlPathSegment(saltForm.getId().toString(), httpServletRequest); - } - - @Transactional - @RequestMapping(value = "/{id}", params = "form", method = RequestMethod.GET) - public String updateForm(@PathVariable("id") Long id, Model uiModel) { - SaltForm saltForm = SaltForm.findSaltForm(id); - uiModel.addAttribute("saltForm", saltForm); - uiModel.addAttribute("itemId", id); - List isoSalts = new ArrayList(); - if (saltForm.getIsoSalts() != null) { - for (IsoSalt isoSalt : saltForm.getIsoSalts()) { - isoSalts.add(isoSalt); - } - uiModel.addAttribute("isosalts", isoSalts); - } - List lots = new ArrayList(); - if (saltForm.getLots() != null) { - for (Lot lot : saltForm.getLots()) { - lots.add(lot); - } - uiModel.addAttribute("lots", lots); - } - List parents = new ArrayList(); - if (saltForm.getParent() != null) { - Parent parent = Parent.findParent(saltForm.getParent().getId()); - parents.add(parent); - uiModel.addAttribute("parents", parents); - uiModel.addAttribute("parent", parent); - } - return "saltforms/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) - public String delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - SaltForm.findSaltForm(id).remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/saltforms"; - } - - // @ModelAttribute("isosalts") - // public Collection populateIsoSalts() { - // return IsoSalt.findIsoSaltEntries(0, 2); - // } - // - // @ModelAttribute("lots") - // public Collection populateLots() { - // return Lot.findLotEntries(0, 2); - // } - // - // @ModelAttribute("parents") - // public Collection populateParents() { - // return Parent.findParentEntries(0, 2); - // } - // - // @ModelAttribute("saltforms") - // public Collection populateSaltForms() { - // return SaltForm.findSaltFormEntries(0, 2); - // } - // - // @ModelAttribute("scientists") - // public Collection populateScientists() { - // return Scientist.findAllScientists(); - // } - String encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SaltFormController_Roo_Controller.aj deleted file mode 100644 index fe47f3982..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltFormController_Roo_Controller.aj +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.BulkLoadFile; -import com.labsynch.labseer.domain.IsoSalt; -import com.labsynch.labseer.domain.Lot; -import com.labsynch.labseer.domain.Parent; -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.web.SaltFormController; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; - -privileged aspect SaltFormController_Roo_Controller { - - void SaltFormController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("saltForm_registrationdate_date_format", DateTimeFormat.patternForStyle("S-", LocaleContextHolder.getLocale())); - } - - void SaltFormController.populateEditForm(Model uiModel, SaltForm saltForm) { - uiModel.addAttribute("saltForm", saltForm); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("bulkloadfiles", BulkLoadFile.findAllBulkLoadFiles()); - uiModel.addAttribute("isosalts", IsoSalt.findAllIsoSalts()); - uiModel.addAttribute("lots", Lot.findAllLots()); - uiModel.addAttribute("parents", Parent.findAllParents()); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltFormController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/SaltFormController_Roo_Controller_Finder.aj deleted file mode 100644 index c96cfe2c3..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltFormController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,119 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.BulkLoadFile; -import com.labsynch.labseer.domain.Parent; -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.web.SaltFormController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect SaltFormController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByBulkLoadFileEquals", "form" }, method = RequestMethod.GET) - public String SaltFormController.findSaltFormsByBulkLoadFileEqualsForm(Model uiModel) { - uiModel.addAttribute("bulkloadfiles", BulkLoadFile.findAllBulkLoadFiles()); - return "saltforms/findSaltFormsByBulkLoadFileEquals"; - } - - @RequestMapping(params = "find=ByBulkLoadFileEquals", method = RequestMethod.GET) - public String SaltFormController.findSaltFormsByBulkLoadFileEquals(@RequestParam("bulkLoadFile") BulkLoadFile bulkLoadFile, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("saltforms", SaltForm.findSaltFormsByBulkLoadFileEquals(bulkLoadFile, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SaltForm.countFindSaltFormsByBulkLoadFileEquals(bulkLoadFile) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("saltforms", SaltForm.findSaltFormsByBulkLoadFileEquals(bulkLoadFile, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "saltforms/list"; - } - - @RequestMapping(params = { "find=ByCdId", "form" }, method = RequestMethod.GET) - public String SaltFormController.findSaltFormsByCdIdForm(Model uiModel) { - return "saltforms/findSaltFormsByCdId"; - } - - @RequestMapping(params = "find=ByCdId", method = RequestMethod.GET) - public String SaltFormController.findSaltFormsByCdId(@RequestParam("cdId") int CdId, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("saltforms", SaltForm.findSaltFormsByCdId(CdId, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SaltForm.countFindSaltFormsByCdId(CdId) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("saltforms", SaltForm.findSaltFormsByCdId(CdId, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "saltforms/list"; - } - - @RequestMapping(params = { "find=ByCorpNameEquals", "form" }, method = RequestMethod.GET) - public String SaltFormController.findSaltFormsByCorpNameEqualsForm(Model uiModel) { - return "saltforms/findSaltFormsByCorpNameEquals"; - } - - @RequestMapping(params = "find=ByCorpNameEquals", method = RequestMethod.GET) - public String SaltFormController.findSaltFormsByCorpNameEquals(@RequestParam("corpName") String corpName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("saltforms", SaltForm.findSaltFormsByCorpNameEquals(corpName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SaltForm.countFindSaltFormsByCorpNameEquals(corpName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("saltforms", SaltForm.findSaltFormsByCorpNameEquals(corpName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "saltforms/list"; - } - - @RequestMapping(params = { "find=ByCorpNameLike", "form" }, method = RequestMethod.GET) - public String SaltFormController.findSaltFormsByCorpNameLikeForm(Model uiModel) { - return "saltforms/findSaltFormsByCorpNameLike"; - } - - @RequestMapping(params = "find=ByCorpNameLike", method = RequestMethod.GET) - public String SaltFormController.findSaltFormsByCorpNameLike(@RequestParam("corpName") String corpName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("saltforms", SaltForm.findSaltFormsByCorpNameLike(corpName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SaltForm.countFindSaltFormsByCorpNameLike(corpName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("saltforms", SaltForm.findSaltFormsByCorpNameLike(corpName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "saltforms/list"; - } - - @RequestMapping(params = { "find=ByParent", "form" }, method = RequestMethod.GET) - public String SaltFormController.findSaltFormsByParentForm(Model uiModel) { - uiModel.addAttribute("parents", Parent.findAllParents()); - return "saltforms/findSaltFormsByParent"; - } - - @RequestMapping(params = "find=ByParent", method = RequestMethod.GET) - public String SaltFormController.findSaltFormsByParent(@RequestParam("parent") Parent parent, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("saltforms", SaltForm.findSaltFormsByParent(parent, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SaltForm.countFindSaltFormsByParent(parent) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("saltforms", SaltForm.findSaltFormsByParent(parent, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "saltforms/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltLoaderController.java b/src/main/java/com/labsynch/labseer/web/SaltLoaderController.java deleted file mode 100755 index cb0b93dd6..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltLoaderController.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.labsynch.labseer.web; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import com.labsynch.labseer.service.SaltLoader; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; - -@RequestMapping("/saltloaders") -@Controller -@RooWebScaffold(path = "saltloaders", formBackingObject = SaltLoader.class) -public class SaltLoaderController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SaltLoaderController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SaltLoaderController_Roo_Controller.aj deleted file mode 100644 index 9000136ca..000000000 --- a/src/main/java/com/labsynch/labseer/web/SaltLoaderController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.service.SaltLoader; -import com.labsynch.labseer.web.SaltLoaderController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect SaltLoaderController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String SaltLoaderController.create(@Valid SaltLoader saltLoader, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, saltLoader); - return "saltloaders/create"; - } - uiModel.asMap().clear(); - saltLoader.persist(); - return "redirect:/saltloaders/" + encodeUrlPathSegment(saltLoader.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String SaltLoaderController.createForm(Model uiModel) { - populateEditForm(uiModel, new SaltLoader()); - return "saltloaders/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String SaltLoaderController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("saltloader", SaltLoader.findSaltLoader(id)); - uiModel.addAttribute("itemId", id); - return "saltloaders/show"; - } - - @RequestMapping(produces = "text/html") - public String SaltLoaderController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("saltloaders", SaltLoader.findSaltLoaderEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) SaltLoader.countSaltLoaders() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("saltloaders", SaltLoader.findAllSaltLoaders(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "saltloaders/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String SaltLoaderController.update(@Valid SaltLoader saltLoader, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, saltLoader); - return "saltloaders/update"; - } - uiModel.asMap().clear(); - saltLoader.merge(); - return "redirect:/saltloaders/" + encodeUrlPathSegment(saltLoader.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String SaltLoaderController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, SaltLoader.findSaltLoader(id)); - return "saltloaders/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String SaltLoaderController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - SaltLoader saltLoader = SaltLoader.findSaltLoader(id); - saltLoader.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/saltloaders"; - } - - void SaltLoaderController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("saltLoader_loadeddate_date_format", DateTimeFormat.patternForStyle("S-", LocaleContextHolder.getLocale())); - } - - void SaltLoaderController.populateEditForm(Model uiModel, SaltLoader saltLoader) { - uiModel.addAttribute("saltLoader", saltLoader); - addDateTimeFormatPatterns(uiModel); - } - - String SaltLoaderController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SetupDBController.java b/src/main/java/com/labsynch/labseer/web/SetupDBController.java deleted file mode 100755 index 881f8f5d2..000000000 --- a/src/main/java/com/labsynch/labseer/web/SetupDBController.java +++ /dev/null @@ -1,140 +0,0 @@ -package com.labsynch.labseer.web; - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.Date; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; - -import com.labsynch.labseer.chemclasses.CmpdRegMolecule; -import com.labsynch.labseer.chemclasses.CmpdRegMoleculeFactory; -import com.labsynch.labseer.chemclasses.CmpdRegSDFReader; -import com.labsynch.labseer.chemclasses.CmpdRegSDFReaderFactory; -import com.labsynch.labseer.domain.Lot; -import com.labsynch.labseer.domain.Parent; -import com.labsynch.labseer.domain.SaltForm; -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.domain.StereoCategory; -import com.labsynch.labseer.dto.Metalot; -import com.labsynch.labseer.dto.MetalotReturn; -import com.labsynch.labseer.exceptions.CmpdRegMolFormatException; -import com.labsynch.labseer.service.MetalotService; -import com.labsynch.labseer.service.SetupService; - -@RequestMapping("/adminsetup") -@Controller -public class SetupDBController { - - private static final Logger logger = LoggerFactory.getLogger(SetupDBController.class); - - @Autowired - private MetalotService metalotServ; - - @Autowired - private SetupService setupServ; - - @Autowired - CmpdRegMoleculeFactory cmpdRegMoleculeFactory; - - @Autowired - CmpdRegSDFReaderFactory sdfReaderFactory; - -// @RequestMapping(value = "loadplainsdf", method = RequestMethod.POST, headers = "Accept=application/json") -// public ResponseEntity loadCorpNames(@RequestBody String fileNamePath) { -// HttpHeaders headers= new HttpHeaders(); -// headers.add("Content-Type", "application/text"); -// -// try { -// setupServ.loadCorpNames(); -// } catch (FileNotFoundException e) { -// // TODO Auto-generated catch block -// e.printStackTrace(); -// return new ResponseEntity("error saving new corpNames. File not found.", headers, HttpStatus.INTERNAL_SERVER_ERROR); -// } -// -// return new ResponseEntity("saved new corpNames", headers, HttpStatus.OK); -// -// } -// - @RequestMapping(value = "loadplainsdf", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity loadCmpdsFromSDF(@RequestBody String fileNamePath) { - - //simple utility to load compounds without any properties - - String fileName = fileNamePath; - - int molCount = 0; - - // Open an input stream - try { - CmpdRegSDFReader mi = sdfReaderFactory.getCmpdRegSDFReader(fileName); - CmpdRegMolecule mol = null; - - while ((mol = mi.readNextMol()) != null) { - - Metalot metaLot = new Metalot(); - Lot lot = new Lot(); - SaltForm saltForm = new SaltForm(); - Parent parent = new Parent(); - - lot.setAsDrawnStruct(mol.getMolStructure()); - -// mol.clearExtraLabels(); - parent.setMolStructure(mol.getMolStructure()); - Author chemist = Author.findAuthorsByUserName("cchemist").getSingleResult(); - String noteBookInfo = "1234-123"; - StereoCategory stereoCategory = StereoCategory.findStereoCategorysByCodeEquals("achiral").getSingleResult(); - - parent.setChemist(chemist.getUserName()); - parent.setStereoCategory(stereoCategory); - - saltForm.setParent(parent); - saltForm.setChemist(chemist.getUserName()); - saltForm.setMolStructure(""); - - lot.setSynthesisDate(new Date()); - lot.setChemist(chemist.getUserName()); - lot.setNotebookPage(noteBookInfo); - lot.setSaltForm(saltForm); - lot.setLotMolWeight(mol.getMass()); - lot.setLotMolWeight(mol.getMass()); - lot.setIsVirtual(false); - - metaLot.setLot(lot); - - MetalotReturn results = metalotServ.save(metaLot); - logger.debug("lot saved: " + results.toJson()); - - molCount++; - } - - mi.close(); - - } catch (FileNotFoundException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (CmpdRegMolFormatException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - - HttpHeaders headers= new HttpHeaders(); - headers.add("Content-Type", "application/text"); - - return new ResponseEntity("saved " + molCount + " new structures", headers, HttpStatus.CREATED); - } - - -} diff --git a/src/main/java/com/labsynch/labseer/web/SignUpController.java b/src/main/java/com/labsynch/labseer/web/SignUpController.java deleted file mode 100755 index 40af4a7a6..000000000 --- a/src/main/java/com/labsynch/labseer/web/SignUpController.java +++ /dev/null @@ -1,170 +0,0 @@ -package com.labsynch.labseer.web; - -import java.io.UnsupportedEncodingException; -import java.security.NoSuchAlgorithmException; -import java.util.Date; -import java.util.Random; - -import javax.persistence.TypedQuery; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.mail.MailSender; -import org.springframework.mail.SimpleMailMessage; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -import com.labsynch.labseer.domain.Author; -import com.labsynch.labseer.domain.AuthorRole; -import com.labsynch.labseer.domain.LsRole; -import com.labsynch.labseer.service.AuthorService; -import com.labsynch.labseer.service.DatabaseAuthenticationProvider; -import com.labsynch.labseer.utils.PropertiesUtilService; - - -@RequestMapping("/signup/**") -@Controller -public class SignUpController { - - private static final Logger logger = LoggerFactory.getLogger(SignUpController.class); - - @Autowired - private PropertiesUtilService propertiesUtilService; - - @Autowired - private AuthorService authorService; - - @Autowired - private SignUpValidator validator; - - @Autowired - private transient MailSender mailSender; - - private transient SimpleMailMessage simpleMailMessage; - - @ModelAttribute("Author") - public UserRegistrationForm formBackingObject() { - return new UserRegistrationForm(); - } - - @RequestMapping(params = "form", method = RequestMethod.GET, produces = "text/html") - public String createForm(Model model) { - UserRegistrationForm form = new UserRegistrationForm(); - model.addAttribute("Author", form); - model.addAttribute("captcha_form",form.getReCaptchaHtml()); - return "signup/index"; - } - - @RequestMapping(params = "activate", method = RequestMethod.GET, produces = "text/html") - public String activateUser(@RequestParam(value = "activate", required = true) String activationKey, @RequestParam(value = "emailAddress", required = true) String emailAddress,Model model) { - TypedQuery query = Author.findAuthorsByActivationKeyAndEmailAddress(activationKey, emailAddress); - Author User=query.getSingleResult(); - if(null!=User){ - User.setActivationDate(new Date()); - User.setEnabled(true); - User.merge(); - String redirectUrl=propertiesUtilService.getClientPath(); - return "redirect:"+redirectUrl; - } - else{ - return "signup/error"; - } - - } - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String create(@Valid UserRegistrationForm userRegistration, BindingResult result, Model model, HttpServletRequest request) { - validator.validate(userRegistration, result); - if (result.hasErrors()) { - logger.error("validation errors " + result.toString()); - return createForm(model); - } else { - Random random = new Random(System.currentTimeMillis()); - String activationKey = "activationKey:" + random.nextInt(); - logger.info("activation key is :" + activationKey); - - Author author = new Author(); - author.setActivationDate(null); - author.setRecordedDate(new Date()); - author.setEmailAddress(userRegistration.getEmailAddress()); - author.setFirstName(userRegistration.getFirstName()); - author.setLastName(userRegistration.getLastName()); - author.setUserName(userRegistration.getUserName()); - - String encryptedPassword = null; - try { - encryptedPassword = DatabaseAuthenticationProvider.getBase64ShaHash(userRegistration.getPassword()); - } catch (NoSuchAlgorithmException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (UnsupportedEncodingException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } - author.setPassword(encryptedPassword); - - author.setActivationKey(activationKey); - author.setEnabled(false); - author.setLocked(false); - if (author.getRecordedBy() == null) author.setRecordedBy("acas"); - if (author.getRecordedDate() == null) author.setRecordedDate(new Date()); - - logger.info("about to save author: " + author.toJson()); - try{ - author = authorService.saveAuthor(author); - }catch (Exception e){ - logger.error("Caught error saving author from signup form",e); - return "signup/error"; - } - -// addAuthorToUserRole(author); - - - SimpleMailMessage mail = new SimpleMailMessage(); - mail.setTo(author.getEmailAddress()); - mail.setSubject("User Activation"); - if(propertiesUtilService.getEmailFromAddress() != null && !propertiesUtilService.getEmailFromAddress().equals("") ) mail.setFrom(propertiesUtilService.getEmailFromAddress()); - -// mail.setText("Hi "+ author.getFirstName() + ",\n. You just registered with us. Please click on this link to activate your account - Activate Link. \n Thanks Typical Security Admin"); - mail.setText("Hi "+ author.getFirstName() + ",\nPlease click on the following link to activate your account: " + propertiesUtilService.getClientPath()+"/activateUser?emailAddress="+author.getEmailAddress()+"&activate="+activationKey + "\nThank you, \nACAS Admin"); - mailSender.send(mail); - return "signup/thanks"; - } - } - - private void addAuthorToUserRole(Author author) { - LsRole userRole = LsRole.getOrCreateRole("user"); - AuthorRole authorRole = AuthorRole.getOrCreateAuthorRole(author, userRole); - logger.debug("author added to the user role " + authorRole.toJson()); - - } - - @RequestMapping(value = "/index", produces = "text/html") - public String index() { - return "signup/index"; - } - - @RequestMapping(value = "/thanks", produces = "text/html") - public String thanks() { - return "signup/thanks"; - } - @RequestMapping(value = "/error", produces = "text/html") - public String error() { - return "signup/error"; - } - - public void sendMessage(String mailTo, String message) { - simpleMailMessage.setTo(mailTo); - simpleMailMessage.setText(message); - if(propertiesUtilService.getEmailFromAddress() != null && !propertiesUtilService.getEmailFromAddress().equals("") ) simpleMailMessage.setFrom(propertiesUtilService.getEmailFromAddress()); - mailSender.send(simpleMailMessage); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/SignUpValidator.java b/src/main/java/com/labsynch/labseer/web/SignUpValidator.java deleted file mode 100755 index 8031244f6..000000000 --- a/src/main/java/com/labsynch/labseer/web/SignUpValidator.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * - */ -package com.labsynch.labseer.web; - -import org.springframework.stereotype.Service; -import org.springframework.validation.Errors; -import org.springframework.validation.Validator; - -/** - * - * - */ -@Service("signupValidator") -public class SignUpValidator implements Validator { - - /* - * (non-Javadoc) - * - * @see org.springframework.validation.Validator#supports(java.lang.Class) - */ - @Override - public boolean supports(Class clazz) { - return UserRegistrationForm.class.equals(clazz); - } - - /* - * (non-Javadoc) - * - * @see org.springframework.validation.Validator#validate(java.lang.Object, - * org.springframework.validation.Errors) - */ - @Override - public void validate(Object target, Errors errors) { - UserRegistrationForm form = (UserRegistrationForm) target; - - String newPassword = form.getPassword(); - String newPasswordAgain = form.getRepeatPassword(); - if (!newPassword.equals(newPasswordAgain)) { - errors.reject("changepassword.passwordsnomatch"); - } - -// ReCaptchaImpl reCaptcha = new ReCaptchaImpl(); -// reCaptcha.setPrivateKey("6LdfmL8SAAAAAHKPqUQV5SxrRX9Id6a8cQo-mgpE"); -// -// String challenge = form.getRecaptcha_challenge_field(); -// String uresponse = form.getRecaptcha_response_field(); -// ReCaptchaResponse reCaptchaResponse = reCaptcha.checkAnswer("localhost", challenge, uresponse); -// if (!reCaptchaResponse.isValid()) { -// errors.reject("recaptcha.mismatch"); -// } - - - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/StateKindController.java b/src/main/java/com/labsynch/labseer/web/StateKindController.java deleted file mode 100755 index 624ab2ebb..000000000 --- a/src/main/java/com/labsynch/labseer/web/StateKindController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.StateKind; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = StateKind.class) -@Controller -@RequestMapping("/statekinds") -@RooWebScaffold(path = "statekinds", formBackingObject = StateKind.class) -@RooWebFinder -public class StateKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller.aj deleted file mode 100755 index b79f04281..000000000 --- a/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.StateKind; -import com.labsynch.labseer.domain.StateType; -import com.labsynch.labseer.web.StateKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect StateKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String StateKindController.create(@Valid StateKind stateKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, stateKind); - return "statekinds/create"; - } - uiModel.asMap().clear(); - stateKind.persist(); - return "redirect:/statekinds/" + encodeUrlPathSegment(stateKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String StateKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new StateKind()); - List dependencies = new ArrayList(); - if (StateType.countStateTypes() == 0) { - dependencies.add(new String[] { "lsType", "statetypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "statekinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String StateKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("statekind", StateKind.findStateKind(id)); - uiModel.addAttribute("itemId", id); - return "statekinds/show"; - } - - @RequestMapping(produces = "text/html") - public String StateKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("statekinds", StateKind.findStateKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) StateKind.countStateKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("statekinds", StateKind.findAllStateKinds(sortFieldName, sortOrder)); - } - return "statekinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String StateKindController.update(@Valid StateKind stateKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, stateKind); - return "statekinds/update"; - } - uiModel.asMap().clear(); - stateKind.merge(); - return "redirect:/statekinds/" + encodeUrlPathSegment(stateKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String StateKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, StateKind.findStateKind(id)); - return "statekinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String StateKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - StateKind stateKind = StateKind.findStateKind(id); - stateKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/statekinds"; - } - - void StateKindController.populateEditForm(Model uiModel, StateKind stateKind) { - uiModel.addAttribute("stateKind", stateKind); - uiModel.addAttribute("statetypes", StateType.findAllStateTypes()); - } - - String StateKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller_Finder.aj deleted file mode 100755 index 4d0cd13b0..000000000 --- a/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,75 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.StateKind; -import com.labsynch.labseer.domain.StateType; -import com.labsynch.labseer.web.StateKindController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect StateKindController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByKindNameEquals", "form" }, method = RequestMethod.GET) - public String StateKindController.findStateKindsByKindNameEqualsForm(Model uiModel) { - return "statekinds/findStateKindsByKindNameEquals"; - } - - @RequestMapping(params = "find=ByKindNameEquals", method = RequestMethod.GET) - public String StateKindController.findStateKindsByKindNameEquals(@RequestParam("kindName") String kindName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("statekinds", StateKind.findStateKindsByKindNameEquals(kindName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) StateKind.countFindStateKindsByKindNameEquals(kindName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("statekinds", StateKind.findStateKindsByKindNameEquals(kindName, sortFieldName, sortOrder).getResultList()); - } - return "statekinds/list"; - } - - @RequestMapping(params = { "find=ByKindNameEqualsAndLsType", "form" }, method = RequestMethod.GET) - public String StateKindController.findStateKindsByKindNameEqualsAndLsTypeForm(Model uiModel) { - uiModel.addAttribute("statetypes", StateType.findAllStateTypes()); - return "statekinds/findStateKindsByKindNameEqualsAndLsType"; - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", method = RequestMethod.GET) - public String StateKindController.findStateKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") StateType lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("statekinds", StateKind.findStateKindsByKindNameEqualsAndLsType(kindName, lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) StateKind.countFindStateKindsByKindNameEqualsAndLsType(kindName, lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("statekinds", StateKind.findStateKindsByKindNameEqualsAndLsType(kindName, lsType, sortFieldName, sortOrder).getResultList()); - } - return "statekinds/list"; - } - - @RequestMapping(params = { "find=ByLsType", "form" }, method = RequestMethod.GET) - public String StateKindController.findStateKindsByLsTypeForm(Model uiModel) { - uiModel.addAttribute("statetypes", StateType.findAllStateTypes()); - return "statekinds/findStateKindsByLsType"; - } - - @RequestMapping(params = "find=ByLsType", method = RequestMethod.GET) - public String StateKindController.findStateKindsByLsType(@RequestParam("lsType") StateType lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("statekinds", StateKind.findStateKindsByLsType(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) StateKind.countFindStateKindsByLsType(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("statekinds", StateKind.findStateKindsByLsType(lsType, sortFieldName, sortOrder).getResultList()); - } - return "statekinds/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller_Json.aj deleted file mode 100755 index ba83a8614..000000000 --- a/src/main/java/com/labsynch/labseer/web/StateKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,149 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.StateKind; -import com.labsynch.labseer.domain.StateType; -import com.labsynch.labseer.web.StateKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect StateKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity StateKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - StateKind stateKind = StateKind.findStateKind(id); - if (stateKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(stateKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity StateKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = StateKind.findAllStateKinds(); - return new ResponseEntity(StateKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity StateKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - StateKind stateKind = StateKind.fromJsonToStateKind(json); - stateKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+stateKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity StateKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (StateKind stateKind: StateKind.fromJsonArrayToStateKinds(json)) { - stateKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity StateKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - StateKind stateKind = StateKind.fromJsonToStateKind(json); - stateKind.setId(id); - if (stateKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity StateKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - StateKind stateKind = StateKind.findStateKind(id); - if (stateKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - stateKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity StateKindController.jsonFindStateKindsByKindNameEquals(@RequestParam("kindName") String kindName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(StateKind.toJsonArray(StateKind.findStateKindsByKindNameEquals(kindName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity StateKindController.jsonFindStateKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") StateType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(StateKind.toJsonArray(StateKind.findStateKindsByKindNameEqualsAndLsType(kindName, lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity StateKindController.jsonFindStateKindsByLsType(@RequestParam("lsType") StateType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(StateKind.toJsonArray(StateKind.findStateKindsByLsType(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/StateTypeController.java b/src/main/java/com/labsynch/labseer/web/StateTypeController.java deleted file mode 100755 index c8c937307..000000000 --- a/src/main/java/com/labsynch/labseer/web/StateTypeController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.StateType; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = StateType.class) -@Controller -@RequestMapping("/statetypes") -@RooWebScaffold(path = "statetypes", formBackingObject = StateType.class) -@RooWebFinder -public class StateTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller.aj deleted file mode 100755 index a6cce6f69..000000000 --- a/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.StateType; -import com.labsynch.labseer.web.StateTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect StateTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String StateTypeController.create(@Valid StateType stateType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, stateType); - return "statetypes/create"; - } - uiModel.asMap().clear(); - stateType.persist(); - return "redirect:/statetypes/" + encodeUrlPathSegment(stateType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String StateTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new StateType()); - return "statetypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String StateTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("statetype", StateType.findStateType(id)); - uiModel.addAttribute("itemId", id); - return "statetypes/show"; - } - - @RequestMapping(produces = "text/html") - public String StateTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("statetypes", StateType.findStateTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) StateType.countStateTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("statetypes", StateType.findAllStateTypes(sortFieldName, sortOrder)); - } - return "statetypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String StateTypeController.update(@Valid StateType stateType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, stateType); - return "statetypes/update"; - } - uiModel.asMap().clear(); - stateType.merge(); - return "redirect:/statetypes/" + encodeUrlPathSegment(stateType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String StateTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, StateType.findStateType(id)); - return "statetypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String StateTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - StateType stateType = StateType.findStateType(id); - stateType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/statetypes"; - } - - void StateTypeController.populateEditForm(Model uiModel, StateType stateType) { - uiModel.addAttribute("stateType", stateType); - } - - String StateTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller_Finder.aj deleted file mode 100755 index bf4203322..000000000 --- a/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.StateType; -import com.labsynch.labseer.web.StateTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect StateTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByTypeNameEquals", "form" }, method = RequestMethod.GET) - public String StateTypeController.findStateTypesByTypeNameEqualsForm(Model uiModel) { - return "statetypes/findStateTypesByTypeNameEquals"; - } - - @RequestMapping(params = "find=ByTypeNameEquals", method = RequestMethod.GET) - public String StateTypeController.findStateTypesByTypeNameEquals(@RequestParam("typeName") String typeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("statetypes", StateType.findStateTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) StateType.countFindStateTypesByTypeNameEquals(typeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("statetypes", StateType.findStateTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).getResultList()); - } - return "statetypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller_Json.aj deleted file mode 100755 index 12c6f696d..000000000 --- a/src/main/java/com/labsynch/labseer/web/StateTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.StateType; -import com.labsynch.labseer.web.StateTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect StateTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity StateTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - StateType stateType = StateType.findStateType(id); - if (stateType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(stateType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity StateTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = StateType.findAllStateTypes(); - return new ResponseEntity(StateType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity StateTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - StateType stateType = StateType.fromJsonToStateType(json); - stateType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+stateType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity StateTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (StateType stateType: StateType.fromJsonArrayToStateTypes(json)) { - stateType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity StateTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - StateType stateType = StateType.fromJsonToStateType(json); - stateType.setId(id); - if (stateType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity StateTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - StateType stateType = StateType.findStateType(id); - if (stateType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - stateType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity StateTypeController.jsonFindStateTypesByTypeNameEquals(@RequestParam("typeName") String typeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(StateType.toJsonArray(StateType.findStateTypesByTypeNameEquals(typeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/StringCollectionDTOController.java b/src/main/java/com/labsynch/labseer/web/StringCollectionDTOController.java deleted file mode 100755 index 9a3d24cde..000000000 --- a/src/main/java/com/labsynch/labseer/web/StringCollectionDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.StringCollectionDTO; - -@RooWebJson(jsonObject = StringCollectionDTO.class) -@Controller -@RequestMapping("/stringcollectioes") -public class StringCollectionDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectController.java b/src/main/java/com/labsynch/labseer/web/SubjectController.java deleted file mode 100755 index 546c440ba..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectController.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.dto.SubjectDTO; -import com.labsynch.labseer.service.SubjectService; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = Subject.class) -@Controller -@RequestMapping("/subjects") -@RooWebScaffold(path = "subjects", formBackingObject = Subject.class) -@RooWebFinder -public class SubjectController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller.aj deleted file mode 100755 index 23db5ef96..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller.aj +++ /dev/null @@ -1,120 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ItxSubjectContainer; -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.SubjectLabel; -import com.labsynch.labseer.domain.SubjectState; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.web.SubjectController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect SubjectController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String SubjectController.create(@Valid Subject subject, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, subject); - return "subjects/create"; - } - uiModel.asMap().clear(); - subject.persist(); - return "redirect:/subjects/" + encodeUrlPathSegment(subject.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String SubjectController.createForm(Model uiModel) { - populateEditForm(uiModel, new Subject()); - return "subjects/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String SubjectController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("subject", Subject.findSubject(id)); - uiModel.addAttribute("itemId", id); - return "subjects/show"; - } - - @RequestMapping(produces = "text/html") - public String SubjectController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjects", Subject.findSubjectEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) Subject.countSubjects() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjects", Subject.findAllSubjects(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "subjects/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String SubjectController.update(@Valid Subject subject, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, subject); - return "subjects/update"; - } - uiModel.asMap().clear(); - subject.merge(); - return "redirect:/subjects/" + encodeUrlPathSegment(subject.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String SubjectController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, Subject.findSubject(id)); - return "subjects/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String SubjectController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - Subject subject = Subject.findSubject(id); - subject.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/subjects"; - } - - void SubjectController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("subject_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("subject_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void SubjectController.populateEditForm(Model uiModel, Subject subject) { - uiModel.addAttribute("subject", subject); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("itxsubjectcontainers", ItxSubjectContainer.findAllItxSubjectContainers()); - uiModel.addAttribute("subjectlabels", SubjectLabel.findAllSubjectLabels()); - uiModel.addAttribute("subjectstates", SubjectState.findAllSubjectStates()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findAllTreatmentGroups()); - } - - String SubjectController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller_Finder.aj deleted file mode 100755 index cc9917e74..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,78 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.web.SubjectController; -import java.util.Set; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect SubjectController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeNameEquals", "form" }, method = RequestMethod.GET) - public String SubjectController.findSubjectsByCodeNameEqualsForm(Model uiModel) { - return "subjects/findSubjectsByCodeNameEquals"; - } - - @RequestMapping(params = "find=ByCodeNameEquals", method = RequestMethod.GET) - public String SubjectController.findSubjectsByCodeNameEquals(@RequestParam("codeName") String codeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjects", Subject.findSubjectsByCodeNameEquals(codeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Subject.countFindSubjectsByCodeNameEquals(codeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjects", Subject.findSubjectsByCodeNameEquals(codeName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "subjects/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String SubjectController.findSubjectsByLsTransactionEqualsForm(Model uiModel) { - return "subjects/findSubjectsByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String SubjectController.findSubjectsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjects", Subject.findSubjectsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Subject.countFindSubjectsByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjects", Subject.findSubjectsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "subjects/list"; - } - - @RequestMapping(params = { "find=ByTreatmentGroups", "form" }, method = RequestMethod.GET) - public String SubjectController.findSubjectsByTreatmentGroupsForm(Model uiModel) { - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findAllTreatmentGroups()); - return "subjects/findSubjectsByTreatmentGroups"; - } - - @RequestMapping(params = "find=ByTreatmentGroups", method = RequestMethod.GET) - public String SubjectController.findSubjectsByTreatmentGroups(@RequestParam("treatmentGroups") Set treatmentGroups, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjects", Subject.findSubjectsByTreatmentGroups(treatmentGroups, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) Subject.countFindSubjectsByTreatmentGroups(treatmentGroups) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjects", Subject.findSubjectsByTreatmentGroups(treatmentGroups, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "subjects/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller_Json.aj deleted file mode 100755 index 52942ab83..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectController_Roo_Controller_Json.aj +++ /dev/null @@ -1,150 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.web.SubjectController; -import java.util.List; -import java.util.Set; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect SubjectController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - Subject subject = Subject.findSubject(id); - if (subject == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(subject.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = Subject.findAllSubjects(); - return new ResponseEntity(Subject.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity SubjectController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Subject subject = Subject.fromJsonToSubject(json); - subject.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+subject.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity SubjectController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (Subject subject: Subject.fromJsonArrayToSubjects(json)) { - subject.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity SubjectController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Subject subject = Subject.fromJsonToSubject(json); - subject.setId(id); - if (subject.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity SubjectController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - Subject subject = Subject.findSubject(id); - if (subject == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - subject.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectController.jsonFindSubjectsByCodeNameEquals(@RequestParam("codeName") String codeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Subject.toJsonArray(Subject.findSubjectsByCodeNameEquals(codeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectController.jsonFindSubjectsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Subject.toJsonArray(Subject.findSubjectsByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTreatmentGroups", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectController.jsonFindSubjectsByTreatmentGroups(@RequestParam("treatmentGroups") Set treatmentGroups) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(Subject.toJsonArray(Subject.findSubjectsByTreatmentGroups(treatmentGroups).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectDTOController.java b/src/main/java/com/labsynch/labseer/web/SubjectDTOController.java deleted file mode 100755 index e64c86d21..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.SubjectDTO; - -@RooWebJson(jsonObject = SubjectDTO.class) -@Controller -@RequestMapping("/subjectdto") -public class SubjectDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectLabelController.java b/src/main/java/com/labsynch/labseer/web/SubjectLabelController.java deleted file mode 100755 index 7c1661b43..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectLabelController.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.SubjectLabel; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RequestMapping("/subjectlabels") -@Controller -@RooWebScaffold(path = "subjectlabels", formBackingObject = SubjectLabel.class) -@RooWebJson(jsonObject = SubjectLabel.class) -@RooWebFinder -public class SubjectLabelController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller.aj deleted file mode 100755 index d285928ad..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller.aj +++ /dev/null @@ -1,119 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.SubjectLabel; -import com.labsynch.labseer.web.SubjectLabelController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect SubjectLabelController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String SubjectLabelController.create(@Valid SubjectLabel subjectLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, subjectLabel); - return "subjectlabels/create"; - } - uiModel.asMap().clear(); - subjectLabel.persist(); - return "redirect:/subjectlabels/" + encodeUrlPathSegment(subjectLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String SubjectLabelController.createForm(Model uiModel) { - populateEditForm(uiModel, new SubjectLabel()); - List dependencies = new ArrayList(); - if (Subject.countSubjects() == 0) { - dependencies.add(new String[] { "subject", "subjects" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "subjectlabels/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String SubjectLabelController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("subjectlabel", SubjectLabel.findSubjectLabel(id)); - uiModel.addAttribute("itemId", id); - return "subjectlabels/show"; - } - - @RequestMapping(produces = "text/html") - public String SubjectLabelController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjectlabels", SubjectLabel.findSubjectLabelEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) SubjectLabel.countSubjectLabels() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjectlabels", SubjectLabel.findAllSubjectLabels(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "subjectlabels/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String SubjectLabelController.update(@Valid SubjectLabel subjectLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, subjectLabel); - return "subjectlabels/update"; - } - uiModel.asMap().clear(); - subjectLabel.merge(); - return "redirect:/subjectlabels/" + encodeUrlPathSegment(subjectLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String SubjectLabelController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, SubjectLabel.findSubjectLabel(id)); - return "subjectlabels/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String SubjectLabelController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - SubjectLabel subjectLabel = SubjectLabel.findSubjectLabel(id); - subjectLabel.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/subjectlabels"; - } - - void SubjectLabelController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("subjectLabel_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("subjectLabel_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void SubjectLabelController.populateEditForm(Model uiModel, SubjectLabel subjectLabel) { - uiModel.addAttribute("subjectLabel", subjectLabel); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("subjects", Subject.findAllSubjects()); - } - - String SubjectLabelController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller_Finder.aj deleted file mode 100755 index f4dde6fcd..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,37 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.SubjectLabel; -import com.labsynch.labseer.web.SubjectLabelController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect SubjectLabelController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=BySubject", "form" }, method = RequestMethod.GET) - public String SubjectLabelController.findSubjectLabelsBySubjectForm(Model uiModel) { - uiModel.addAttribute("subjects", Subject.findAllSubjects()); - return "subjectlabels/findSubjectLabelsBySubject"; - } - - @RequestMapping(params = "find=BySubject", method = RequestMethod.GET) - public String SubjectLabelController.findSubjectLabelsBySubject(@RequestParam("subject") Subject subject, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjectlabels", SubjectLabel.findSubjectLabelsBySubject(subject, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SubjectLabel.countFindSubjectLabelsBySubject(subject) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjectlabels", SubjectLabel.findSubjectLabelsBySubject(subject, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "subjectlabels/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller_Json.aj deleted file mode 100755 index 288212565..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectLabelController_Roo_Controller_Json.aj +++ /dev/null @@ -1,125 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.SubjectLabel; -import com.labsynch.labseer.web.SubjectLabelController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect SubjectLabelController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectLabelController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - SubjectLabel subjectLabel = SubjectLabel.findSubjectLabel(id); - if (subjectLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(subjectLabel.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectLabelController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = SubjectLabel.findAllSubjectLabels(); - return new ResponseEntity(SubjectLabel.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity SubjectLabelController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - SubjectLabel subjectLabel = SubjectLabel.fromJsonToSubjectLabel(json); - subjectLabel.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+subjectLabel.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity SubjectLabelController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (SubjectLabel subjectLabel: SubjectLabel.fromJsonArrayToSubjectLabels(json)) { - subjectLabel.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity SubjectLabelController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - SubjectLabel subjectLabel = SubjectLabel.fromJsonToSubjectLabel(json); - subjectLabel.setId(id); - if (subjectLabel.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity SubjectLabelController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - SubjectLabel subjectLabel = SubjectLabel.findSubjectLabel(id); - if (subjectLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - subjectLabel.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=BySubject", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectLabelController.jsonFindSubjectLabelsBySubject(@RequestParam("subject") Subject subject) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(SubjectLabel.toJsonArray(SubjectLabel.findSubjectLabelsBySubject(subject).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectLabelDTOController.java b/src/main/java/com/labsynch/labseer/web/SubjectLabelDTOController.java deleted file mode 100755 index 01af86088..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectLabelDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.SubjectLabelDTO; - -@RooWebJson(jsonObject = SubjectLabelDTO.class) -@Controller -@RequestMapping("/subjectlabeldto") -public class SubjectLabelDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectMiniDTOController.java b/src/main/java/com/labsynch/labseer/web/SubjectMiniDTOController.java deleted file mode 100755 index ba821aa42..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectMiniDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.SubjectMiniDTO; - -@RooWebJson(jsonObject = SubjectMiniDTO.class) -@Controller -@RequestMapping("/subjectminidto") -public class SubjectMiniDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectStateController.java b/src/main/java/com/labsynch/labseer/web/SubjectStateController.java deleted file mode 100755 index fdd28b4ef..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectStateController.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.SubjectState; -import com.labsynch.labseer.domain.SubjectValue; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.StringReader; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.apache.commons.io.IOUtils; -import org.joda.time.format.DateTimeFormat; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -@RooWebJson(jsonObject = SubjectState.class) -@Controller -@RequestMapping("/subjectstates") -@RooWebScaffold(path = "subjectstates", formBackingObject = SubjectState.class) -@RooWebFinder -public class SubjectStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller.aj deleted file mode 100644 index f65386ebd..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller.aj +++ /dev/null @@ -1,121 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.SubjectState; -import com.labsynch.labseer.domain.SubjectValue; -import com.labsynch.labseer.web.SubjectStateController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect SubjectStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String SubjectStateController.create(@Valid SubjectState subjectState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, subjectState); - return "subjectstates/create"; - } - uiModel.asMap().clear(); - subjectState.persist(); - return "redirect:/subjectstates/" + encodeUrlPathSegment(subjectState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String SubjectStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new SubjectState()); - List dependencies = new ArrayList(); - if (Subject.countSubjects() == 0) { - dependencies.add(new String[] { "subject", "subjects" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "subjectstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String SubjectStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("subjectstate", SubjectState.findSubjectState(id)); - uiModel.addAttribute("itemId", id); - return "subjectstates/show"; - } - - @RequestMapping(produces = "text/html") - public String SubjectStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjectstates", SubjectState.findSubjectStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) SubjectState.countSubjectStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjectstates", SubjectState.findAllSubjectStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "subjectstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String SubjectStateController.update(@Valid SubjectState subjectState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, subjectState); - return "subjectstates/update"; - } - uiModel.asMap().clear(); - subjectState.merge(); - return "redirect:/subjectstates/" + encodeUrlPathSegment(subjectState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String SubjectStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, SubjectState.findSubjectState(id)); - return "subjectstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String SubjectStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - SubjectState subjectState = SubjectState.findSubjectState(id); - subjectState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/subjectstates"; - } - - void SubjectStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("subjectState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("subjectState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void SubjectStateController.populateEditForm(Model uiModel, SubjectState subjectState) { - uiModel.addAttribute("subjectState", subjectState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("subjects", Subject.findAllSubjects()); - uiModel.addAttribute("subjectvalues", SubjectValue.findAllSubjectValues()); - } - - String SubjectStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller_Finder.aj deleted file mode 100755 index bd4db4003..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,58 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.SubjectState; -import com.labsynch.labseer.web.SubjectStateController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect SubjectStateController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLsKindEqualsAndSubject", "form" }, method = RequestMethod.GET) - public String SubjectStateController.findSubjectStatesByLsTypeEqualsAndLsKindEqualsAndSubjectForm(Model uiModel) { - uiModel.addAttribute("subjects", Subject.findAllSubjects()); - return "subjectstates/findSubjectStatesByLsTypeEqualsAndLsKindEqualsAndSubject"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEqualsAndSubject", method = RequestMethod.GET) - public String SubjectStateController.findSubjectStatesByLsTypeEqualsAndLsKindEqualsAndSubject(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam("subject") Subject subject, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjectstates", SubjectState.findSubjectStatesByLsTypeEqualsAndLsKindEqualsAndSubject(lsType, lsKind, subject, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SubjectState.countFindSubjectStatesByLsTypeEqualsAndLsKindEqualsAndSubject(lsType, lsKind, subject) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjectstates", SubjectState.findSubjectStatesByLsTypeEqualsAndLsKindEqualsAndSubject(lsType, lsKind, subject, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "subjectstates/list"; - } - - @RequestMapping(params = { "find=BySubject", "form" }, method = RequestMethod.GET) - public String SubjectStateController.findSubjectStatesBySubjectForm(Model uiModel) { - uiModel.addAttribute("subjects", Subject.findAllSubjects()); - return "subjectstates/findSubjectStatesBySubject"; - } - - @RequestMapping(params = "find=BySubject", method = RequestMethod.GET) - public String SubjectStateController.findSubjectStatesBySubject(@RequestParam("subject") Subject subject, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjectstates", SubjectState.findSubjectStatesBySubject(subject, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SubjectState.countFindSubjectStatesBySubject(subject) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjectstates", SubjectState.findSubjectStatesBySubject(subject, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "subjectstates/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller_Json.aj deleted file mode 100755 index 4cd8d3891..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectStateController_Roo_Controller_Json.aj +++ /dev/null @@ -1,137 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.SubjectState; -import com.labsynch.labseer.web.SubjectStateController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect SubjectStateController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectStateController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - SubjectState subjectState = SubjectState.findSubjectState(id); - if (subjectState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(subjectState.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectStateController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = SubjectState.findAllSubjectStates(); - return new ResponseEntity(SubjectState.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity SubjectStateController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - SubjectState subjectState = SubjectState.fromJsonToSubjectState(json); - subjectState.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+subjectState.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity SubjectStateController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (SubjectState subjectState: SubjectState.fromJsonArrayToSubjectStates(json)) { - subjectState.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity SubjectStateController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - SubjectState subjectState = SubjectState.fromJsonToSubjectState(json); - subjectState.setId(id); - if (subjectState.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity SubjectStateController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - SubjectState subjectState = SubjectState.findSubjectState(id); - if (subjectState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - subjectState.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEqualsAndSubject", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectStateController.jsonFindSubjectStatesByLsTypeEqualsAndLsKindEqualsAndSubject(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam("subject") Subject subject) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(SubjectState.toJsonArray(SubjectState.findSubjectStatesByLsTypeEqualsAndLsKindEqualsAndSubject(lsType, lsKind, subject).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=BySubject", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectStateController.jsonFindSubjectStatesBySubject(@RequestParam("subject") Subject subject) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(SubjectState.toJsonArray(SubjectState.findSubjectStatesBySubject(subject).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectStateDTOController.java b/src/main/java/com/labsynch/labseer/web/SubjectStateDTOController.java deleted file mode 100755 index 0d578773f..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectStateDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.SubjectStateDTO; - -@RooWebJson(jsonObject = SubjectStateDTO.class) -@Controller -@RequestMapping("/subjectstatedto") -public class SubjectStateDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectStateMiniDTOController.java b/src/main/java/com/labsynch/labseer/web/SubjectStateMiniDTOController.java deleted file mode 100755 index e2012928e..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectStateMiniDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.SubjectStateMiniDTO; - -@RooWebJson(jsonObject = SubjectStateMiniDTO.class) -@Controller -@RequestMapping("/subjectstateminidto") -public class SubjectStateMiniDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectValueController.java b/src/main/java/com/labsynch/labseer/web/SubjectValueController.java deleted file mode 100755 index d65013259..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectValueController.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.SubjectState; -import com.labsynch.labseer.domain.SubjectValue; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.FileReader; -import java.io.StringReader; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.apache.commons.io.IOUtils; -import org.joda.time.format.DateTimeFormat; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -@RooWebJson(jsonObject = SubjectValue.class) -@Controller -@RequestMapping("/subjectvalues") -@RooWebScaffold(path = "subjectvalues", formBackingObject = SubjectValue.class) -@RooWebFinder -public class SubjectValueController { -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller.aj deleted file mode 100644 index 2495b0ad1..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller.aj +++ /dev/null @@ -1,120 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.SubjectState; -import com.labsynch.labseer.domain.SubjectValue; -import com.labsynch.labseer.web.SubjectValueController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect SubjectValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String SubjectValueController.create(@Valid SubjectValue subjectValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, subjectValue); - return "subjectvalues/create"; - } - uiModel.asMap().clear(); - subjectValue.persist(); - return "redirect:/subjectvalues/" + encodeUrlPathSegment(subjectValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String SubjectValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new SubjectValue()); - List dependencies = new ArrayList(); - if (SubjectState.countSubjectStates() == 0) { - dependencies.add(new String[] { "lsState", "subjectstates" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "subjectvalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String SubjectValueController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("subjectvalue", SubjectValue.findSubjectValue(id)); - uiModel.addAttribute("itemId", id); - return "subjectvalues/show"; - } - - @RequestMapping(produces = "text/html") - public String SubjectValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjectvalues", SubjectValue.findSubjectValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) SubjectValue.countSubjectValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjectvalues", SubjectValue.findAllSubjectValues(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "subjectvalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String SubjectValueController.update(@Valid SubjectValue subjectValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, subjectValue); - return "subjectvalues/update"; - } - uiModel.asMap().clear(); - subjectValue.merge(); - return "redirect:/subjectvalues/" + encodeUrlPathSegment(subjectValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String SubjectValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, SubjectValue.findSubjectValue(id)); - return "subjectvalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String SubjectValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - SubjectValue subjectValue = SubjectValue.findSubjectValue(id); - subjectValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/subjectvalues"; - } - - void SubjectValueController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("subjectValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("subjectValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("subjectValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void SubjectValueController.populateEditForm(Model uiModel, SubjectValue subjectValue) { - uiModel.addAttribute("subjectValue", subjectValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("subjectstates", SubjectState.findAllSubjectStates()); - } - - String SubjectValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller_Finder.aj deleted file mode 100755 index 908bcbe5c..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,118 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.SubjectState; -import com.labsynch.labseer.domain.SubjectValue; -import com.labsynch.labseer.web.SubjectValueController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect SubjectValueController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeValueEquals", "form" }, method = RequestMethod.GET) - public String SubjectValueController.findSubjectValuesByCodeValueEqualsForm(Model uiModel) { - return "subjectvalues/findSubjectValuesByCodeValueEquals"; - } - - @RequestMapping(params = "find=ByCodeValueEquals", method = RequestMethod.GET) - public String SubjectValueController.findSubjectValuesByCodeValueEquals(@RequestParam("codeValue") String codeValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjectvalues", SubjectValue.findSubjectValuesByCodeValueEquals(codeValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SubjectValue.countFindSubjectValuesByCodeValueEquals(codeValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjectvalues", SubjectValue.findSubjectValuesByCodeValueEquals(codeValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "subjectvalues/list"; - } - - @RequestMapping(params = { "find=ByIgnoredNotAndCodeValueEquals", "form" }, method = RequestMethod.GET) - public String SubjectValueController.findSubjectValuesByIgnoredNotAndCodeValueEqualsForm(Model uiModel) { - return "subjectvalues/findSubjectValuesByIgnoredNotAndCodeValueEquals"; - } - - @RequestMapping(params = "find=ByIgnoredNotAndCodeValueEquals", method = RequestMethod.GET) - public String SubjectValueController.findSubjectValuesByIgnoredNotAndCodeValueEquals(@RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam("codeValue") String codeValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjectvalues", SubjectValue.findSubjectValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SubjectValue.countFindSubjectValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjectvalues", SubjectValue.findSubjectValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "subjectvalues/list"; - } - - @RequestMapping(params = { "find=ByLsState", "form" }, method = RequestMethod.GET) - public String SubjectValueController.findSubjectValuesByLsStateForm(Model uiModel) { - uiModel.addAttribute("subjectstates", SubjectState.findAllSubjectStates()); - return "subjectvalues/findSubjectValuesByLsState"; - } - - @RequestMapping(params = "find=ByLsState", method = RequestMethod.GET) - public String SubjectValueController.findSubjectValuesByLsState(@RequestParam("lsState") SubjectState lsState, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjectvalues", SubjectValue.findSubjectValuesByLsState(lsState, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SubjectValue.countFindSubjectValuesByLsState(lsState) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjectvalues", SubjectValue.findSubjectValuesByLsState(lsState, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "subjectvalues/list"; - } - - @RequestMapping(params = { "find=ByLsStateAndLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String SubjectValueController.findSubjectValuesByLsStateAndLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - uiModel.addAttribute("subjectstates", SubjectState.findAllSubjectStates()); - return "subjectvalues/findSubjectValuesByLsStateAndLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsStateAndLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String SubjectValueController.findSubjectValuesByLsStateAndLsTypeEqualsAndLsKindEquals(@RequestParam("lsState") SubjectState lsState, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjectvalues", SubjectValue.findSubjectValuesByLsStateAndLsTypeEqualsAndLsKindEquals(lsState, lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SubjectValue.countFindSubjectValuesByLsStateAndLsTypeEqualsAndLsKindEquals(lsState, lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjectvalues", SubjectValue.findSubjectValuesByLsStateAndLsTypeEqualsAndLsKindEquals(lsState, lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "subjectvalues/list"; - } - - @RequestMapping(params = { "find=ByLsTypeEqualsAndLsKindEquals", "form" }, method = RequestMethod.GET) - public String SubjectValueController.findSubjectValuesByLsTypeEqualsAndLsKindEqualsForm(Model uiModel) { - return "subjectvalues/findSubjectValuesByLsTypeEqualsAndLsKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", method = RequestMethod.GET) - public String SubjectValueController.findSubjectValuesByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("subjectvalues", SubjectValue.findSubjectValuesByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) SubjectValue.countFindSubjectValuesByLsTypeEqualsAndLsKindEquals(lsType, lsKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("subjectvalues", SubjectValue.findSubjectValuesByLsTypeEqualsAndLsKindEquals(lsType, lsKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "subjectvalues/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller_Json.aj deleted file mode 100755 index f23469d1c..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectValueController_Roo_Controller_Json.aj +++ /dev/null @@ -1,173 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.SubjectState; -import com.labsynch.labseer.domain.SubjectValue; -import com.labsynch.labseer.web.SubjectValueController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect SubjectValueController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectValueController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - SubjectValue subjectValue = SubjectValue.findSubjectValue(id); - if (subjectValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(subjectValue.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectValueController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = SubjectValue.findAllSubjectValues(); - return new ResponseEntity(SubjectValue.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity SubjectValueController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - SubjectValue subjectValue = SubjectValue.fromJsonToSubjectValue(json); - subjectValue.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+subjectValue.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity SubjectValueController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (SubjectValue subjectValue: SubjectValue.fromJsonArrayToSubjectValues(json)) { - subjectValue.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity SubjectValueController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - SubjectValue subjectValue = SubjectValue.fromJsonToSubjectValue(json); - subjectValue.setId(id); - if (subjectValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity SubjectValueController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - SubjectValue subjectValue = SubjectValue.findSubjectValue(id); - if (subjectValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - subjectValue.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeValueEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectValueController.jsonFindSubjectValuesByCodeValueEquals(@RequestParam("codeValue") String codeValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(SubjectValue.toJsonArray(SubjectValue.findSubjectValuesByCodeValueEquals(codeValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByIgnoredNotAndCodeValueEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectValueController.jsonFindSubjectValuesByIgnoredNotAndCodeValueEquals(@RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam("codeValue") String codeValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(SubjectValue.toJsonArray(SubjectValue.findSubjectValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsState", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectValueController.jsonFindSubjectValuesByLsState(@RequestParam("lsState") SubjectState lsState) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(SubjectValue.toJsonArray(SubjectValue.findSubjectValuesByLsState(lsState).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsStateAndLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectValueController.jsonFindSubjectValuesByLsStateAndLsTypeEqualsAndLsKindEquals(@RequestParam("lsState") SubjectState lsState, @RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(SubjectValue.toJsonArray(SubjectValue.findSubjectValuesByLsStateAndLsTypeEqualsAndLsKindEquals(lsState, lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeEqualsAndLsKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity SubjectValueController.jsonFindSubjectValuesByLsTypeEqualsAndLsKindEquals(@RequestParam("lsType") String lsType, @RequestParam("lsKind") String lsKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(SubjectValue.toJsonArray(SubjectValue.findSubjectValuesByLsTypeEqualsAndLsKindEquals(lsType, lsKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/SubjectValueDTOController.java b/src/main/java/com/labsynch/labseer/web/SubjectValueDTOController.java deleted file mode 100755 index 5fea6ee15..000000000 --- a/src/main/java/com/labsynch/labseer/web/SubjectValueDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.SubjectValueDTO; - -@RooWebJson(jsonObject = SubjectValueDTO.class) -@Controller -@RequestMapping("/subjectvaluedto") -public class SubjectValueDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/TempSelectTableController.java b/src/main/java/com/labsynch/labseer/web/TempSelectTableController.java deleted file mode 100644 index 8909ad4f1..000000000 --- a/src/main/java/com/labsynch/labseer/web/TempSelectTableController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TempSelectTable; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/tempselecttables") -@Controller -@RooWebScaffold(path = "tempselecttables", formBackingObject = TempSelectTable.class) -public class TempSelectTableController { -} diff --git a/src/main/java/com/labsynch/labseer/web/TempSelectTableController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/TempSelectTableController_Roo_Controller.aj deleted file mode 100644 index 456eeb0f8..000000000 --- a/src/main/java/com/labsynch/labseer/web/TempSelectTableController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TempSelectTable; -import com.labsynch.labseer.web.TempSelectTableController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect TempSelectTableController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String TempSelectTableController.create(@Valid TempSelectTable tempSelectTable, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, tempSelectTable); - return "tempselecttables/create"; - } - uiModel.asMap().clear(); - tempSelectTable.persist(); - return "redirect:/tempselecttables/" + encodeUrlPathSegment(tempSelectTable.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String TempSelectTableController.createForm(Model uiModel) { - populateEditForm(uiModel, new TempSelectTable()); - return "tempselecttables/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String TempSelectTableController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("tempselecttable", TempSelectTable.findTempSelectTable(id)); - uiModel.addAttribute("itemId", id); - return "tempselecttables/show"; - } - - @RequestMapping(produces = "text/html") - public String TempSelectTableController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("tempselecttables", TempSelectTable.findTempSelectTableEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) TempSelectTable.countTempSelectTables() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("tempselecttables", TempSelectTable.findAllTempSelectTables(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "tempselecttables/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String TempSelectTableController.update(@Valid TempSelectTable tempSelectTable, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, tempSelectTable); - return "tempselecttables/update"; - } - uiModel.asMap().clear(); - tempSelectTable.merge(); - return "redirect:/tempselecttables/" + encodeUrlPathSegment(tempSelectTable.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String TempSelectTableController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, TempSelectTable.findTempSelectTable(id)); - return "tempselecttables/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String TempSelectTableController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - TempSelectTable tempSelectTable = TempSelectTable.findTempSelectTable(id); - tempSelectTable.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/tempselecttables"; - } - - void TempSelectTableController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("tempSelectTable_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void TempSelectTableController.populateEditForm(Model uiModel, TempSelectTable tempSelectTable) { - uiModel.addAttribute("tempSelectTable", tempSelectTable); - addDateTimeFormatPatterns(uiModel); - } - - String TempSelectTableController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ThingKindController.java b/src/main/java/com/labsynch/labseer/web/ThingKindController.java deleted file mode 100755 index 096926bf1..000000000 --- a/src/main/java/com/labsynch/labseer/web/ThingKindController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ThingKind; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ThingKind.class) -@Controller -@RequestMapping("/thingkinds") -@RooWebScaffold(path = "thingkinds", formBackingObject = ThingKind.class) -@RooWebFinder -public class ThingKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller.aj deleted file mode 100755 index 9122aa7de..000000000 --- a/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ThingKind; -import com.labsynch.labseer.domain.ThingType; -import com.labsynch.labseer.web.ThingKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ThingKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ThingKindController.create(@Valid ThingKind thingKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, thingKind); - return "thingkinds/create"; - } - uiModel.asMap().clear(); - thingKind.persist(); - return "redirect:/thingkinds/" + encodeUrlPathSegment(thingKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ThingKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new ThingKind()); - List dependencies = new ArrayList(); - if (ThingType.countThingTypes() == 0) { - dependencies.add(new String[] { "lsType", "thingtypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "thingkinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ThingKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("thingkind", ThingKind.findThingKind(id)); - uiModel.addAttribute("itemId", id); - return "thingkinds/show"; - } - - @RequestMapping(produces = "text/html") - public String ThingKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("thingkinds", ThingKind.findThingKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ThingKind.countThingKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("thingkinds", ThingKind.findAllThingKinds(sortFieldName, sortOrder)); - } - return "thingkinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ThingKindController.update(@Valid ThingKind thingKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, thingKind); - return "thingkinds/update"; - } - uiModel.asMap().clear(); - thingKind.merge(); - return "redirect:/thingkinds/" + encodeUrlPathSegment(thingKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ThingKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ThingKind.findThingKind(id)); - return "thingkinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ThingKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ThingKind thingKind = ThingKind.findThingKind(id); - thingKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/thingkinds"; - } - - void ThingKindController.populateEditForm(Model uiModel, ThingKind thingKind) { - uiModel.addAttribute("thingKind", thingKind); - uiModel.addAttribute("thingtypes", ThingType.findAllThingTypes()); - } - - String ThingKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller_Finder.aj deleted file mode 100755 index 8abfe53f7..000000000 --- a/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,75 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ThingKind; -import com.labsynch.labseer.domain.ThingType; -import com.labsynch.labseer.web.ThingKindController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ThingKindController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByKindNameEqualsAndLsType", "form" }, method = RequestMethod.GET) - public String ThingKindController.findThingKindsByKindNameEqualsAndLsTypeForm(Model uiModel) { - uiModel.addAttribute("thingtypes", ThingType.findAllThingTypes()); - return "thingkinds/findThingKindsByKindNameEqualsAndLsType"; - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", method = RequestMethod.GET) - public String ThingKindController.findThingKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") ThingType lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("thingkinds", ThingKind.findThingKindsByKindNameEqualsAndLsType(kindName, lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ThingKind.countFindThingKindsByKindNameEqualsAndLsType(kindName, lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("thingkinds", ThingKind.findThingKindsByKindNameEqualsAndLsType(kindName, lsType, sortFieldName, sortOrder).getResultList()); - } - return "thingkinds/list"; - } - - @RequestMapping(params = { "find=ByLsType", "form" }, method = RequestMethod.GET) - public String ThingKindController.findThingKindsByLsTypeForm(Model uiModel) { - uiModel.addAttribute("thingtypes", ThingType.findAllThingTypes()); - return "thingkinds/findThingKindsByLsType"; - } - - @RequestMapping(params = "find=ByLsType", method = RequestMethod.GET) - public String ThingKindController.findThingKindsByLsType(@RequestParam("lsType") ThingType lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("thingkinds", ThingKind.findThingKindsByLsType(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ThingKind.countFindThingKindsByLsType(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("thingkinds", ThingKind.findThingKindsByLsType(lsType, sortFieldName, sortOrder).getResultList()); - } - return "thingkinds/list"; - } - - @RequestMapping(params = { "find=ByLsTypeAndKindEquals", "form" }, method = RequestMethod.GET) - public String ThingKindController.findThingKindsByLsTypeAndKindEqualsForm(Model uiModel) { - return "thingkinds/findThingKindsByLsTypeAndKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeAndKindEquals", method = RequestMethod.GET) - public String ThingKindController.findThingKindsByLsTypeAndKindEquals(@RequestParam("lsTypeAndKind") String lsTypeAndKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("thingkinds", ThingKind.findThingKindsByLsTypeAndKindEquals(lsTypeAndKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ThingKind.countFindThingKindsByLsTypeAndKindEquals(lsTypeAndKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("thingkinds", ThingKind.findThingKindsByLsTypeAndKindEquals(lsTypeAndKind, sortFieldName, sortOrder).getResultList()); - } - return "thingkinds/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller_Json.aj deleted file mode 100755 index f61bf21ea..000000000 --- a/src/main/java/com/labsynch/labseer/web/ThingKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,149 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ThingKind; -import com.labsynch.labseer.domain.ThingType; -import com.labsynch.labseer.web.ThingKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ThingKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ThingKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ThingKind thingKind = ThingKind.findThingKind(id); - if (thingKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(thingKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ThingKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ThingKind.findAllThingKinds(); - return new ResponseEntity(ThingKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ThingKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ThingKind thingKind = ThingKind.fromJsonToThingKind(json); - thingKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+thingKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ThingKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ThingKind thingKind: ThingKind.fromJsonArrayToThingKinds(json)) { - thingKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ThingKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ThingKind thingKind = ThingKind.fromJsonToThingKind(json); - thingKind.setId(id); - if (thingKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ThingKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ThingKind thingKind = ThingKind.findThingKind(id); - if (thingKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - thingKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ThingKindController.jsonFindThingKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") ThingType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ThingKind.toJsonArray(ThingKind.findThingKindsByKindNameEqualsAndLsType(kindName, lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ThingKindController.jsonFindThingKindsByLsType(@RequestParam("lsType") ThingType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ThingKind.toJsonArray(ThingKind.findThingKindsByLsType(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeAndKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ThingKindController.jsonFindThingKindsByLsTypeAndKindEquals(@RequestParam("lsTypeAndKind") String lsTypeAndKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ThingKind.toJsonArray(ThingKind.findThingKindsByLsTypeAndKindEquals(lsTypeAndKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ThingPageArchiveController.java b/src/main/java/com/labsynch/labseer/web/ThingPageArchiveController.java deleted file mode 100755 index 743d34b02..000000000 --- a/src/main/java/com/labsynch/labseer/web/ThingPageArchiveController.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ThingPageArchive; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ThingPageArchive.class) -@Controller -@RequestMapping("/thingpagearchives") -@RooWebScaffold(path = "thingpagearchives", formBackingObject = ThingPageArchive.class) -public class ThingPageArchiveController { - - @RequestMapping(value = "/{id}", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - ThingPageArchive thingPageArchive = ThingPageArchive.findThingPageArchive(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - if (thingPageArchive == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(thingPageArchive.toJson(), headers, HttpStatus.OK); - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - List result = ThingPageArchive.findAllThingPageArchives(); - return new ResponseEntity(ThingPageArchive.toJsonArray(result), headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json) { - ThingPageArchive thingPageArchive = ThingPageArchive.fromJsonToThingPageArchive(json); - thingPageArchive.persist(); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - for (ThingPageArchive thingPageArchive : ThingPageArchive.fromJsonArrayToThingPageArchives(json)) { - thingPageArchive.persist(); - } - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(value = { "/", "/{id}" }, method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - ThingPageArchive thingPageArchive = ThingPageArchive.fromJsonToThingPageArchive(json); - if (thingPageArchive.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - for (ThingPageArchive thingPageArchive : ThingPageArchive.fromJsonArrayToThingPageArchives(json)) { - if (thingPageArchive.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - ThingPageArchive thingPageArchive = ThingPageArchive.findThingPageArchive(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - if (thingPageArchive == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - thingPageArchive.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/ThingPageArchiveController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ThingPageArchiveController_Roo_Controller.aj deleted file mode 100755 index f4a674bb1..000000000 --- a/src/main/java/com/labsynch/labseer/web/ThingPageArchiveController_Roo_Controller.aj +++ /dev/null @@ -1,110 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ThingPageArchive; -import com.labsynch.labseer.web.ThingPageArchiveController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ThingPageArchiveController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ThingPageArchiveController.create(@Valid ThingPageArchive thingPageArchive, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, thingPageArchive); - return "thingpagearchives/create"; - } - uiModel.asMap().clear(); - thingPageArchive.persist(); - return "redirect:/thingpagearchives/" + encodeUrlPathSegment(thingPageArchive.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ThingPageArchiveController.createForm(Model uiModel) { - populateEditForm(uiModel, new ThingPageArchive()); - return "thingpagearchives/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ThingPageArchiveController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("thingpagearchive", ThingPageArchive.findThingPageArchive(id)); - uiModel.addAttribute("itemId", id); - return "thingpagearchives/show"; - } - - @RequestMapping(produces = "text/html") - public String ThingPageArchiveController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("thingpagearchives", ThingPageArchive.findThingPageArchiveEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ThingPageArchive.countThingPageArchives() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("thingpagearchives", ThingPageArchive.findAllThingPageArchives(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "thingpagearchives/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ThingPageArchiveController.update(@Valid ThingPageArchive thingPageArchive, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, thingPageArchive); - return "thingpagearchives/update"; - } - uiModel.asMap().clear(); - thingPageArchive.merge(); - return "redirect:/thingpagearchives/" + encodeUrlPathSegment(thingPageArchive.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ThingPageArchiveController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ThingPageArchive.findThingPageArchive(id)); - return "thingpagearchives/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ThingPageArchiveController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ThingPageArchive thingPageArchive = ThingPageArchive.findThingPageArchive(id); - thingPageArchive.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/thingpagearchives"; - } - - void ThingPageArchiveController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("thingPageArchive_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("thingPageArchive_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ThingPageArchiveController.populateEditForm(Model uiModel, ThingPageArchive thingPageArchive) { - uiModel.addAttribute("thingPageArchive", thingPageArchive); - addDateTimeFormatPatterns(uiModel); - } - - String ThingPageArchiveController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ThingPageController.java b/src/main/java/com/labsynch/labseer/web/ThingPageController.java deleted file mode 100755 index 487fd0eb9..000000000 --- a/src/main/java/com/labsynch/labseer/web/ThingPageController.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.util.List; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ThingPage.class) -@Controller -@RequestMapping("/thingpages") -@RooWebScaffold(path = "thingpages", formBackingObject = ThingPage.class) -public class ThingPageController { - - @Autowired - private PropertiesUtilService propertiesUtilService; - - @RequestMapping(value = "/{id}", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity showJson(@PathVariable("id") Long id) { - ThingPage thingPage = ThingPage.findThingPage(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - if (thingPage == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(thingPage.toJson(), headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - List result = ThingPage.findAllThingPages(); - return new ResponseEntity(ThingPage.toJsonArray(result), headers, HttpStatus.OK); - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJson(@RequestBody String json) { - ThingPage thingPage = ThingPage.fromJsonToThingPage(json); - thingPage.persist(); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity createFromJsonArray(@RequestBody String json) { - int batchSize = propertiesUtilService.getBatchSize(); - int i = 0; - for (ThingPage thingPage : ThingPage.fromJsonArrayToThingPages(json)) { - thingPage.persist(); - if (i % batchSize == 0) { - thingPage.flush(); - thingPage.clear(); - } - i++; - } - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - return new ResponseEntity(headers, HttpStatus.CREATED); - } - - @RequestMapping(value = { "/", "/{id}" }, method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJson(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - ThingPage thingPage = ThingPage.fromJsonToThingPage(json); - if (thingPage.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity updateFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - for (ThingPage thingPage : ThingPage.fromJsonArrayToThingPages(json)) { - if (thingPage.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - } - return new ResponseEntity(headers, HttpStatus.OK); - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity deleteFromJson(@PathVariable("id") Long id) { - ThingPage thingPage = ThingPage.findThingPage(id); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - if (thingPage == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - thingPage.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/ThingPageController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ThingPageController_Roo_Controller.aj deleted file mode 100755 index e38dd87a3..000000000 --- a/src/main/java/com/labsynch/labseer/web/ThingPageController_Roo_Controller.aj +++ /dev/null @@ -1,121 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AbstractThing; -import com.labsynch.labseer.domain.LsTransaction; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.web.ThingPageController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ThingPageController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ThingPageController.create(@Valid ThingPage thingPage, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, thingPage); - return "thingpages/create"; - } - uiModel.asMap().clear(); - thingPage.persist(); - return "redirect:/thingpages/" + encodeUrlPathSegment(thingPage.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ThingPageController.createForm(Model uiModel) { - populateEditForm(uiModel, new ThingPage()); - List dependencies = new ArrayList(); - if (AbstractThing.countAbstractThings() == 0) { - dependencies.add(new String[] { "lsTransaction", "abstractthings" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "thingpages/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ThingPageController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("thingpage", ThingPage.findThingPage(id)); - uiModel.addAttribute("itemId", id); - return "thingpages/show"; - } - - @RequestMapping(produces = "text/html") - public String ThingPageController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("thingpages", ThingPage.findThingPageEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ThingPage.countThingPages() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "thingpages/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ThingPageController.update(@Valid ThingPage thingPage, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, thingPage); - return "thingpages/update"; - } - uiModel.asMap().clear(); - thingPage.merge(); - return "redirect:/thingpages/" + encodeUrlPathSegment(thingPage.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ThingPageController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ThingPage.findThingPage(id)); - return "thingpages/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ThingPageController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ThingPage thingPage = ThingPage.findThingPage(id); - thingPage.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/thingpages"; - } - - void ThingPageController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("thingPage_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("thingPage_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void ThingPageController.populateEditForm(Model uiModel, ThingPage thingPage) { - uiModel.addAttribute("thingPage", thingPage); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("abstractthings", AbstractThing.findAllAbstractThings()); - uiModel.addAttribute("lstransactions", LsTransaction.findAllLsTransactions()); - } - - String ThingPageController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ThingTypeController.java b/src/main/java/com/labsynch/labseer/web/ThingTypeController.java deleted file mode 100755 index a59f74e14..000000000 --- a/src/main/java/com/labsynch/labseer/web/ThingTypeController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ThingType; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ThingType.class) -@Controller -@RequestMapping("/thingtypes") -@RooWebScaffold(path = "thingtypes", formBackingObject = ThingType.class) -@RooWebFinder -public class ThingTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller.aj deleted file mode 100755 index 5158c77f8..000000000 --- a/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ThingType; -import com.labsynch.labseer.web.ThingTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ThingTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ThingTypeController.create(@Valid ThingType thingType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, thingType); - return "thingtypes/create"; - } - uiModel.asMap().clear(); - thingType.persist(); - return "redirect:/thingtypes/" + encodeUrlPathSegment(thingType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ThingTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new ThingType()); - return "thingtypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ThingTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("thingtype", ThingType.findThingType(id)); - uiModel.addAttribute("itemId", id); - return "thingtypes/show"; - } - - @RequestMapping(produces = "text/html") - public String ThingTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("thingtypes", ThingType.findThingTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ThingType.countThingTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("thingtypes", ThingType.findAllThingTypes(sortFieldName, sortOrder)); - } - return "thingtypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ThingTypeController.update(@Valid ThingType thingType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, thingType); - return "thingtypes/update"; - } - uiModel.asMap().clear(); - thingType.merge(); - return "redirect:/thingtypes/" + encodeUrlPathSegment(thingType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ThingTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ThingType.findThingType(id)); - return "thingtypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ThingTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ThingType thingType = ThingType.findThingType(id); - thingType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/thingtypes"; - } - - void ThingTypeController.populateEditForm(Model uiModel, ThingType thingType) { - uiModel.addAttribute("thingType", thingType); - } - - String ThingTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller_Finder.aj deleted file mode 100755 index b070bd75c..000000000 --- a/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ThingType; -import com.labsynch.labseer.web.ThingTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ThingTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByTypeNameEquals", "form" }, method = RequestMethod.GET) - public String ThingTypeController.findThingTypesByTypeNameEqualsForm(Model uiModel) { - return "thingtypes/findThingTypesByTypeNameEquals"; - } - - @RequestMapping(params = "find=ByTypeNameEquals", method = RequestMethod.GET) - public String ThingTypeController.findThingTypesByTypeNameEquals(@RequestParam("typeName") String typeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("thingtypes", ThingType.findThingTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ThingType.countFindThingTypesByTypeNameEquals(typeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("thingtypes", ThingType.findThingTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).getResultList()); - } - return "thingtypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller_Json.aj deleted file mode 100755 index 2deb6186d..000000000 --- a/src/main/java/com/labsynch/labseer/web/ThingTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ThingType; -import com.labsynch.labseer.web.ThingTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ThingTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ThingTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ThingType thingType = ThingType.findThingType(id); - if (thingType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(thingType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ThingTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ThingType.findAllThingTypes(); - return new ResponseEntity(ThingType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ThingTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ThingType thingType = ThingType.fromJsonToThingType(json); - thingType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+thingType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ThingTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ThingType thingType: ThingType.fromJsonArrayToThingTypes(json)) { - thingType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ThingTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ThingType thingType = ThingType.fromJsonToThingType(json); - thingType.setId(id); - if (thingType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ThingTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ThingType thingType = ThingType.findThingType(id); - if (thingType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - thingType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ThingTypeController.jsonFindThingTypesByTypeNameEquals(@RequestParam("typeName") String typeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ThingType.toJsonArray(ThingType.findThingTypesByTypeNameEquals(typeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupController.java b/src/main/java/com/labsynch/labseer/web/TreatmentGroupController.java deleted file mode 100755 index 9dfe39b7e..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupController.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.service.TreatmentGroupService; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = TreatmentGroup.class) -@Controller -@RequestMapping("/treatmentgroups") -@RooWebScaffold(path = "treatmentgroups", formBackingObject = TreatmentGroup.class) -@RooWebFinder -@Transactional -public class TreatmentGroupController { -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller.aj deleted file mode 100755 index 68311b2e4..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller.aj +++ /dev/null @@ -1,120 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.Subject; -import com.labsynch.labseer.domain.ThingPage; -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.domain.TreatmentGroupLabel; -import com.labsynch.labseer.domain.TreatmentGroupState; -import com.labsynch.labseer.web.TreatmentGroupController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect TreatmentGroupController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String TreatmentGroupController.create(@Valid TreatmentGroup treatmentGroup, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, treatmentGroup); - return "treatmentgroups/create"; - } - uiModel.asMap().clear(); - treatmentGroup.persist(); - return "redirect:/treatmentgroups/" + encodeUrlPathSegment(treatmentGroup.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String TreatmentGroupController.createForm(Model uiModel) { - populateEditForm(uiModel, new TreatmentGroup()); - return "treatmentgroups/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String TreatmentGroupController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("treatmentgroup", TreatmentGroup.findTreatmentGroup(id)); - uiModel.addAttribute("itemId", id); - return "treatmentgroups/show"; - } - - @RequestMapping(produces = "text/html") - public String TreatmentGroupController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findTreatmentGroupEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) TreatmentGroup.countTreatmentGroups() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findAllTreatmentGroups(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroups/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String TreatmentGroupController.update(@Valid TreatmentGroup treatmentGroup, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, treatmentGroup); - return "treatmentgroups/update"; - } - uiModel.asMap().clear(); - treatmentGroup.merge(); - return "redirect:/treatmentgroups/" + encodeUrlPathSegment(treatmentGroup.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String TreatmentGroupController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, TreatmentGroup.findTreatmentGroup(id)); - return "treatmentgroups/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String TreatmentGroupController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - TreatmentGroup treatmentGroup = TreatmentGroup.findTreatmentGroup(id); - treatmentGroup.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/treatmentgroups"; - } - - void TreatmentGroupController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("treatmentGroup_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("treatmentGroup_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void TreatmentGroupController.populateEditForm(Model uiModel, TreatmentGroup treatmentGroup) { - uiModel.addAttribute("treatmentGroup", treatmentGroup); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAllAnalysisGroups()); - uiModel.addAttribute("subjects", Subject.findAllSubjects()); - uiModel.addAttribute("thingpages", ThingPage.findAllThingPages()); - uiModel.addAttribute("treatmentgrouplabels", TreatmentGroupLabel.findAllTreatmentGroupLabels()); - uiModel.addAttribute("treatmentgroupstates", TreatmentGroupState.findAllTreatmentGroupStates()); - } - - String TreatmentGroupController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller_Finder.aj deleted file mode 100755 index db57e62f4..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,78 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.web.TreatmentGroupController; -import java.util.Set; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect TreatmentGroupController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByAnalysisGroups", "form" }, method = RequestMethod.GET) - public String TreatmentGroupController.findTreatmentGroupsByAnalysisGroupsForm(Model uiModel) { - uiModel.addAttribute("analysisgroups", AnalysisGroup.findAllAnalysisGroups()); - return "treatmentgroups/findTreatmentGroupsByAnalysisGroups"; - } - - @RequestMapping(params = "find=ByAnalysisGroups", method = RequestMethod.GET) - public String TreatmentGroupController.findTreatmentGroupsByAnalysisGroups(@RequestParam("analysisGroups") Set analysisGroups, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findTreatmentGroupsByAnalysisGroups(analysisGroups, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) TreatmentGroup.countFindTreatmentGroupsByAnalysisGroups(analysisGroups) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findTreatmentGroupsByAnalysisGroups(analysisGroups, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroups/list"; - } - - @RequestMapping(params = { "find=ByCodeNameEquals", "form" }, method = RequestMethod.GET) - public String TreatmentGroupController.findTreatmentGroupsByCodeNameEqualsForm(Model uiModel) { - return "treatmentgroups/findTreatmentGroupsByCodeNameEquals"; - } - - @RequestMapping(params = "find=ByCodeNameEquals", method = RequestMethod.GET) - public String TreatmentGroupController.findTreatmentGroupsByCodeNameEquals(@RequestParam("codeName") String codeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findTreatmentGroupsByCodeNameEquals(codeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) TreatmentGroup.countFindTreatmentGroupsByCodeNameEquals(codeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findTreatmentGroupsByCodeNameEquals(codeName, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroups/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String TreatmentGroupController.findTreatmentGroupsByLsTransactionEqualsForm(Model uiModel) { - return "treatmentgroups/findTreatmentGroupsByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String TreatmentGroupController.findTreatmentGroupsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findTreatmentGroupsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) TreatmentGroup.countFindTreatmentGroupsByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findTreatmentGroupsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroups/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller_Json.aj deleted file mode 100755 index 8a693e189..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupController_Roo_Controller_Json.aj +++ /dev/null @@ -1,150 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.AnalysisGroup; -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.web.TreatmentGroupController; -import java.util.List; -import java.util.Set; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect TreatmentGroupController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - TreatmentGroup treatmentGroup = TreatmentGroup.findTreatmentGroup(id); - if (treatmentGroup == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(treatmentGroup.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = TreatmentGroup.findAllTreatmentGroups(); - return new ResponseEntity(TreatmentGroup.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - TreatmentGroup treatmentGroup = TreatmentGroup.fromJsonToTreatmentGroup(json); - treatmentGroup.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+treatmentGroup.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (TreatmentGroup treatmentGroup: TreatmentGroup.fromJsonArrayToTreatmentGroups(json)) { - treatmentGroup.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - TreatmentGroup treatmentGroup = TreatmentGroup.fromJsonToTreatmentGroup(json); - treatmentGroup.setId(id); - if (treatmentGroup.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - TreatmentGroup treatmentGroup = TreatmentGroup.findTreatmentGroup(id); - if (treatmentGroup == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - treatmentGroup.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByAnalysisGroups", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupController.jsonFindTreatmentGroupsByAnalysisGroups(@RequestParam("analysisGroups") Set analysisGroups) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(TreatmentGroup.toJsonArray(TreatmentGroup.findTreatmentGroupsByAnalysisGroups(analysisGroups).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupController.jsonFindTreatmentGroupsByCodeNameEquals(@RequestParam("codeName") String codeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(TreatmentGroup.toJsonArray(TreatmentGroup.findTreatmentGroupsByCodeNameEquals(codeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupController.jsonFindTreatmentGroupsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(TreatmentGroup.toJsonArray(TreatmentGroup.findTreatmentGroupsByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController.java b/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController.java deleted file mode 100755 index 6b58a5045..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroupLabel; -import com.labsynch.labseer.utils.PropertiesUtilService; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RequestMapping("/treatmentgrouplabels") -@Controller -@RooWebScaffold(path = "treatmentgrouplabels", formBackingObject = TreatmentGroupLabel.class) -@RooWebJson(jsonObject = TreatmentGroupLabel.class) -@RooWebFinder -public class TreatmentGroupLabelController { -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller.aj deleted file mode 100755 index 6a6110edf..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller.aj +++ /dev/null @@ -1,119 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.domain.TreatmentGroupLabel; -import com.labsynch.labseer.web.TreatmentGroupLabelController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect TreatmentGroupLabelController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String TreatmentGroupLabelController.create(@Valid TreatmentGroupLabel treatmentGroupLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, treatmentGroupLabel); - return "treatmentgrouplabels/create"; - } - uiModel.asMap().clear(); - treatmentGroupLabel.persist(); - return "redirect:/treatmentgrouplabels/" + encodeUrlPathSegment(treatmentGroupLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String TreatmentGroupLabelController.createForm(Model uiModel) { - populateEditForm(uiModel, new TreatmentGroupLabel()); - List dependencies = new ArrayList(); - if (TreatmentGroup.countTreatmentGroups() == 0) { - dependencies.add(new String[] { "treatmentGroup", "treatmentgroups" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "treatmentgrouplabels/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String TreatmentGroupLabelController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("treatmentgrouplabel", TreatmentGroupLabel.findTreatmentGroupLabel(id)); - uiModel.addAttribute("itemId", id); - return "treatmentgrouplabels/show"; - } - - @RequestMapping(produces = "text/html") - public String TreatmentGroupLabelController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgrouplabels", TreatmentGroupLabel.findTreatmentGroupLabelEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) TreatmentGroupLabel.countTreatmentGroupLabels() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgrouplabels", TreatmentGroupLabel.findAllTreatmentGroupLabels(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgrouplabels/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String TreatmentGroupLabelController.update(@Valid TreatmentGroupLabel treatmentGroupLabel, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, treatmentGroupLabel); - return "treatmentgrouplabels/update"; - } - uiModel.asMap().clear(); - treatmentGroupLabel.merge(); - return "redirect:/treatmentgrouplabels/" + encodeUrlPathSegment(treatmentGroupLabel.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String TreatmentGroupLabelController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, TreatmentGroupLabel.findTreatmentGroupLabel(id)); - return "treatmentgrouplabels/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String TreatmentGroupLabelController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - TreatmentGroupLabel treatmentGroupLabel = TreatmentGroupLabel.findTreatmentGroupLabel(id); - treatmentGroupLabel.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/treatmentgrouplabels"; - } - - void TreatmentGroupLabelController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("treatmentGroupLabel_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("treatmentGroupLabel_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void TreatmentGroupLabelController.populateEditForm(Model uiModel, TreatmentGroupLabel treatmentGroupLabel) { - uiModel.addAttribute("treatmentGroupLabel", treatmentGroupLabel); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findAllTreatmentGroups()); - } - - String TreatmentGroupLabelController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller_Finder.aj deleted file mode 100755 index ea08d9b2d..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,57 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.domain.TreatmentGroupLabel; -import com.labsynch.labseer.web.TreatmentGroupLabelController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect TreatmentGroupLabelController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String TreatmentGroupLabelController.findTreatmentGroupLabelsByLsTransactionEqualsForm(Model uiModel) { - return "treatmentgrouplabels/findTreatmentGroupLabelsByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String TreatmentGroupLabelController.findTreatmentGroupLabelsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgrouplabels", TreatmentGroupLabel.findTreatmentGroupLabelsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) TreatmentGroupLabel.countFindTreatmentGroupLabelsByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgrouplabels", TreatmentGroupLabel.findTreatmentGroupLabelsByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgrouplabels/list"; - } - - @RequestMapping(params = { "find=ByTreatmentGroup", "form" }, method = RequestMethod.GET) - public String TreatmentGroupLabelController.findTreatmentGroupLabelsByTreatmentGroupForm(Model uiModel) { - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findAllTreatmentGroups()); - return "treatmentgrouplabels/findTreatmentGroupLabelsByTreatmentGroup"; - } - - @RequestMapping(params = "find=ByTreatmentGroup", method = RequestMethod.GET) - public String TreatmentGroupLabelController.findTreatmentGroupLabelsByTreatmentGroup(@RequestParam("treatmentGroup") TreatmentGroup treatmentGroup, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgrouplabels", TreatmentGroupLabel.findTreatmentGroupLabelsByTreatmentGroup(treatmentGroup, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) TreatmentGroupLabel.countFindTreatmentGroupLabelsByTreatmentGroup(treatmentGroup) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgrouplabels", TreatmentGroupLabel.findTreatmentGroupLabelsByTreatmentGroup(treatmentGroup, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgrouplabels/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller_Json.aj deleted file mode 100755 index 06d2e6f09..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupLabelController_Roo_Controller_Json.aj +++ /dev/null @@ -1,137 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.domain.TreatmentGroupLabel; -import com.labsynch.labseer.web.TreatmentGroupLabelController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect TreatmentGroupLabelController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupLabelController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - TreatmentGroupLabel treatmentGroupLabel = TreatmentGroupLabel.findTreatmentGroupLabel(id); - if (treatmentGroupLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(treatmentGroupLabel.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupLabelController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = TreatmentGroupLabel.findAllTreatmentGroupLabels(); - return new ResponseEntity(TreatmentGroupLabel.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupLabelController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - TreatmentGroupLabel treatmentGroupLabel = TreatmentGroupLabel.fromJsonToTreatmentGroupLabel(json); - treatmentGroupLabel.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+treatmentGroupLabel.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupLabelController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (TreatmentGroupLabel treatmentGroupLabel: TreatmentGroupLabel.fromJsonArrayToTreatmentGroupLabels(json)) { - treatmentGroupLabel.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupLabelController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - TreatmentGroupLabel treatmentGroupLabel = TreatmentGroupLabel.fromJsonToTreatmentGroupLabel(json); - treatmentGroupLabel.setId(id); - if (treatmentGroupLabel.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupLabelController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - TreatmentGroupLabel treatmentGroupLabel = TreatmentGroupLabel.findTreatmentGroupLabel(id); - if (treatmentGroupLabel == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - treatmentGroupLabel.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupLabelController.jsonFindTreatmentGroupLabelsByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(TreatmentGroupLabel.toJsonArray(TreatmentGroupLabel.findTreatmentGroupLabelsByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTreatmentGroup", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupLabelController.jsonFindTreatmentGroupLabelsByTreatmentGroup(@RequestParam("treatmentGroup") TreatmentGroup treatmentGroup) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(TreatmentGroupLabel.toJsonArray(TreatmentGroupLabel.findTreatmentGroupLabelsByTreatmentGroup(treatmentGroup).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupMiniDTOController.java b/src/main/java/com/labsynch/labseer/web/TreatmentGroupMiniDTOController.java deleted file mode 100755 index bbbb6beda..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupMiniDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.TreatmentGroupMiniDTO; - -@RooWebJson(jsonObject = TreatmentGroupMiniDTO.class) -@Controller -@RequestMapping("/treatmentgroes") -public class TreatmentGroupMiniDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController.java b/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController.java deleted file mode 100755 index 097a72fac..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroupState; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = TreatmentGroupState.class) -@Controller -@RequestMapping("/treatmentgroupstates") -@RooWebScaffold(path = "treatmentgroupstates", formBackingObject = TreatmentGroupState.class) -@RooWebFinder -public class TreatmentGroupStateController { -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller.aj deleted file mode 100755 index 481c1b532..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller.aj +++ /dev/null @@ -1,121 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.domain.TreatmentGroupState; -import com.labsynch.labseer.domain.TreatmentGroupValue; -import com.labsynch.labseer.web.TreatmentGroupStateController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect TreatmentGroupStateController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String TreatmentGroupStateController.create(@Valid TreatmentGroupState treatmentGroupState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, treatmentGroupState); - return "treatmentgroupstates/create"; - } - uiModel.asMap().clear(); - treatmentGroupState.persist(); - return "redirect:/treatmentgroupstates/" + encodeUrlPathSegment(treatmentGroupState.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String TreatmentGroupStateController.createForm(Model uiModel) { - populateEditForm(uiModel, new TreatmentGroupState()); - List dependencies = new ArrayList(); - if (TreatmentGroup.countTreatmentGroups() == 0) { - dependencies.add(new String[] { "treatmentGroup", "treatmentgroups" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "treatmentgroupstates/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String TreatmentGroupStateController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("treatmentgroupstate", TreatmentGroupState.findTreatmentGroupState(id)); - uiModel.addAttribute("itemId", id); - return "treatmentgroupstates/show"; - } - - @RequestMapping(produces = "text/html") - public String TreatmentGroupStateController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroupstates", TreatmentGroupState.findTreatmentGroupStateEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) TreatmentGroupState.countTreatmentGroupStates() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroupstates", TreatmentGroupState.findAllTreatmentGroupStates(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroupstates/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String TreatmentGroupStateController.update(@Valid TreatmentGroupState treatmentGroupState, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, treatmentGroupState); - return "treatmentgroupstates/update"; - } - uiModel.asMap().clear(); - treatmentGroupState.merge(); - return "redirect:/treatmentgroupstates/" + encodeUrlPathSegment(treatmentGroupState.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String TreatmentGroupStateController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, TreatmentGroupState.findTreatmentGroupState(id)); - return "treatmentgroupstates/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String TreatmentGroupStateController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - TreatmentGroupState treatmentGroupState = TreatmentGroupState.findTreatmentGroupState(id); - treatmentGroupState.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/treatmentgroupstates"; - } - - void TreatmentGroupStateController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("treatmentGroupState_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("treatmentGroupState_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void TreatmentGroupStateController.populateEditForm(Model uiModel, TreatmentGroupState treatmentGroupState) { - uiModel.addAttribute("treatmentGroupState", treatmentGroupState); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findAllTreatmentGroups()); - uiModel.addAttribute("treatmentgroupvalues", TreatmentGroupValue.findAllTreatmentGroupValues()); - } - - String TreatmentGroupStateController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller_Finder.aj deleted file mode 100755 index 97635b61a..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,77 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.domain.TreatmentGroupState; -import com.labsynch.labseer.web.TreatmentGroupStateController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect TreatmentGroupStateController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String TreatmentGroupStateController.findTreatmentGroupStatesByLsTransactionEqualsForm(Model uiModel) { - return "treatmentgroupstates/findTreatmentGroupStatesByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String TreatmentGroupStateController.findTreatmentGroupStatesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroupstates", TreatmentGroupState.findTreatmentGroupStatesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) TreatmentGroupState.countFindTreatmentGroupStatesByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroupstates", TreatmentGroupState.findTreatmentGroupStatesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroupstates/list"; - } - - @RequestMapping(params = { "find=ByLsTypeAndKindEquals", "form" }, method = RequestMethod.GET) - public String TreatmentGroupStateController.findTreatmentGroupStatesByLsTypeAndKindEqualsForm(Model uiModel) { - return "treatmentgroupstates/findTreatmentGroupStatesByLsTypeAndKindEquals"; - } - - @RequestMapping(params = "find=ByLsTypeAndKindEquals", method = RequestMethod.GET) - public String TreatmentGroupStateController.findTreatmentGroupStatesByLsTypeAndKindEquals(@RequestParam("lsTypeAndKind") String lsTypeAndKind, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroupstates", TreatmentGroupState.findTreatmentGroupStatesByLsTypeAndKindEquals(lsTypeAndKind, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) TreatmentGroupState.countFindTreatmentGroupStatesByLsTypeAndKindEquals(lsTypeAndKind) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroupstates", TreatmentGroupState.findTreatmentGroupStatesByLsTypeAndKindEquals(lsTypeAndKind, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroupstates/list"; - } - - @RequestMapping(params = { "find=ByTreatmentGroup", "form" }, method = RequestMethod.GET) - public String TreatmentGroupStateController.findTreatmentGroupStatesByTreatmentGroupForm(Model uiModel) { - uiModel.addAttribute("treatmentgroups", TreatmentGroup.findAllTreatmentGroups()); - return "treatmentgroupstates/findTreatmentGroupStatesByTreatmentGroup"; - } - - @RequestMapping(params = "find=ByTreatmentGroup", method = RequestMethod.GET) - public String TreatmentGroupStateController.findTreatmentGroupStatesByTreatmentGroup(@RequestParam("treatmentGroup") TreatmentGroup treatmentGroup, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroupstates", TreatmentGroupState.findTreatmentGroupStatesByTreatmentGroup(treatmentGroup, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) TreatmentGroupState.countFindTreatmentGroupStatesByTreatmentGroup(treatmentGroup) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroupstates", TreatmentGroupState.findTreatmentGroupStatesByTreatmentGroup(treatmentGroup, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroupstates/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller_Json.aj deleted file mode 100755 index 66f6e5d6b..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupStateController_Roo_Controller_Json.aj +++ /dev/null @@ -1,149 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroup; -import com.labsynch.labseer.domain.TreatmentGroupState; -import com.labsynch.labseer.web.TreatmentGroupStateController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect TreatmentGroupStateController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupStateController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - TreatmentGroupState treatmentGroupState = TreatmentGroupState.findTreatmentGroupState(id); - if (treatmentGroupState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(treatmentGroupState.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupStateController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = TreatmentGroupState.findAllTreatmentGroupStates(); - return new ResponseEntity(TreatmentGroupState.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupStateController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - TreatmentGroupState treatmentGroupState = TreatmentGroupState.fromJsonToTreatmentGroupState(json); - treatmentGroupState.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+treatmentGroupState.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupStateController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (TreatmentGroupState treatmentGroupState: TreatmentGroupState.fromJsonArrayToTreatmentGroupStates(json)) { - treatmentGroupState.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupStateController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - TreatmentGroupState treatmentGroupState = TreatmentGroupState.fromJsonToTreatmentGroupState(json); - treatmentGroupState.setId(id); - if (treatmentGroupState.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupStateController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - TreatmentGroupState treatmentGroupState = TreatmentGroupState.findTreatmentGroupState(id); - if (treatmentGroupState == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - treatmentGroupState.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupStateController.jsonFindTreatmentGroupStatesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(TreatmentGroupState.toJsonArray(TreatmentGroupState.findTreatmentGroupStatesByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTypeAndKindEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupStateController.jsonFindTreatmentGroupStatesByLsTypeAndKindEquals(@RequestParam("lsTypeAndKind") String lsTypeAndKind) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(TreatmentGroupState.toJsonArray(TreatmentGroupState.findTreatmentGroupStatesByLsTypeAndKindEquals(lsTypeAndKind).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTreatmentGroup", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupStateController.jsonFindTreatmentGroupStatesByTreatmentGroup(@RequestParam("treatmentGroup") TreatmentGroup treatmentGroup) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(TreatmentGroupState.toJsonArray(TreatmentGroupState.findTreatmentGroupStatesByTreatmentGroup(treatmentGroup).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController.java b/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController.java deleted file mode 100755 index 8d5451ca5..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroupValue; -import com.labsynch.labseer.utils.PropertiesUtilService; -import flexjson.JSONTokener; -import java.io.BufferedReader; -import java.io.StringReader; -import java.util.List; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = TreatmentGroupValue.class) -@Controller -@RequestMapping("/treatmentgroupvalues") -@RooWebScaffold(path = "treatmentgroupvalues", formBackingObject = TreatmentGroupValue.class) -@RooWebFinder -public class TreatmentGroupValueController { -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller.aj deleted file mode 100755 index 642466874..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller.aj +++ /dev/null @@ -1,120 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroupState; -import com.labsynch.labseer.domain.TreatmentGroupValue; -import com.labsynch.labseer.web.TreatmentGroupValueController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect TreatmentGroupValueController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String TreatmentGroupValueController.create(@Valid TreatmentGroupValue treatmentGroupValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, treatmentGroupValue); - return "treatmentgroupvalues/create"; - } - uiModel.asMap().clear(); - treatmentGroupValue.persist(); - return "redirect:/treatmentgroupvalues/" + encodeUrlPathSegment(treatmentGroupValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String TreatmentGroupValueController.createForm(Model uiModel) { - populateEditForm(uiModel, new TreatmentGroupValue()); - List dependencies = new ArrayList(); - if (TreatmentGroupState.countTreatmentGroupStates() == 0) { - dependencies.add(new String[] { "lsState", "treatmentgroupstates" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "treatmentgroupvalues/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String TreatmentGroupValueController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("treatmentgroupvalue", TreatmentGroupValue.findTreatmentGroupValue(id)); - uiModel.addAttribute("itemId", id); - return "treatmentgroupvalues/show"; - } - - @RequestMapping(produces = "text/html") - public String TreatmentGroupValueController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroupvalues", TreatmentGroupValue.findTreatmentGroupValueEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) TreatmentGroupValue.countTreatmentGroupValues() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroupvalues", TreatmentGroupValue.findAllTreatmentGroupValues(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroupvalues/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String TreatmentGroupValueController.update(@Valid TreatmentGroupValue treatmentGroupValue, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, treatmentGroupValue); - return "treatmentgroupvalues/update"; - } - uiModel.asMap().clear(); - treatmentGroupValue.merge(); - return "redirect:/treatmentgroupvalues/" + encodeUrlPathSegment(treatmentGroupValue.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String TreatmentGroupValueController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, TreatmentGroupValue.findTreatmentGroupValue(id)); - return "treatmentgroupvalues/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String TreatmentGroupValueController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - TreatmentGroupValue treatmentGroupValue = TreatmentGroupValue.findTreatmentGroupValue(id); - treatmentGroupValue.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/treatmentgroupvalues"; - } - - void TreatmentGroupValueController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("treatmentGroupValue_datevalue_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("treatmentGroupValue_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - uiModel.addAttribute("treatmentGroupValue_modifieddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void TreatmentGroupValueController.populateEditForm(Model uiModel, TreatmentGroupValue treatmentGroupValue) { - uiModel.addAttribute("treatmentGroupValue", treatmentGroupValue); - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("treatmentgroupstates", TreatmentGroupState.findAllTreatmentGroupStates()); - } - - String TreatmentGroupValueController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller_Finder.aj deleted file mode 100755 index b93102396..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,97 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroupState; -import com.labsynch.labseer.domain.TreatmentGroupValue; -import com.labsynch.labseer.web.TreatmentGroupValueController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect TreatmentGroupValueController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByCodeValueEquals", "form" }, method = RequestMethod.GET) - public String TreatmentGroupValueController.findTreatmentGroupValuesByCodeValueEqualsForm(Model uiModel) { - return "treatmentgroupvalues/findTreatmentGroupValuesByCodeValueEquals"; - } - - @RequestMapping(params = "find=ByCodeValueEquals", method = RequestMethod.GET) - public String TreatmentGroupValueController.findTreatmentGroupValuesByCodeValueEquals(@RequestParam("codeValue") String codeValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroupvalues", TreatmentGroupValue.findTreatmentGroupValuesByCodeValueEquals(codeValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) TreatmentGroupValue.countFindTreatmentGroupValuesByCodeValueEquals(codeValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroupvalues", TreatmentGroupValue.findTreatmentGroupValuesByCodeValueEquals(codeValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroupvalues/list"; - } - - @RequestMapping(params = { "find=ByIgnoredNotAndCodeValueEquals", "form" }, method = RequestMethod.GET) - public String TreatmentGroupValueController.findTreatmentGroupValuesByIgnoredNotAndCodeValueEqualsForm(Model uiModel) { - return "treatmentgroupvalues/findTreatmentGroupValuesByIgnoredNotAndCodeValueEquals"; - } - - @RequestMapping(params = "find=ByIgnoredNotAndCodeValueEquals", method = RequestMethod.GET) - public String TreatmentGroupValueController.findTreatmentGroupValuesByIgnoredNotAndCodeValueEquals(@RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam("codeValue") String codeValue, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroupvalues", TreatmentGroupValue.findTreatmentGroupValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) TreatmentGroupValue.countFindTreatmentGroupValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroupvalues", TreatmentGroupValue.findTreatmentGroupValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroupvalues/list"; - } - - @RequestMapping(params = { "find=ByLsState", "form" }, method = RequestMethod.GET) - public String TreatmentGroupValueController.findTreatmentGroupValuesByLsStateForm(Model uiModel) { - uiModel.addAttribute("treatmentgroupstates", TreatmentGroupState.findAllTreatmentGroupStates()); - return "treatmentgroupvalues/findTreatmentGroupValuesByLsState"; - } - - @RequestMapping(params = "find=ByLsState", method = RequestMethod.GET) - public String TreatmentGroupValueController.findTreatmentGroupValuesByLsState(@RequestParam("lsState") TreatmentGroupState lsState, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroupvalues", TreatmentGroupValue.findTreatmentGroupValuesByLsState(lsState, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) TreatmentGroupValue.countFindTreatmentGroupValuesByLsState(lsState) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroupvalues", TreatmentGroupValue.findTreatmentGroupValuesByLsState(lsState, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroupvalues/list"; - } - - @RequestMapping(params = { "find=ByLsTransactionEquals", "form" }, method = RequestMethod.GET) - public String TreatmentGroupValueController.findTreatmentGroupValuesByLsTransactionEqualsForm(Model uiModel) { - return "treatmentgroupvalues/findTreatmentGroupValuesByLsTransactionEquals"; - } - - @RequestMapping(params = "find=ByLsTransactionEquals", method = RequestMethod.GET) - public String TreatmentGroupValueController.findTreatmentGroupValuesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("treatmentgroupvalues", TreatmentGroupValue.findTreatmentGroupValuesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) TreatmentGroupValue.countFindTreatmentGroupValuesByLsTransactionEquals(lsTransaction) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("treatmentgroupvalues", TreatmentGroupValue.findTreatmentGroupValuesByLsTransactionEquals(lsTransaction, sortFieldName, sortOrder).getResultList()); - } - addDateTimeFormatPatterns(uiModel); - return "treatmentgroupvalues/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller_Json.aj deleted file mode 100755 index 5de0001c4..000000000 --- a/src/main/java/com/labsynch/labseer/web/TreatmentGroupValueController_Roo_Controller_Json.aj +++ /dev/null @@ -1,161 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.TreatmentGroupState; -import com.labsynch.labseer.domain.TreatmentGroupValue; -import com.labsynch.labseer.web.TreatmentGroupValueController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect TreatmentGroupValueController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupValueController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - TreatmentGroupValue treatmentGroupValue = TreatmentGroupValue.findTreatmentGroupValue(id); - if (treatmentGroupValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(treatmentGroupValue.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupValueController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = TreatmentGroupValue.findAllTreatmentGroupValues(); - return new ResponseEntity(TreatmentGroupValue.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupValueController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - TreatmentGroupValue treatmentGroupValue = TreatmentGroupValue.fromJsonToTreatmentGroupValue(json); - treatmentGroupValue.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+treatmentGroupValue.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupValueController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (TreatmentGroupValue treatmentGroupValue: TreatmentGroupValue.fromJsonArrayToTreatmentGroupValues(json)) { - treatmentGroupValue.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupValueController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - TreatmentGroupValue treatmentGroupValue = TreatmentGroupValue.fromJsonToTreatmentGroupValue(json); - treatmentGroupValue.setId(id); - if (treatmentGroupValue.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity TreatmentGroupValueController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - TreatmentGroupValue treatmentGroupValue = TreatmentGroupValue.findTreatmentGroupValue(id); - if (treatmentGroupValue == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - treatmentGroupValue.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByCodeValueEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupValueController.jsonFindTreatmentGroupValuesByCodeValueEquals(@RequestParam("codeValue") String codeValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(TreatmentGroupValue.toJsonArray(TreatmentGroupValue.findTreatmentGroupValuesByCodeValueEquals(codeValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByIgnoredNotAndCodeValueEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupValueController.jsonFindTreatmentGroupValuesByIgnoredNotAndCodeValueEquals(@RequestParam(value = "ignored", required = false) boolean ignored, @RequestParam("codeValue") String codeValue) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(TreatmentGroupValue.toJsonArray(TreatmentGroupValue.findTreatmentGroupValuesByIgnoredNotAndCodeValueEquals(ignored, codeValue).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsState", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupValueController.jsonFindTreatmentGroupValuesByLsState(@RequestParam("lsState") TreatmentGroupState lsState) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(TreatmentGroupValue.toJsonArray(TreatmentGroupValue.findTreatmentGroupValuesByLsState(lsState).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsTransactionEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity TreatmentGroupValueController.jsonFindTreatmentGroupValuesByLsTransactionEquals(@RequestParam("lsTransaction") Long lsTransaction) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(TreatmentGroupValue.toJsonArray(TreatmentGroupValue.findTreatmentGroupValuesByLsTransactionEquals(lsTransaction).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/UncertaintyKindController.java b/src/main/java/com/labsynch/labseer/web/UncertaintyKindController.java deleted file mode 100755 index 77b152dcc..000000000 --- a/src/main/java/com/labsynch/labseer/web/UncertaintyKindController.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.UncertaintyKind; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/uncertaintykinds") -@Controller -@RooWebScaffold(path = "uncertaintykinds", formBackingObject = UncertaintyKind.class) -@RooWebJson(jsonObject = UncertaintyKind.class) -public class UncertaintyKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/UncertaintyKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/UncertaintyKindController_Roo_Controller.aj deleted file mode 100755 index 4cb4a35ee..000000000 --- a/src/main/java/com/labsynch/labseer/web/UncertaintyKindController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.UncertaintyKind; -import com.labsynch.labseer.web.UncertaintyKindController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect UncertaintyKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String UncertaintyKindController.create(@Valid UncertaintyKind uncertaintyKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, uncertaintyKind); - return "uncertaintykinds/create"; - } - uiModel.asMap().clear(); - uncertaintyKind.persist(); - return "redirect:/uncertaintykinds/" + encodeUrlPathSegment(uncertaintyKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String UncertaintyKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new UncertaintyKind()); - return "uncertaintykinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String UncertaintyKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("uncertaintykind", UncertaintyKind.findUncertaintyKind(id)); - uiModel.addAttribute("itemId", id); - return "uncertaintykinds/show"; - } - - @RequestMapping(produces = "text/html") - public String UncertaintyKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("uncertaintykinds", UncertaintyKind.findUncertaintyKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) UncertaintyKind.countUncertaintyKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("uncertaintykinds", UncertaintyKind.findAllUncertaintyKinds(sortFieldName, sortOrder)); - } - return "uncertaintykinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String UncertaintyKindController.update(@Valid UncertaintyKind uncertaintyKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, uncertaintyKind); - return "uncertaintykinds/update"; - } - uiModel.asMap().clear(); - uncertaintyKind.merge(); - return "redirect:/uncertaintykinds/" + encodeUrlPathSegment(uncertaintyKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String UncertaintyKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, UncertaintyKind.findUncertaintyKind(id)); - return "uncertaintykinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String UncertaintyKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - UncertaintyKind uncertaintyKind = UncertaintyKind.findUncertaintyKind(id); - uncertaintyKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/uncertaintykinds"; - } - - void UncertaintyKindController.populateEditForm(Model uiModel, UncertaintyKind uncertaintyKind) { - uiModel.addAttribute("uncertaintyKind", uncertaintyKind); - } - - String UncertaintyKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/UncertaintyKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/UncertaintyKindController_Roo_Controller_Json.aj deleted file mode 100755 index cf9d2866d..000000000 --- a/src/main/java/com/labsynch/labseer/web/UncertaintyKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,111 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.UncertaintyKind; -import com.labsynch.labseer.web.UncertaintyKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect UncertaintyKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity UncertaintyKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - UncertaintyKind uncertaintyKind = UncertaintyKind.findUncertaintyKind(id); - if (uncertaintyKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(uncertaintyKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity UncertaintyKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = UncertaintyKind.findAllUncertaintyKinds(); - return new ResponseEntity(UncertaintyKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity UncertaintyKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - UncertaintyKind uncertaintyKind = UncertaintyKind.fromJsonToUncertaintyKind(json); - uncertaintyKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+uncertaintyKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity UncertaintyKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (UncertaintyKind uncertaintyKind: UncertaintyKind.fromJsonArrayToUncertaintyKinds(json)) { - uncertaintyKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity UncertaintyKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - UncertaintyKind uncertaintyKind = UncertaintyKind.fromJsonToUncertaintyKind(json); - uncertaintyKind.setId(id); - if (uncertaintyKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity UncertaintyKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - UncertaintyKind uncertaintyKind = UncertaintyKind.findUncertaintyKind(id); - if (uncertaintyKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - uncertaintyKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/UnitKindController.java b/src/main/java/com/labsynch/labseer/web/UnitKindController.java deleted file mode 100755 index 72a9ac2af..000000000 --- a/src/main/java/com/labsynch/labseer/web/UnitKindController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.UnitKind; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = UnitKind.class) -@Controller -@RequestMapping("/unitkinds") -@RooWebScaffold(path = "unitkinds", formBackingObject = UnitKind.class) -public class UnitKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/UnitKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/UnitKindController_Roo_Controller.aj deleted file mode 100755 index d3da774e3..000000000 --- a/src/main/java/com/labsynch/labseer/web/UnitKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.UnitKind; -import com.labsynch.labseer.domain.UnitType; -import com.labsynch.labseer.web.UnitKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect UnitKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String UnitKindController.create(@Valid UnitKind unitKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, unitKind); - return "unitkinds/create"; - } - uiModel.asMap().clear(); - unitKind.persist(); - return "redirect:/unitkinds/" + encodeUrlPathSegment(unitKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String UnitKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new UnitKind()); - List dependencies = new ArrayList(); - if (UnitType.countUnitTypes() == 0) { - dependencies.add(new String[] { "lsType", "unittypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "unitkinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String UnitKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("unitkind", UnitKind.findUnitKind(id)); - uiModel.addAttribute("itemId", id); - return "unitkinds/show"; - } - - @RequestMapping(produces = "text/html") - public String UnitKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("unitkinds", UnitKind.findUnitKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) UnitKind.countUnitKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("unitkinds", UnitKind.findAllUnitKinds(sortFieldName, sortOrder)); - } - return "unitkinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String UnitKindController.update(@Valid UnitKind unitKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, unitKind); - return "unitkinds/update"; - } - uiModel.asMap().clear(); - unitKind.merge(); - return "redirect:/unitkinds/" + encodeUrlPathSegment(unitKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String UnitKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, UnitKind.findUnitKind(id)); - return "unitkinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String UnitKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - UnitKind unitKind = UnitKind.findUnitKind(id); - unitKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/unitkinds"; - } - - void UnitKindController.populateEditForm(Model uiModel, UnitKind unitKind) { - uiModel.addAttribute("unitKind", unitKind); - uiModel.addAttribute("unittypes", UnitType.findAllUnitTypes()); - } - - String UnitKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/UnitKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/UnitKindController_Roo_Controller_Json.aj deleted file mode 100644 index 190770d5e..000000000 --- a/src/main/java/com/labsynch/labseer/web/UnitKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,125 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.UnitKind; -import com.labsynch.labseer.domain.UnitType; -import com.labsynch.labseer.web.UnitKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect UnitKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity UnitKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - UnitKind unitKind = UnitKind.findUnitKind(id); - if (unitKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(unitKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity UnitKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = UnitKind.findAllUnitKinds(); - return new ResponseEntity(UnitKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity UnitKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - UnitKind unitKind = UnitKind.fromJsonToUnitKind(json); - unitKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+unitKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity UnitKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (UnitKind unitKind: UnitKind.fromJsonArrayToUnitKinds(json)) { - unitKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity UnitKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - UnitKind unitKind = UnitKind.fromJsonToUnitKind(json); - unitKind.setId(id); - if (unitKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity UnitKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - UnitKind unitKind = UnitKind.findUnitKind(id); - if (unitKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - unitKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity UnitKindController.jsonFindUnitKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") UnitType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(UnitKind.toJsonArray(UnitKind.findUnitKindsByKindNameEqualsAndLsType(kindName, lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/UnitTypeController.java b/src/main/java/com/labsynch/labseer/web/UnitTypeController.java deleted file mode 100755 index 68e0ce60b..000000000 --- a/src/main/java/com/labsynch/labseer/web/UnitTypeController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.UnitType; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = UnitType.class) -@Controller -@RequestMapping("/unittypes") -@RooWebScaffold(path = "unittypes", formBackingObject = UnitType.class) -@RooWebFinder -public class UnitTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller.aj deleted file mode 100755 index 4e3d0f835..000000000 --- a/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.UnitType; -import com.labsynch.labseer.web.UnitTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect UnitTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String UnitTypeController.create(@Valid UnitType unitType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, unitType); - return "unittypes/create"; - } - uiModel.asMap().clear(); - unitType.persist(); - return "redirect:/unittypes/" + encodeUrlPathSegment(unitType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String UnitTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new UnitType()); - return "unittypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String UnitTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("unittype", UnitType.findUnitType(id)); - uiModel.addAttribute("itemId", id); - return "unittypes/show"; - } - - @RequestMapping(produces = "text/html") - public String UnitTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("unittypes", UnitType.findUnitTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) UnitType.countUnitTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("unittypes", UnitType.findAllUnitTypes(sortFieldName, sortOrder)); - } - return "unittypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String UnitTypeController.update(@Valid UnitType unitType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, unitType); - return "unittypes/update"; - } - uiModel.asMap().clear(); - unitType.merge(); - return "redirect:/unittypes/" + encodeUrlPathSegment(unitType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String UnitTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, UnitType.findUnitType(id)); - return "unittypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String UnitTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - UnitType unitType = UnitType.findUnitType(id); - unitType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/unittypes"; - } - - void UnitTypeController.populateEditForm(Model uiModel, UnitType unitType) { - uiModel.addAttribute("unitType", unitType); - } - - String UnitTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller_Finder.aj deleted file mode 100755 index ddfbd7329..000000000 --- a/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.UnitType; -import com.labsynch.labseer.web.UnitTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect UnitTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByTypeNameEquals", "form" }, method = RequestMethod.GET) - public String UnitTypeController.findUnitTypesByTypeNameEqualsForm(Model uiModel) { - return "unittypes/findUnitTypesByTypeNameEquals"; - } - - @RequestMapping(params = "find=ByTypeNameEquals", method = RequestMethod.GET) - public String UnitTypeController.findUnitTypesByTypeNameEquals(@RequestParam("typeName") String typeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("unittypes", UnitType.findUnitTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) UnitType.countFindUnitTypesByTypeNameEquals(typeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("unittypes", UnitType.findUnitTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).getResultList()); - } - return "unittypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller_Json.aj deleted file mode 100755 index 34496cbed..000000000 --- a/src/main/java/com/labsynch/labseer/web/UnitTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.UnitType; -import com.labsynch.labseer.web.UnitTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect UnitTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity UnitTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - UnitType unitType = UnitType.findUnitType(id); - if (unitType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(unitType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity UnitTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = UnitType.findAllUnitTypes(); - return new ResponseEntity(UnitType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity UnitTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - UnitType unitType = UnitType.fromJsonToUnitType(json); - unitType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+unitType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity UnitTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (UnitType unitType: UnitType.fromJsonArrayToUnitTypes(json)) { - unitType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity UnitTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - UnitType unitType = UnitType.fromJsonToUnitType(json); - unitType.setId(id); - if (unitType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity UnitTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - UnitType unitType = UnitType.findUnitType(id); - if (unitType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - unitType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity UnitTypeController.jsonFindUnitTypesByTypeNameEquals(@RequestParam("typeName") String typeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(UnitType.toJsonArray(UnitType.findUnitTypesByTypeNameEquals(typeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/UpdateLogController.java b/src/main/java/com/labsynch/labseer/web/UpdateLogController.java deleted file mode 100755 index d70e36741..000000000 --- a/src/main/java/com/labsynch/labseer/web/UpdateLogController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.UpdateLog; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@RequestMapping("/updatelogs") -@Controller -@RooWebScaffold(path = "updatelogs", formBackingObject = UpdateLog.class) -public class UpdateLogController { -} diff --git a/src/main/java/com/labsynch/labseer/web/UpdateLogController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/UpdateLogController_Roo_Controller.aj deleted file mode 100755 index e318ff2a6..000000000 --- a/src/main/java/com/labsynch/labseer/web/UpdateLogController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.UpdateLog; -import com.labsynch.labseer.web.UpdateLogController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.joda.time.format.DateTimeFormat; -import org.springframework.context.i18n.LocaleContextHolder; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect UpdateLogController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String UpdateLogController.create(@Valid UpdateLog updateLog, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, updateLog); - return "updatelogs/create"; - } - uiModel.asMap().clear(); - updateLog.persist(); - return "redirect:/updatelogs/" + encodeUrlPathSegment(updateLog.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String UpdateLogController.createForm(Model uiModel) { - populateEditForm(uiModel, new UpdateLog()); - return "updatelogs/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String UpdateLogController.show(@PathVariable("id") Long id, Model uiModel) { - addDateTimeFormatPatterns(uiModel); - uiModel.addAttribute("updatelog", UpdateLog.findUpdateLog(id)); - uiModel.addAttribute("itemId", id); - return "updatelogs/show"; - } - - @RequestMapping(produces = "text/html") - public String UpdateLogController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("updatelogs", UpdateLog.findUpdateLogEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) UpdateLog.countUpdateLogs() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("updatelogs", UpdateLog.findAllUpdateLogs(sortFieldName, sortOrder)); - } - addDateTimeFormatPatterns(uiModel); - return "updatelogs/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String UpdateLogController.update(@Valid UpdateLog updateLog, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, updateLog); - return "updatelogs/update"; - } - uiModel.asMap().clear(); - updateLog.merge(); - return "redirect:/updatelogs/" + encodeUrlPathSegment(updateLog.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String UpdateLogController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, UpdateLog.findUpdateLog(id)); - return "updatelogs/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String UpdateLogController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - UpdateLog updateLog = UpdateLog.findUpdateLog(id); - updateLog.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/updatelogs"; - } - - void UpdateLogController.addDateTimeFormatPatterns(Model uiModel) { - uiModel.addAttribute("updateLog_recordeddate_date_format", DateTimeFormat.patternForStyle("MM", LocaleContextHolder.getLocale())); - } - - void UpdateLogController.populateEditForm(Model uiModel, UpdateLog updateLog) { - uiModel.addAttribute("updateLog", updateLog); - addDateTimeFormatPatterns(uiModel); - } - - String UpdateLogController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/UserRegistrationForm.java b/src/main/java/com/labsynch/labseer/web/UserRegistrationForm.java deleted file mode 100755 index 239aedb8c..000000000 --- a/src/main/java/com/labsynch/labseer/web/UserRegistrationForm.java +++ /dev/null @@ -1,156 +0,0 @@ -/** - * - */ -package com.labsynch.labseer.web; - -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; - -import net.tanesha.recaptcha.ReCaptcha; -import net.tanesha.recaptcha.ReCaptchaFactory; -import net.tanesha.recaptcha.ReCaptchaResponse; - -/** - * - */ -public class UserRegistrationForm { - - @NotNull - @Size(min = 1) - private String firstName; - @NotNull - @Size(min = 1) - private String lastName; - - @NotNull - @Size(min = 1) - private String userName; - - @NotNull - @Size(min = 1) - private String emailAddress; - @NotNull - @Size(min = 1) - private String password; - @NotNull - @Size(min = 1) - private String repeatPassword; - - private String recaptcha_challenge_field; - - private String recaptcha_response_field; - - private ReCaptcha reCatcpha = ReCaptchaFactory.newReCaptcha("6LdfmL8SAAAAAFnT0l3UNPOV8mkpHIown-ysSR1g", "6LdfmL8SAAAAAHKPqUQV5SxrRX9Id6a8cQo-mgpE", false); - /** - * @return the emailAddress - */ - public String getEmailAddress() { - return emailAddress; - } - - /** - * @param emailAddress - * the emailAddress to set - */ - public void setEmailAddress(String emailAddress) { - this.emailAddress = emailAddress; - } - - /** - * @return the firstName - */ - public String getFirstName() { - return firstName; - } - - /** - * @param firstName the firstName to set - */ - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - /** - * @return the lastName - */ - public String getLastName() { - return lastName; - } - - /** - * @param lastName the lastName to set - */ - public void setLastName(String lastName) { - this.lastName = lastName; - } - - /** - * @return the password - */ - public String getPassword() { - return password; - } - - /** - * @param password the password to set - */ - public void setPassword(String password) { - this.password = password; - } - - /** - * @return the repeatPassword - */ - public String getRepeatPassword() { - return repeatPassword; - } - - /** - * @param repeatPassword the repeatPassword to set - */ - public void setRepeatPassword(String repeatPassword) { - this.repeatPassword = repeatPassword; - } - - public String getRecaptcha_challenge_field() { - - return recaptcha_challenge_field; - - } - - public void setRecaptcha_challenge_field(String recaptcha_challenge_field) { - - this.recaptcha_challenge_field = recaptcha_challenge_field; - - } - - public String getRecaptcha_response_field() { - - return recaptcha_response_field; - - } - - public void setRecaptcha_response_field(String recaptcha_response_field) { - - this.recaptcha_response_field = recaptcha_response_field; - - } - - public String getReCaptchaHtml(){ - - return reCatcpha.createRecaptchaHtml(null, null); - } - - public boolean isValidCaptcha(){ - ReCaptchaResponse reCaptchaResponse = reCatcpha.checkAnswer("localhost", getRecaptcha_challenge_field(), getRecaptcha_response_field()); - return reCaptchaResponse.isValid(); - } - - public String getUserName() { - return userName; - } - - public void setUserName(String userName) { - this.userName = userName; - } -} diff --git a/src/main/java/com/labsynch/labseer/web/ValueKindController.java b/src/main/java/com/labsynch/labseer/web/ValueKindController.java deleted file mode 100755 index b6731e81f..000000000 --- a/src/main/java/com/labsynch/labseer/web/ValueKindController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ValueKind; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ValueKind.class) -@Controller -@RequestMapping("/valuekinds") -@RooWebScaffold(path = "valuekinds", formBackingObject = ValueKind.class) -@RooWebFinder -public class ValueKindController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller.aj deleted file mode 100755 index cd79e3504..000000000 --- a/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller.aj +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ValueKind; -import com.labsynch.labseer.domain.ValueType; -import com.labsynch.labseer.web.ValueKindController; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ValueKindController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ValueKindController.create(@Valid ValueKind valueKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, valueKind); - return "valuekinds/create"; - } - uiModel.asMap().clear(); - valueKind.persist(); - return "redirect:/valuekinds/" + encodeUrlPathSegment(valueKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ValueKindController.createForm(Model uiModel) { - populateEditForm(uiModel, new ValueKind()); - List dependencies = new ArrayList(); - if (ValueType.countValueTypes() == 0) { - dependencies.add(new String[] { "lsType", "valuetypes" }); - } - uiModel.addAttribute("dependencies", dependencies); - return "valuekinds/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ValueKindController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("valuekind", ValueKind.findValueKind(id)); - uiModel.addAttribute("itemId", id); - return "valuekinds/show"; - } - - @RequestMapping(produces = "text/html") - public String ValueKindController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("valuekinds", ValueKind.findValueKindEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ValueKind.countValueKinds() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("valuekinds", ValueKind.findAllValueKinds(sortFieldName, sortOrder)); - } - return "valuekinds/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ValueKindController.update(@Valid ValueKind valueKind, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, valueKind); - return "valuekinds/update"; - } - uiModel.asMap().clear(); - valueKind.merge(); - return "redirect:/valuekinds/" + encodeUrlPathSegment(valueKind.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ValueKindController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ValueKind.findValueKind(id)); - return "valuekinds/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ValueKindController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ValueKind valueKind = ValueKind.findValueKind(id); - valueKind.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/valuekinds"; - } - - void ValueKindController.populateEditForm(Model uiModel, ValueKind valueKind) { - uiModel.addAttribute("valueKind", valueKind); - uiModel.addAttribute("valuetypes", ValueType.findAllValueTypes()); - } - - String ValueKindController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller_Finder.aj deleted file mode 100755 index 9768b0175..000000000 --- a/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,56 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ValueKind; -import com.labsynch.labseer.domain.ValueType; -import com.labsynch.labseer.web.ValueKindController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ValueKindController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByKindNameEqualsAndLsType", "form" }, method = RequestMethod.GET) - public String ValueKindController.findValueKindsByKindNameEqualsAndLsTypeForm(Model uiModel) { - uiModel.addAttribute("valuetypes", ValueType.findAllValueTypes()); - return "valuekinds/findValueKindsByKindNameEqualsAndLsType"; - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", method = RequestMethod.GET) - public String ValueKindController.findValueKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") ValueType lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("valuekinds", ValueKind.findValueKindsByKindNameEqualsAndLsType(kindName, lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ValueKind.countFindValueKindsByKindNameEqualsAndLsType(kindName, lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("valuekinds", ValueKind.findValueKindsByKindNameEqualsAndLsType(kindName, lsType, sortFieldName, sortOrder).getResultList()); - } - return "valuekinds/list"; - } - - @RequestMapping(params = { "find=ByLsType", "form" }, method = RequestMethod.GET) - public String ValueKindController.findValueKindsByLsTypeForm(Model uiModel) { - uiModel.addAttribute("valuetypes", ValueType.findAllValueTypes()); - return "valuekinds/findValueKindsByLsType"; - } - - @RequestMapping(params = "find=ByLsType", method = RequestMethod.GET) - public String ValueKindController.findValueKindsByLsType(@RequestParam("lsType") ValueType lsType, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("valuekinds", ValueKind.findValueKindsByLsType(lsType, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ValueKind.countFindValueKindsByLsType(lsType) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("valuekinds", ValueKind.findValueKindsByLsType(lsType, sortFieldName, sortOrder).getResultList()); - } - return "valuekinds/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller_Json.aj deleted file mode 100755 index ae1f3938e..000000000 --- a/src/main/java/com/labsynch/labseer/web/ValueKindController_Roo_Controller_Json.aj +++ /dev/null @@ -1,137 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ValueKind; -import com.labsynch.labseer.domain.ValueType; -import com.labsynch.labseer.web.ValueKindController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ValueKindController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ValueKindController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ValueKind valueKind = ValueKind.findValueKind(id); - if (valueKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(valueKind.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ValueKindController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ValueKind.findAllValueKinds(); - return new ResponseEntity(ValueKind.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ValueKindController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ValueKind valueKind = ValueKind.fromJsonToValueKind(json); - valueKind.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+valueKind.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ValueKindController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ValueKind valueKind: ValueKind.fromJsonArrayToValueKinds(json)) { - valueKind.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ValueKindController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ValueKind valueKind = ValueKind.fromJsonToValueKind(json); - valueKind.setId(id); - if (valueKind.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ValueKindController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ValueKind valueKind = ValueKind.findValueKind(id); - if (valueKind == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - valueKind.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByKindNameEqualsAndLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ValueKindController.jsonFindValueKindsByKindNameEqualsAndLsType(@RequestParam("kindName") String kindName, @RequestParam("lsType") ValueType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ValueKind.toJsonArray(ValueKind.findValueKindsByKindNameEqualsAndLsType(kindName, lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByLsType", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ValueKindController.jsonFindValueKindsByLsType(@RequestParam("lsType") ValueType lsType) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ValueKind.toJsonArray(ValueKind.findValueKindsByLsType(lsType).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ValueTypeController.java b/src/main/java/com/labsynch/labseer/web/ValueTypeController.java deleted file mode 100755 index e79c61890..000000000 --- a/src/main/java/com/labsynch/labseer/web/ValueTypeController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ValueType; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.roo.addon.web.mvc.controller.finder.RooWebFinder; -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -@RooWebJson(jsonObject = ValueType.class) -@Controller -@RequestMapping("/valuetypes") -@RooWebScaffold(path = "valuetypes", formBackingObject = ValueType.class) -@RooWebFinder -public class ValueTypeController { -} diff --git a/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller.aj b/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller.aj deleted file mode 100755 index d816d0b83..000000000 --- a/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller.aj +++ /dev/null @@ -1,100 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ValueType; -import com.labsynch.labseer.web.ValueTypeController; -import java.io.UnsupportedEncodingException; -import javax.servlet.http.HttpServletRequest; -import javax.validation.Valid; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.util.UriUtils; -import org.springframework.web.util.WebUtils; - -privileged aspect ValueTypeController_Roo_Controller { - - @RequestMapping(method = RequestMethod.POST, produces = "text/html") - public String ValueTypeController.create(@Valid ValueType valueType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, valueType); - return "valuetypes/create"; - } - uiModel.asMap().clear(); - valueType.persist(); - return "redirect:/valuetypes/" + encodeUrlPathSegment(valueType.getId().toString(), httpServletRequest); - } - - @RequestMapping(params = "form", produces = "text/html") - public String ValueTypeController.createForm(Model uiModel) { - populateEditForm(uiModel, new ValueType()); - return "valuetypes/create"; - } - - @RequestMapping(value = "/{id}", produces = "text/html") - public String ValueTypeController.show(@PathVariable("id") Long id, Model uiModel) { - uiModel.addAttribute("valuetype", ValueType.findValueType(id)); - uiModel.addAttribute("itemId", id); - return "valuetypes/show"; - } - - @RequestMapping(produces = "text/html") - public String ValueTypeController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("valuetypes", ValueType.findValueTypeEntries(firstResult, sizeNo, sortFieldName, sortOrder)); - float nrOfPages = (float) ValueType.countValueTypes() / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("valuetypes", ValueType.findAllValueTypes(sortFieldName, sortOrder)); - } - return "valuetypes/list"; - } - - @RequestMapping(method = RequestMethod.PUT, produces = "text/html") - public String ValueTypeController.update(@Valid ValueType valueType, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { - if (bindingResult.hasErrors()) { - populateEditForm(uiModel, valueType); - return "valuetypes/update"; - } - uiModel.asMap().clear(); - valueType.merge(); - return "redirect:/valuetypes/" + encodeUrlPathSegment(valueType.getId().toString(), httpServletRequest); - } - - @RequestMapping(value = "/{id}", params = "form", produces = "text/html") - public String ValueTypeController.updateForm(@PathVariable("id") Long id, Model uiModel) { - populateEditForm(uiModel, ValueType.findValueType(id)); - return "valuetypes/update"; - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html") - public String ValueTypeController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) { - ValueType valueType = ValueType.findValueType(id); - valueType.remove(); - uiModel.asMap().clear(); - uiModel.addAttribute("page", (page == null) ? "1" : page.toString()); - uiModel.addAttribute("size", (size == null) ? "10" : size.toString()); - return "redirect:/valuetypes"; - } - - void ValueTypeController.populateEditForm(Model uiModel, ValueType valueType) { - uiModel.addAttribute("valueType", valueType); - } - - String ValueTypeController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) { - String enc = httpServletRequest.getCharacterEncoding(); - if (enc == null) { - enc = WebUtils.DEFAULT_CHARACTER_ENCODING; - } - pathSegment = UriUtils.encodePathSegment(pathSegment, enc); - return pathSegment; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller_Finder.aj b/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller_Finder.aj deleted file mode 100755 index 503f34eee..000000000 --- a/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller_Finder.aj +++ /dev/null @@ -1,34 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ValueType; -import com.labsynch.labseer.web.ValueTypeController; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; - -privileged aspect ValueTypeController_Roo_Controller_Finder { - - @RequestMapping(params = { "find=ByTypeNameEquals", "form" }, method = RequestMethod.GET) - public String ValueTypeController.findValueTypesByTypeNameEqualsForm(Model uiModel) { - return "valuetypes/findValueTypesByTypeNameEquals"; - } - - @RequestMapping(params = "find=ByTypeNameEquals", method = RequestMethod.GET) - public String ValueTypeController.findValueTypesByTypeNameEquals(@RequestParam("typeName") String typeName, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "sortFieldName", required = false) String sortFieldName, @RequestParam(value = "sortOrder", required = false) String sortOrder, Model uiModel) { - if (page != null || size != null) { - int sizeNo = size == null ? 10 : size.intValue(); - final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo; - uiModel.addAttribute("valuetypes", ValueType.findValueTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList()); - float nrOfPages = (float) ValueType.countFindValueTypesByTypeNameEquals(typeName) / sizeNo; - uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages)); - } else { - uiModel.addAttribute("valuetypes", ValueType.findValueTypesByTypeNameEquals(typeName, sortFieldName, sortOrder).getResultList()); - } - return "valuetypes/list"; - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller_Json.aj b/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller_Json.aj deleted file mode 100755 index 889741ec9..000000000 --- a/src/main/java/com/labsynch/labseer/web/ValueTypeController_Roo_Controller_Json.aj +++ /dev/null @@ -1,124 +0,0 @@ -// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. -// You may push code into the target .java compilation unit if you wish to edit any member(s). - -package com.labsynch.labseer.web; - -import com.labsynch.labseer.domain.ValueType; -import com.labsynch.labseer.web.ValueTypeController; -import java.util.List; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.util.UriComponentsBuilder; - -privileged aspect ValueTypeController_Roo_Controller_Json { - - @RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ValueTypeController.showJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - ValueType valueType = ValueType.findValueType(id); - if (valueType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(valueType.toJson(), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ValueTypeController.listJson() { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json; charset=utf-8"); - try { - List result = ValueType.findAllValueTypes(); - return new ResponseEntity(ValueType.toJsonArray(result), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ValueTypeController.createFromJson(@RequestBody String json, UriComponentsBuilder uriBuilder) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ValueType valueType = ValueType.fromJsonToValueType(json); - valueType.persist(); - RequestMapping a = (RequestMapping) getClass().getAnnotation(RequestMapping.class); - headers.add("Location",uriBuilder.path(a.value()[0]+"/"+valueType.getId().toString()).build().toUriString()); - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json") - public ResponseEntity ValueTypeController.createFromJsonArray(@RequestBody String json) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - for (ValueType valueType: ValueType.fromJsonArrayToValueTypes(json)) { - valueType.persist(); - } - return new ResponseEntity(headers, HttpStatus.CREATED); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.PUT, headers = "Accept=application/json") - public ResponseEntity ValueTypeController.updateFromJson(@RequestBody String json, @PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ValueType valueType = ValueType.fromJsonToValueType(json); - valueType.setId(id); - if (valueType.merge() == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") - public ResponseEntity ValueTypeController.deleteFromJson(@PathVariable("id") Long id) { - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - try { - ValueType valueType = ValueType.findValueType(id); - if (valueType == null) { - return new ResponseEntity(headers, HttpStatus.NOT_FOUND); - } - valueType.remove(); - return new ResponseEntity(headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - - @RequestMapping(params = "find=ByTypeNameEquals", headers = "Accept=application/json") - @ResponseBody - public ResponseEntity ValueTypeController.jsonFindValueTypesByTypeNameEquals(@RequestParam("typeName") String typeName) { - HttpHeaders headers = new HttpHeaders(); - try { - headers.add("Content-Type", "application/json; charset=utf-8"); - return new ResponseEntity(ValueType.toJsonArray(ValueType.findValueTypesByTypeNameEquals(typeName).getResultList()), headers, HttpStatus.OK); - } catch (Exception e) { - return new ResponseEntity("{\"ERROR\":"+e.getMessage()+"\"}", headers, HttpStatus.INTERNAL_SERVER_ERROR); - } - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/ValueTypeKindDTOController.java b/src/main/java/com/labsynch/labseer/web/ValueTypeKindDTOController.java deleted file mode 100755 index 061559b57..000000000 --- a/src/main/java/com/labsynch/labseer/web/ValueTypeKindDTOController.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.labsynch.labseer.web; - -import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import com.labsynch.labseer.dto.ValueTypeKindDTO; - -@RooWebJson(jsonObject = ValueTypeKindDTO.class) -@Controller -@RequestMapping("/valuetypekinddto") -public class ValueTypeKindDTOController { -} diff --git a/src/main/java/com/labsynch/labseer/web/menu/BaseURLContextMenuStrategy.java b/src/main/java/com/labsynch/labseer/web/menu/BaseURLContextMenuStrategy.java deleted file mode 100644 index 2de82bf4e..000000000 --- a/src/main/java/com/labsynch/labseer/web/menu/BaseURLContextMenuStrategy.java +++ /dev/null @@ -1,239 +0,0 @@ -package com.labsynch.labseer.web.menu; - -import java.util.Enumeration; -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map; -import java.util.Set; -import java.util.Stack; -import java.util.TreeSet; -import java.util.regex.Pattern; - -import javax.servlet.ServletContext; -import javax.servlet.http.HttpServletRequest; - -/** - * Base class for gvNIX Context menu Strategy based on URL matching. - *

- * This Abstract class provides the way to locate the menu item by comparing - * current request URL with menu items. - *

- * This takes care if current URL if from internal forwarding. This method could be - * used by layouts libraries (like apache Tiles). - *

- * If a item has a URL based in an EL Expression this will be evaluated - * before compare it. - */ -public abstract class BaseURLContextMenuStrategy implements ContextMenuStrategy { - - private static final Pattern EL_PATTERN = Pattern.compile(".*[$][{].*[}]"); - - /** - * Get current {@link MenuItem} based on the request URL - * - * @param request - * @param jspContext - * @param menu - * @return current {@link MenuItem} or null if not match found. - */ - protected MenuItem getItemFromCurrentURL(HttpServletRequest request, - ServletContext jspContext, Menu menu) { - - // If request comes from a internal server forward we'll need original - // request URI - // See Servlert 2.4 specification, section SRV.8.4.2 for more - // information - String path = (String) request - .getAttribute("javax.servlet.forward.request_uri"); - - String contextPath; - if (path == null) { - // If isn't a forwarded request so we'll use the original URI - path = request.getRequestURI(); - contextPath = request.getContextPath(); - } - else { - contextPath = (String) request - .getAttribute("javax.servlet.forward.context_path"); - } - - if (path.startsWith(contextPath)) { - path = path.substring(contextPath.length()); - } - - Enumeration paramNamesEnum = request.getParameterNames(); - TreeSet paramNames = new TreeSet(); - - // We create a new Map because request.getParameterMap() is a map of - // String[]. - // In java 1.5 application will throw a ClassCastException if you try - // set - // ParameterMap's value into a String variable. - // In java 1.6 works fine. - Map paramValues = new HashMap(request - .getParameterMap().size()); - String paramName; - - while (paramNamesEnum.hasMoreElements()) { - paramName = paramNamesEnum.nextElement(); - paramNames.add(paramName); - paramValues.put(paramName, request.getParameter(paramName)); - } - - class StackItem { - - Iterator iterator; - - public StackItem(Iterator childIterator) { - this.iterator = childIterator; - } - } - - Stack stack = new Stack(); - - stack.push(new StackItem(menu.getChildren().iterator())); - StackItem curStackItem; - MenuItem curItem; - while (!stack.isEmpty()) { - curStackItem = stack.pop(); - while (curStackItem.iterator.hasNext()) { - curItem = curStackItem.iterator.next(); - if (isSameDestination(request, jspContext, path, paramNames, - paramValues, curItem.getUrl())) { - return curItem; - } - if (curItem.hasChildren()) { - stack.push(curStackItem); - stack.push(new StackItem(curItem.getChildren().iterator())); - break; - } - } - } - - return null; - - } - - /** - * Compares request URL with {@link MenuItem}'s destination. This will ignore - * parameters values if {@link MenuItem}'s destination if based on EL - * expression. Inherit class could override this method to change compare - * behavior. - * - * @param request - * @param jspContext - * @param path1 - * @param paramNames - * @param paramValues - * @param destination2 {@link MenuItem}'s destination - * @return true if match - */ - protected boolean isSameDestination(HttpServletRequest request, - ServletContext jspContext, String path1, - Set paramNames, - Map paramValues, - String destination2) { - - if (destination2 == null || destination2.isEmpty()) { - return false; - } - - int questionCharIndes2 = destination2.indexOf('?'); - - // Url's files have the same size. - String path2; - String query2; - if (questionCharIndes2 < 0) { - path2 = destination2; - query2 = null; - } - else { - path2 = destination2.substring(0, questionCharIndes2); - query2 = destination2.substring(questionCharIndes2 + 1); - } - - if (path1.length() != path2.length()) { - return false; - } - - if (!path1.equalsIgnoreCase(path2)) { - // Url's files are different - return false; - } - - // Compare parameters without values - if (paramNames.isEmpty() && query2 != null) { - return false; - } - else if (query2 == null && !paramNames.isEmpty()) { - return false; - } - - String[] paramTokens2 = new String[] {}; - if (query2 != null) { - paramTokens2 = query2.split("[&]"); - } - - Set paramNames2 = new TreeSet(); - Map paramValues2 = new HashMap(); - - String paramName; - String paramValue; - int equalCharIndex; - for (String paramToken : paramTokens2) { - equalCharIndex = paramToken.indexOf('='); - if (equalCharIndex < 0) { - paramName = paramToken; - paramValue = null; - } - else { - paramName = paramToken.substring(0, equalCharIndex); - paramValue = paramToken.substring(equalCharIndex + 1, - paramToken.length()); - } - // TODO case insensitive compare: check servlet specification - paramNames2.add(paramName.toLowerCase()); - paramValues2.put(paramName, paramValue); - } - - // check for duplicated parameters - if (paramNames.size() != paramNames2.size()) { - return false; - } - - Iterator iterParamNames1 = paramNames.iterator(); - Iterator iterParamNames2 = paramNames2.iterator(); - - String paramName2; - String paramValue2; - while (iterParamNames1.hasNext()) { - paramName = iterParamNames1.next(); - paramName2 = iterParamNames2.next(); - if (!paramName.equals(paramName2)) { - return false; - } - paramValue = paramValues.get(paramName); - paramValue2 = paramValues2.get(paramName2); - if (paramValue2 != null && EL_PATTERN.matcher(paramValue2).matches()) { - continue; - } - if (!hasText(paramValue)) { - if (hasText(paramValue2)) { - return false; - } - continue; - } - if (!paramValue.equals(paramValue2)) { - return false; - } - } - return true; - } - - private boolean hasText(String var) { - if (var == null) { - return false; - } - return var.trim().isEmpty(); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/menu/ContextMenuStrategy.java b/src/main/java/com/labsynch/labseer/web/menu/ContextMenuStrategy.java deleted file mode 100644 index 340f928b2..000000000 --- a/src/main/java/com/labsynch/labseer/web/menu/ContextMenuStrategy.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.labsynch.labseer.web.menu; - -import java.util.List; - -import javax.servlet.ServletContext; -import javax.servlet.http.HttpServletRequest; - -/** - * gvNIX menu render strategy. - *

- * Defines how to render the items of one menu depending on current context, - * i.e. context could be the current page, or press mouse right button. - *

- * The basic idea is that the menu structure is unique for one application, - * but you can decide which part must be shown depending on the given context. - */ -public interface ContextMenuStrategy { - - /** - * Strategy's Name. Should be bean's id (or name). - * - * @return - */ - public String getName(); - - /** - * Query for {@link MenuItem} to show in a context menu - * - * - * @param request Current request - * @param jspContext Current jspContext - * @param menu {@link Menu} instance to use - * @return {@link List} of {@link MenuItem} to show or null if no match found - */ - public List query(HttpServletRequest request, ServletContext jspContext, Menu menu); -} diff --git a/src/main/java/com/labsynch/labseer/web/menu/Menu.java b/src/main/java/com/labsynch/labseer/web/menu/Menu.java deleted file mode 100644 index b67d3de8e..000000000 --- a/src/main/java/com/labsynch/labseer/web/menu/Menu.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.labsynch.labseer.web.menu; - -import java.util.ArrayList; -import java.util.List; - -/** - * Menu Model Root class - */ -public class Menu { - - /** - * Menu identifier. - */ - private String id; - - /*** - * First level menu items. - */ - private List children = new ArrayList(); - - protected Menu(String id) { - if (id == null) { - this.id = "_menu"; - } - else { - this.id = id; - } - } - - /** - * Gets menu id - * @return - */ - public String getId(){ - return this.id; - } - - /** - * id mutator - * - * @param id - */ - void setId(String id) { - this.id = id; - } - - /** - * add a child - * - * @param child - */ - void addChild(MenuItem child) { - this.children.add(child); - } - - /** - * Gets children. - * - * @return List - */ - public List getChildren() { - return this.children; - } - - /** - * Set root menu items. - * - * @param children - */ - public void setChildren(List children) { - this.children = children; - } -} diff --git a/src/main/java/com/labsynch/labseer/web/menu/MenuItem.java b/src/main/java/com/labsynch/labseer/web/menu/MenuItem.java deleted file mode 100644 index 887227e98..000000000 --- a/src/main/java/com/labsynch/labseer/web/menu/MenuItem.java +++ /dev/null @@ -1,273 +0,0 @@ -package com.labsynch.labseer.web.menu; - -import java.util.ArrayList; -import java.util.List; - -import org.w3c.dom.Element; - -/** - * Menu model item. - *

- * This has all information about a menu's item. - */ -public class MenuItem { - - private static final String DELIMITER = "/"; - - private MenuItem parent; - - private final String url; - private final String id; - private final String messageCode; - private final String roles; - private final boolean hidden; - private List children = null; - - /** If label is null, menu will use labelCode to load the label from I18N properties */ - private String labelCode; - - /** - * Load Item values from XML Element. This doesn't load children nodes. - * - * @param parent - * @param element - */ - MenuItem(Element element) { - this.id = element.getAttribute("id"); - this.labelCode = element.getAttribute("labelCode"); - this.messageCode = element.getAttribute("messageCode"); - this.url = element.getAttribute("url"); - this.roles = element.getAttribute("roles"); - if (element.hasAttribute("hidden")) { - this.hidden = Boolean.parseBoolean(element.getAttribute("hidden")); - } else { - this.hidden = false; - } - } - - /** - * Add a new child menu item. Child item parent is set to this. - * - * @param child - */ - void addChild(MenuItem child) { - if (children == null) { - children = new ArrayList(); - } - children.add(child); - child.parent = this; - } - - /** - * Informs if this item has any children. - * - * @return - */ - public boolean hasChildren() { - return children != null && children.size() > 0; - } - - /** - * Children list accessor. - * - * @return List - */ - public List getChildren() { - return this.children; - } - - /** - * Children list mutator - * @param children - */ - public void setChildren(List children) { - this.children = children; - } - - /** - * roles string accessor. - * - * @return comma list - */ - public String getRoles() { - return this.roles; - } - - /** - * URL accessor - * - * @return - */ - public String getUrl() { - return this.url; - } - - /** - * Parent accessor - * - * @return - */ - public MenuItem getParent() { - return this.parent; - } - - /** - * ID accessor - * - * @return - */ - public String getId() { - return id; - } - - /** - * messageCode accessor - * - * @return - */ - public String getMessageCode() { - return messageCode; - } - - - /** - * hidden accessor - * - * @return - */ - public boolean isHidden() { - return hidden; - } - - - /** - * labelCode accessor - * - * @return - */ - public String getLabelCode() { - return labelCode; - } - - /** - * Convert MenuItem ID to path format. - *

- * The ID will be transformed as follows: - *

    - *
  • The id prefix, "c_" of "i_", will be removed
  • - *
  • Append root path, "/" at the begining
  • - *
  • Replace "_" by "/"
  • - *
- * This method doesn't modify the current ID. - * - * @return - */ - protected String getIdAsPath() { - StringBuilder path = new StringBuilder(); - - path.append(DELIMITER); - - String idWithoutPrefix = this.id.substring(2); // current prefixes have length = 2 - - path.append(idWithoutPrefix.replace("_", DELIMITER)); - - return path.toString(); - } - - /* (non-Javadoc) - * @see java.lang.Object#equals(java.lang.Object) - */ - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result - + ((url == null) ? 0 : url.hashCode()); - result = prime * result + (hidden ? 1231 : 1237); - result = prime * result + ((parent == null) ? 0 : parent.hashCode()); - result = prime * result + ((roles == null) ? 0 : roles.hashCode()); - result = prime * result + ((id == null) ? 0 : id.hashCode()); - result = prime * result + ((labelCode == null) ? 0 : labelCode.hashCode()); - result = prime * result - + ((messageCode == null) ? 0 : messageCode.hashCode()); - return result; - } - - /* (non-Javadoc) - * @see java.lang.Object#equals(java.lang.Object) - */ - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null){ - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - MenuItem other = (MenuItem) obj; - if (url == null) { - if (other.url != null) { - return false; - } - } - else if (!url.equals(other.url)) { - return false; - } - if (hidden != other.hidden) { - return false; - } - if (parent == null) { - if (other.parent != null) { - return false; - } - } - else if (!parent.equals(other.parent)) { - return false; - } - if (roles == null) { - if (other.roles != null) { - return false; - } - } - else if (!roles.equals(other.roles)) { - return false; - } - if (id == null) { - if (other.id != null) { - return false; - } - } - else if (!id.equals(other.id)) { - return false; - } - if (labelCode == null) { - if (other.labelCode != null) { - return false; - } - } - else if (!labelCode.equals(other.labelCode)) { - return false; - } - if (messageCode == null) { - if (other.messageCode != null) { - return false; - } - } - else if (!messageCode.equals(other.messageCode)) { - return false; - } - return true; - } - - /* (non-Javadoc) - * @see java.lang.Object#toString() - */ - @Override - public String toString() { - return "MenuItem [".concat("ID=").concat(id).concat(", link=") - .concat(url).concat("]"); - } -} diff --git a/src/main/java/com/labsynch/labseer/web/menu/MenuLoader.java b/src/main/java/com/labsynch/labseer/web/menu/MenuLoader.java deleted file mode 100644 index c4f731df3..000000000 --- a/src/main/java/com/labsynch/labseer/web/menu/MenuLoader.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.labsynch.labseer.web.menu; - -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; - -import javax.servlet.ServletContext; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; - -import org.springframework.beans.factory.annotation.Configurable; -import org.springframework.context.ApplicationContextException; -import org.springframework.stereotype.Component; -import org.springframework.util.Assert; -import org.springframework.web.context.WebApplicationContext; -import org.springframework.web.context.support.WebApplicationObjectSupport; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; - -/** - * Menu model loader and publisher. - *

- * This class automatically is loaded by Spring ({@link Component} and - * {@link Configurable}). - *

- * In application initialization ({@link WebApplicationObjectSupport}) loads - * the menu structure and put it in the application context ready for - * rendering. Then {@link ContextMenuStrategy} and security will decide which - * section and items have to be shown. - */ -@Component -@Configurable -public class MenuLoader extends WebApplicationObjectSupport { - - /** Configuration file for menus */ - public static final String MENU_CONFIG_FILE = "/WEB-INF/views/menu.xml"; - - /** Key to store Menu in application context */ - public static final String MENU_SERVLET_CONTEXT_KEY = "gvnixMenu"; - - public static final String MENU_ITEM_ELEMENT = "menu-item"; - - /** - * Calls to {@link #loadMenu()} and set the menu to the {@link ServletContext} - */ - protected void initApplicationContext() throws ApplicationContextException { - if (!(getApplicationContext() instanceof WebApplicationContext)) { - return; - } - Menu menu; - try { - menu = loadMenu(); - } - catch (Exception e) { - throw new ApplicationContextException("Error loading gvNIX web menu", e); - } - getServletContext().setAttribute(MENU_SERVLET_CONTEXT_KEY, menu); - } - - /** - * Loads menu model from XML file {@link #MENU_CONFIG_FILE}. This method loads - * menu using recursivity. Override this - * method to change menu's source. Remember to set to null - * {@link #MENU_CONFIG_FILE}. - * - * @return - * @throws Exception - */ - protected Menu loadMenu() throws Exception { - - // load and parse menu.xml - DocumentBuilder db = DocumentBuilderFactory.newInstance() - .newDocumentBuilder(); - Document xml = null; - - InputStream input = getServletContext().getResourceAsStream(MENU_CONFIG_FILE); - Assert.notNull(input, "gvNIX menu configuration not found '" - .concat(MENU_CONFIG_FILE).concat("'")); - try { - xml = db.parse(input); - } - catch (Exception e) { - throw e; - } - finally { - input.close(); - } - - // create menu root - Element root = xml.getDocumentElement(); - String menuId = root.getAttribute("id"); - Menu menu = new Menu(menuId); - - // parse children - NodeList childNodes = root.getChildNodes(); - - // return empty menu if there are no children - if(childNodes.getLength() == 0) { - return menu; - } - - // load root menu items and their children - List childItems = loadMenuItems(childNodes); - menu.setChildren(childItems); - - return menu; - } - - /** - * Transform a list of {@code } elements into {@code MenuItem} - * objects. - *

- * This method loads the children recursively. - * - * @param nodes List of XML elements - * @return List of MenuItem, note that MenuItem is complete, that is - * each MenuItem will contain their children List - */ - public List loadMenuItems(NodeList nodes) { - List items = new ArrayList(); - - for(int i = 0; i < nodes.getLength(); i++) { - Node node = nodes.item(i); - if (node.getNodeType() != Node.ELEMENT_NODE - || !MENU_ITEM_ELEMENT.equals(node.getNodeName())) { - continue; - } - - // create the MenuItem object - MenuItem item = new MenuItem((Element) node); - - // recursively load children - NodeList childNodes = node.getChildNodes(); - - if(childNodes.getLength() > 0) { - List childItems = loadMenuItems(childNodes); - item.setChildren(childItems); - } - - // add MenuItem to result list - items.add(item); - } - return items; - } -} diff --git a/src/main/java/com/labsynch/labseer/web/menu/URLBrothersContextMenuStrategy.java b/src/main/java/com/labsynch/labseer/web/menu/URLBrothersContextMenuStrategy.java deleted file mode 100644 index 1cfb3896e..000000000 --- a/src/main/java/com/labsynch/labseer/web/menu/URLBrothersContextMenuStrategy.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.labsynch.labseer.web.menu; - - -import java.util.List; - -import javax.servlet.ServletContext; -import javax.servlet.http.HttpServletRequest; - -import org.springframework.beans.factory.annotation.Configurable; -import org.springframework.stereotype.Component; - -/** - * gvNIX Context menu Strategy (URL match, return brothers). - * This strategy decides which menu item (root, subcategory, etc) should act - * as root by matching current request URL with all menu entries target URLs. - *

- * If a match item is found ({@link #query(HttpServletRequest, ServletContext, Menu)}) - * the menu will render the children of the match menu entry parent, that is, - * it will render its brothers. - */ -@Component(URLBrothersContextMenuStrategy.NAME) -@Configurable -public class URLBrothersContextMenuStrategy extends BaseURLContextMenuStrategy { - - public static final String NAME = "URLBrothersContextMenuStrategy"; - - public String getName() { - return NAME; - } - - /** - * {@inheritDoc} - *

- * Locates current menu position by matching current request URL with all - * {@link MenuItem}. - *

- * If a match item is found - * {@link #query(HttpServletRequest, ServletContext, Menu)} method will return - * all the {@link MenuItem} from its parent (including itself). - *

- * If no match item found it will return null. - */ - public List query(HttpServletRequest request, - ServletContext jspContext, Menu menu) { - MenuItem currentItem = getItemFromCurrentURL(request, jspContext, menu); - if (currentItem == null) { - return null; - } - return currentItem.getParent().getChildren(); - } - -} diff --git a/src/main/java/com/labsynch/labseer/web/menu/URLChildrenContextMenuStrategy.java b/src/main/java/com/labsynch/labseer/web/menu/URLChildrenContextMenuStrategy.java deleted file mode 100644 index c84c5ab04..000000000 --- a/src/main/java/com/labsynch/labseer/web/menu/URLChildrenContextMenuStrategy.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.labsynch.labseer.web.menu; - - -import java.util.List; - -import javax.servlet.ServletContext; -import javax.servlet.http.HttpServletRequest; - -import org.springframework.beans.factory.annotation.Configurable; -import org.springframework.stereotype.Component; - -/** - * gvNIX Context menu Strategy (URL match, return children). - *

- * This strategy decides which menu item (root, subcategory, etc) should act - * as root by matching current request URL with all menu entries target URLs. - *

- * If a match item is found ({@link #query(HttpServletRequest, ServletContext, Menu)}) - * the menu will render the children of the match menu entry. - */ -@Component(URLChildrenContextMenuStrategy.NAME) -@Configurable -public class URLChildrenContextMenuStrategy extends BaseURLContextMenuStrategy { - - public static final String NAME = "URLChildrenContextMenuStrategy"; - - public String getName() { - return NAME; - } - - /** - * {@inheritDoc} - *

- * Locates current menu position by matching current request URL with all - * {@link MenuItem}. - *

- * If a match item is found - * {@link #query(HttpServletRequest, ServletContext, Menu)} method will return - * {@link MenuItem}'s children. - *

- * If no match item found it will return null. - */ - public List query(HttpServletRequest request, - ServletContext jspContext, Menu menu) { - MenuItem currentItem = getItemFromCurrentURL(request, jspContext, menu); - if (currentItem == null) { - return null; - } - return currentItem.getChildren(); - } -} From 499aa4d6f6146013cbf5e378f9e8b4d506948d8a Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Thu, 28 Apr 2022 16:47:57 -0700 Subject: [PATCH 51/73] Remove roo generate web interface --- .../WEB-INF/i18n/application.properties | 2975 ----------------- .../webapp/WEB-INF/i18n/messages.properties | 107 - src/main/webapp/WEB-INF/layouts/default.jspx | 28 - src/main/webapp/WEB-INF/tags/form/create.tagx | 61 - .../webapp/WEB-INF/tags/form/dependency.tagx | 25 - .../WEB-INF/tags/form/fields/checkbox.tagx | 38 - .../WEB-INF/tags/form/fields/column.tagx | 63 - .../WEB-INF/tags/form/fields/datetime.tagx | 75 - .../WEB-INF/tags/form/fields/display.tagx | 48 - .../WEB-INF/tags/form/fields/editor.tagx | 60 - .../WEB-INF/tags/form/fields/input.tagx | 108 - .../WEB-INF/tags/form/fields/reference.tagx | 41 - .../WEB-INF/tags/form/fields/select.tagx | 199 -- .../WEB-INF/tags/form/fields/simple.tagx | 35 - .../WEB-INF/tags/form/fields/table.tagx | 162 - .../WEB-INF/tags/form/fields/textarea.tagx | 47 - src/main/webapp/WEB-INF/tags/form/find.tagx | 31 - src/main/webapp/WEB-INF/tags/form/list.tagx | 31 - src/main/webapp/WEB-INF/tags/form/show.tagx | 103 - src/main/webapp/WEB-INF/tags/form/update.tagx | 47 - .../webapp/WEB-INF/tags/menu/category.tagx | 25 - .../webapp/WEB-INF/tags/menu/gvnixitem.tagx | 149 - .../webapp/WEB-INF/tags/menu/gvnixmenu.tagx | 70 - src/main/webapp/WEB-INF/tags/menu/item.tagx | 29 - src/main/webapp/WEB-INF/tags/menu/menu.tagx | 13 - .../webapp/WEB-INF/tags/util/language.tagx | 31 - .../WEB-INF/tags/util/load-scripts.tagx | 29 - .../webapp/WEB-INF/tags/util/pagination.tagx | 87 - src/main/webapp/WEB-INF/tags/util/panel.tagx | 33 - .../webapp/WEB-INF/tags/util/placeholder.tagx | 5 - src/main/webapp/WEB-INF/tags/util/theme.tagx | 36 - .../views/analysisgrouplabels/create.jspx | 22 - ...indAnalysisGroupLabelsByAnalysisGroup.jspx | 8 - ...lysisGroupLabelsByLsTransactionEquals.jspx | 8 - .../views/analysisgrouplabels/list.jspx | 15 - .../views/analysisgrouplabels/show.jspx | 21 - .../views/analysisgrouplabels/update.jspx | 21 - .../views/analysisgrouplabels/views.xml | 22 - .../WEB-INF/views/analysisgroups/create.jspx | 24 - .../findAnalysisGroupsByExperiment.jspx | 8 - .../findAnalysisGroupsByExperiments.jspx | 8 - ...lysisGroupsByExperimentsAndIgnoredNot.jspx | 9 - ...ndAnalysisGroupsByLsTransactionEquals.jspx | 8 - .../WEB-INF/views/analysisgroups/list.jspx | 15 - .../WEB-INF/views/analysisgroups/show.jspx | 20 - .../WEB-INF/views/analysisgroups/update.jspx | 23 - .../WEB-INF/views/analysisgroups/views.xml | 28 - .../views/analysisgroupstates/create.jspx | 21 - ...indAnalysisGroupStatesByAnalysisGroup.jspx | 8 - ...ypeEqualsAndLsKindEqualsAndIgnoredNot.jspx | 11 - ...lysisGroupStatesByLsTransactionEquals.jspx | 8 - ...lysisGroupStatesByLsTypeAndKindEquals.jspx | 8 - ...upStatesByLsTypeEqualsAndLsKindEquals.jspx | 9 - .../views/analysisgroupstates/list.jspx | 15 - .../views/analysisgroupstates/show.jspx | 19 - .../views/analysisgroupstates/update.jspx | 20 - .../views/analysisgroupstates/views.xml | 31 - .../views/analysisgroupvalues/create.jspx | 45 - ...dAnalysisGroupValuesByCodeValueEquals.jspx | 8 - ...pValuesByIgnoredNotAndCodeValueEquals.jspx | 9 - .../findAnalysisGroupValuesByLsState.jspx | 8 - ...lysisGroupValuesByLsTransactionEquals.jspx | 8 - ...upValuesByLsTypeEqualsAndLsKindEquals.jspx | 9 - ...EqualsAndStringValueLikeAndIgnoredNot.jspx | 11 - .../views/analysisgroupvalues/list.jspx | 15 - .../views/analysisgroupvalues/show.jspx | 44 - .../views/analysisgroupvalues/update.jspx | 44 - .../views/analysisgroupvalues/views.xml | 34 - .../views/applicationsettings/create.jspx | 13 - ...ndApplicationSettingsByPropNameEquals.jspx | 8 - ...SettingsByPropNameEqualsAndIgnoredNot.jspx | 9 - .../views/applicationsettings/list.jspx | 14 - .../views/applicationsettings/show.jspx | 12 - .../views/applicationsettings/update.jspx | 12 - .../views/applicationsettings/views.xml | 22 - .../WEB-INF/views/authorlabels/create.jspx | 22 - .../WEB-INF/views/authorlabels/list.jspx | 15 - .../WEB-INF/views/authorlabels/show.jspx | 21 - .../WEB-INF/views/authorlabels/update.jspx | 21 - .../WEB-INF/views/authorlabels/views.xml | 16 - .../WEB-INF/views/authorroles/create.jspx | 10 - .../findAuthorRolesByRoleEntry.jspx | 8 - ...indAuthorRolesByRoleEntryAndUserEntry.jspx | 9 - .../findAuthorRolesByUserEntry.jspx | 8 - .../WEB-INF/views/authorroles/list.jspx | 11 - .../WEB-INF/views/authorroles/show.jspx | 9 - .../WEB-INF/views/authorroles/update.jspx | 9 - .../WEB-INF/views/authorroles/views.xml | 25 - .../webapp/WEB-INF/views/authors/create.jspx | 32 - ...AuthorsByActivationKeyAndEmailAddress.jspx | 9 - .../authors/findAuthorsByEmailAddress.jspx | 8 - .../views/authors/findAuthorsByUserName.jspx | 8 - .../webapp/WEB-INF/views/authors/list.jspx | 16 - .../webapp/WEB-INF/views/authors/show.jspx | 27 - .../webapp/WEB-INF/views/authors/update.jspx | 31 - .../webapp/WEB-INF/views/authors/views.xml | 25 - .../WEB-INF/views/authorstates/create.jspx | 21 - .../WEB-INF/views/authorstates/list.jspx | 15 - .../WEB-INF/views/authorstates/show.jspx | 19 - .../WEB-INF/views/authorstates/update.jspx | 20 - .../WEB-INF/views/authorstates/views.xml | 16 - .../WEB-INF/views/authorvalues/create.jspx | 45 - .../WEB-INF/views/authorvalues/list.jspx | 15 - .../WEB-INF/views/authorvalues/show.jspx | 44 - .../WEB-INF/views/authorvalues/update.jspx | 44 - .../WEB-INF/views/authorvalues/views.xml | 16 - .../WEB-INF/views/bulkloadfiles/create.jspx | 15 - .../findBulkLoadFilesByFileNameEquals.jspx | 8 - .../findBulkLoadFilesByRecordedByEquals.jspx | 8 - .../WEB-INF/views/bulkloadfiles/list.jspx | 15 - .../WEB-INF/views/bulkloadfiles/show.jspx | 14 - .../WEB-INF/views/bulkloadfiles/update.jspx | 14 - .../WEB-INF/views/bulkloadfiles/views.xml | 22 - .../views/bulkloadtemplates/create.jspx | 12 - ...ndBulkLoadTemplatesByRecordedByEquals.jspx | 8 - ...BulkLoadTemplatesByTemplateNameEquals.jspx | 8 - ...TemplateNameEqualsAndRecordedByEquals.jspx | 9 - .../WEB-INF/views/bulkloadtemplates/list.jspx | 13 - .../WEB-INF/views/bulkloadtemplates/show.jspx | 11 - .../views/bulkloadtemplates/update.jspx | 11 - .../WEB-INF/views/bulkloadtemplates/views.xml | 25 - .../WEB-INF/views/changepassword/index.jspx | 47 - .../WEB-INF/views/changepassword/thanks.jspx | 16 - .../WEB-INF/views/changepassword/views.xml | 11 - .../WEB-INF/views/chemstructures/create.jspx | 21 - .../WEB-INF/views/chemstructures/list.jspx | 15 - .../WEB-INF/views/chemstructures/show.jspx | 20 - .../WEB-INF/views/chemstructures/update.jspx | 20 - .../WEB-INF/views/chemstructures/views.xml | 16 - .../views/cmpdregappsettings/create.jspx | 13 - .../views/cmpdregappsettings/list.jspx | 14 - .../views/cmpdregappsettings/show.jspx | 12 - .../views/cmpdregappsettings/update.jspx | 12 - .../views/cmpdregappsettings/views.xml | 16 - .../WEB-INF/views/codekinds/create.jspx | 11 - ...indCodeKindsByKindNameEqualsAndLsType.jspx | 9 - .../codekinds/findCodeKindsByLsType.jspx | 8 - .../findCodeKindsByLsTypeAndKindEquals.jspx | 8 - .../webapp/WEB-INF/views/codekinds/list.jspx | 12 - .../webapp/WEB-INF/views/codekinds/show.jspx | 10 - .../WEB-INF/views/codekinds/update.jspx | 10 - .../webapp/WEB-INF/views/codekinds/views.xml | 25 - .../WEB-INF/views/codeorigins/create.jspx | 9 - .../WEB-INF/views/codeorigins/list.jspx | 10 - .../WEB-INF/views/codeorigins/show.jspx | 8 - .../WEB-INF/views/codeorigins/update.jspx | 8 - .../WEB-INF/views/codeorigins/views.xml | 16 - .../WEB-INF/views/codetypes/create.jspx | 9 - .../findCodeTypesByTypeNameEquals.jspx | 8 - .../webapp/WEB-INF/views/codetypes/list.jspx | 10 - .../webapp/WEB-INF/views/codetypes/show.jspx | 8 - .../WEB-INF/views/codetypes/update.jspx | 8 - .../webapp/WEB-INF/views/codetypes/views.xml | 19 - .../WEB-INF/views/compoundTypes/create.jspx | 12 - .../findCompoundTypesByCodeEquals.jspx | 8 - .../WEB-INF/views/compoundTypes/list.jspx | 13 - .../WEB-INF/views/compoundTypes/show.jspx | 11 - .../WEB-INF/views/compoundTypes/update.jspx | 11 - .../WEB-INF/views/compoundTypes/views.xml | 19 - .../WEB-INF/views/compounds/create.jspx | 15 - .../views/compounds/findCompoundsByCdId.jspx | 8 - .../findCompoundsByExternal_idEquals.jspx | 8 - .../webapp/WEB-INF/views/compounds/list.jspx | 15 - .../webapp/WEB-INF/views/compounds/show.jspx | 14 - .../WEB-INF/views/compounds/update.jspx | 14 - .../webapp/WEB-INF/views/compounds/views.xml | 22 - .../WEB-INF/views/containerkinds/create.jspx | 11 - .../WEB-INF/views/containerkinds/list.jspx | 12 - .../WEB-INF/views/containerkinds/show.jspx | 10 - .../WEB-INF/views/containerkinds/update.jspx | 10 - .../WEB-INF/views/containerkinds/views.xml | 16 - .../WEB-INF/views/containerlabels/create.jspx | 22 - ...ntainerLabelsByContainerAndIgnoredNot.jspx | 9 - ...rLabelsByLabelTextEqualsAndIgnoredNot.jspx | 9 - ...dContainerLabelsByLsTransactionEquals.jspx | 8 - ...EqualsAndLabelTextEqualsAndIgnoredNot.jspx | 10 - .../WEB-INF/views/containerlabels/list.jspx | 15 - .../WEB-INF/views/containerlabels/show.jspx | 21 - .../WEB-INF/views/containerlabels/update.jspx | 21 - .../WEB-INF/views/containerlabels/views.xml | 28 - .../WEB-INF/views/containers/create.jspx | 28 - .../webapp/WEB-INF/views/containers/list.jspx | 15 - .../webapp/WEB-INF/views/containers/show.jspx | 21 - .../WEB-INF/views/containers/update.jspx | 27 - .../webapp/WEB-INF/views/containers/views.xml | 16 - .../WEB-INF/views/containerstates/create.jspx | 21 - .../findContainerStatesByContainer.jspx | 8 - ...ContainerAndLsKindEqualsAndIgnoredNot.jspx | 10 - .../findContainerStatesByIgnoredNot.jspx | 8 - .../WEB-INF/views/containerstates/list.jspx | 15 - .../WEB-INF/views/containerstates/show.jspx | 19 - .../WEB-INF/views/containerstates/update.jspx | 20 - .../WEB-INF/views/containerstates/views.xml | 25 - .../WEB-INF/views/containertypes/create.jspx | 9 - .../findContainerTypesByTypeNameEquals.jspx | 8 - .../WEB-INF/views/containertypes/list.jspx | 10 - .../WEB-INF/views/containertypes/show.jspx | 8 - .../WEB-INF/views/containertypes/update.jspx | 8 - .../WEB-INF/views/containertypes/views.xml | 19 - .../WEB-INF/views/containervalues/create.jspx | 45 - .../findContainerValuesByIgnoredNot.jspx | 8 - .../findContainerValuesByLsState.jspx | 8 - .../WEB-INF/views/containervalues/list.jspx | 15 - .../WEB-INF/views/containervalues/show.jspx | 44 - .../WEB-INF/views/containervalues/update.jspx | 44 - .../WEB-INF/views/containervalues/views.xml | 22 - .../WEB-INF/views/corpnames/create.jspx | 11 - .../webapp/WEB-INF/views/corpnames/list.jspx | 12 - .../webapp/WEB-INF/views/corpnames/show.jspx | 10 - .../WEB-INF/views/corpnames/update.jspx | 10 - .../webapp/WEB-INF/views/corpnames/views.xml | 16 - .../webapp/WEB-INF/views/cronjobs/create.jspx | 21 - .../webapp/WEB-INF/views/cronjobs/list.jspx | 15 - .../webapp/WEB-INF/views/cronjobs/show.jspx | 20 - .../webapp/WEB-INF/views/cronjobs/update.jspx | 20 - .../webapp/WEB-INF/views/cronjobs/views.xml | 16 - .../WEB-INF/views/dataAccessFailure.jspx | 30 - .../WEB-INF/views/ddictkinds/create.jspx | 15 - ...DDictKindsByLsTypeEqualsAndNameEquals.jspx | 9 - .../webapp/WEB-INF/views/ddictkinds/list.jspx | 15 - .../webapp/WEB-INF/views/ddictkinds/show.jspx | 14 - .../WEB-INF/views/ddictkinds/update.jspx | 14 - .../webapp/WEB-INF/views/ddictkinds/views.xml | 19 - .../WEB-INF/views/ddicttypes/create.jspx | 13 - .../findDDictTypesByNameEquals.jspx | 8 - .../webapp/WEB-INF/views/ddicttypes/list.jspx | 14 - .../webapp/WEB-INF/views/ddicttypes/show.jspx | 12 - .../WEB-INF/views/ddicttypes/update.jspx | 12 - .../webapp/WEB-INF/views/ddicttypes/views.xml | 19 - .../WEB-INF/views/ddictvalues/create.jspx | 18 - .../findDDictValuesByCodeNameEquals.jspx | 8 - .../findDDictValuesByIgnoredNot.jspx | 8 - .../findDDictValuesByLabelTextLike.jspx | 8 - .../findDDictValuesByLsKindEquals.jspx | 8 - .../findDDictValuesByLsTypeEquals.jspx | 8 - ...ctValuesByLsTypeEqualsAndLsKindEquals.jspx | 9 - ...ualsAndLsKindEqualsAndShortNameEquals.jspx | 10 - .../WEB-INF/views/ddictvalues/list.jspx | 15 - .../WEB-INF/views/ddictvalues/show.jspx | 17 - .../WEB-INF/views/ddictvalues/update.jspx | 17 - .../WEB-INF/views/ddictvalues/views.xml | 37 - .../WEB-INF/views/experimentkinds/create.jspx | 11 - .../WEB-INF/views/experimentkinds/list.jspx | 12 - .../WEB-INF/views/experimentkinds/show.jspx | 10 - .../WEB-INF/views/experimentkinds/update.jspx | 10 - .../WEB-INF/views/experimentkinds/views.xml | 16 - .../views/experimentlabels/create.jspx | 22 - .../findExperimentLabelsByExperiment.jspx | 8 - ...rimentLabelsByExperimentAndIgnoredNot.jspx | 9 - .../findExperimentLabelsByLabelTextLike.jspx | 8 - ...indEqualsAndPreferredNotAndIgnoredNot.jspx | 11 - ...indEqualsAndPreferredNotAndIgnoredNot.jspx | 11 - ...indEqualsAndPreferredNotAndIgnoredNot.jspx | 10 - .../WEB-INF/views/experimentlabels/list.jspx | 15 - .../WEB-INF/views/experimentlabels/show.jspx | 21 - .../views/experimentlabels/update.jspx | 21 - .../WEB-INF/views/experimentlabels/views.xml | 34 - .../WEB-INF/views/experiments/create.jspx | 28 - .../findExperimentsByCodeNameEquals.jspx | 8 - .../findExperimentsByCodeNameLike.jspx | 8 - .../findExperimentsByLsKindEquals.jspx | 8 - .../findExperimentsByLsKindLike.jspx | 8 - .../findExperimentsByLsTransaction.jspx | 8 - .../findExperimentsByLsTypeEquals.jspx | 8 - ...erimentsByLsTypeEqualsAndLsKindEquals.jspx | 9 - .../findExperimentsByLsTypeLike.jspx | 8 - .../findExperimentsByProtocol.jspx | 8 - .../findExperimentsByRecordedByLike.jspx | 8 - .../WEB-INF/views/experiments/list.jspx | 15 - .../WEB-INF/views/experiments/show.jspx | 22 - .../WEB-INF/views/experiments/update.jspx | 27 - .../WEB-INF/views/experiments/views.xml | 46 - .../views/experimentstates/create.jspx | 21 - .../findExperimentStatesByExperiment.jspx | 8 - .../WEB-INF/views/experimentstates/list.jspx | 15 - .../WEB-INF/views/experimentstates/show.jspx | 19 - .../views/experimentstates/update.jspx | 20 - .../WEB-INF/views/experimentstates/views.xml | 19 - .../WEB-INF/views/experimenttypes/create.jspx | 9 - .../findExperimentTypesByTypeNameEquals.jspx | 8 - .../WEB-INF/views/experimenttypes/list.jspx | 10 - .../WEB-INF/views/experimenttypes/show.jspx | 8 - .../WEB-INF/views/experimenttypes/update.jspx | 8 - .../WEB-INF/views/experimenttypes/views.xml | 19 - .../views/experimentvalues/create.jspx | 45 - ...tValuesByLsKindEqualsAndCodeValueLike.jspx | 9 - ...aluesByLsKindEqualsAndDateValueEquals.jspx | 9 - ...tValuesByLsKindEqualsAndDateValueLike.jspx | 9 - ...aluesByLsKindEqualsAndStringValueLike.jspx | 9 - .../findExperimentValuesByLsState.jspx | 8 - ...lsAndLsTypeEqualsAndStringValueEquals.jspx | 12 - .../WEB-INF/views/experimentvalues/list.jspx | 15 - .../WEB-INF/views/experimentvalues/show.jspx | 44 - .../views/experimentvalues/update.jspx | 44 - .../WEB-INF/views/experimentvalues/views.xml | 34 - .../WEB-INF/views/filelists/create.jspx | 20 - .../views/filelists/findFileListsByLot.jspx | 8 - .../filelists/findFileListsByUrlEquals.jspx | 8 - .../webapp/WEB-INF/views/filelists/list.jspx | 15 - .../webapp/WEB-INF/views/filelists/show.jspx | 19 - .../WEB-INF/views/filelists/update.jspx | 19 - .../webapp/WEB-INF/views/filelists/views.xml | 22 - .../WEB-INF/views/filethings/create.jspx | 27 - .../webapp/WEB-INF/views/filethings/list.jspx | 15 - .../webapp/WEB-INF/views/filethings/show.jspx | 25 - .../WEB-INF/views/filethings/update.jspx | 26 - .../webapp/WEB-INF/views/filethings/views.xml | 16 - .../WEB-INF/views/filetypes/create.jspx | 10 - .../filetypes/findFileTypesByCodeEquals.jspx | 8 - .../webapp/WEB-INF/views/filetypes/list.jspx | 11 - .../webapp/WEB-INF/views/filetypes/show.jspx | 9 - .../WEB-INF/views/filetypes/update.jspx | 9 - .../webapp/WEB-INF/views/filetypes/views.xml | 19 - src/main/webapp/WEB-INF/views/footer.jspx | 43 - .../WEB-INF/views/forgotpassword/index.jspx | 34 - .../WEB-INF/views/forgotpassword/thanks.jspx | 16 - .../WEB-INF/views/forgotpassword/views.xml | 15 - src/main/webapp/WEB-INF/views/header.jspx | 11 - .../webapp/WEB-INF/views/index-template.jspx | 11 - src/main/webapp/WEB-INF/views/index.jspx | 14 - .../views/interactionkinds/create.jspx | 11 - .../WEB-INF/views/interactionkinds/list.jspx | 12 - .../WEB-INF/views/interactionkinds/show.jspx | 10 - .../views/interactionkinds/update.jspx | 10 - .../WEB-INF/views/interactionkinds/views.xml | 16 - .../views/interactiontypes/create.jspx | 10 - .../WEB-INF/views/interactiontypes/list.jspx | 11 - .../WEB-INF/views/interactiontypes/show.jspx | 9 - .../views/interactiontypes/update.jspx | 9 - .../WEB-INF/views/interactiontypes/views.xml | 16 - .../webapp/WEB-INF/views/isosalts/create.jspx | 14 - .../isosalts/findIsoSaltsBySaltForm.jspx | 8 - .../findIsoSaltsBySaltFormAndType.jspx | 9 - .../webapp/WEB-INF/views/isosalts/list.jspx | 15 - .../webapp/WEB-INF/views/isosalts/show.jspx | 13 - .../webapp/WEB-INF/views/isosalts/update.jspx | 13 - .../webapp/WEB-INF/views/isosalts/views.xml | 22 - .../webapp/WEB-INF/views/isotopes/create.jspx | 12 - .../isotopes/findIsotopesByAbbrevEquals.jspx | 8 - ...ndIsotopesByAbbrevEqualsAndNameEquals.jspx | 9 - .../isotopes/findIsotopesByNameEquals.jspx | 8 - .../webapp/WEB-INF/views/isotopes/list.jspx | 13 - .../webapp/WEB-INF/views/isotopes/show.jspx | 11 - .../webapp/WEB-INF/views/isotopes/update.jspx | 11 - .../webapp/WEB-INF/views/isotopes/views.xml | 25 - .../views/itxcontainercontainers/create.jspx | 23 - ...tainerContainersByLsTransactionEquals.jspx | 8 - ...ByLsTypeEqualsAndFirstContainerEquals.jspx | 9 - ...yLsTypeEqualsAndSecondContainerEquals.jspx | 9 - .../views/itxcontainercontainers/list.jspx | 15 - .../views/itxcontainercontainers/show.jspx | 20 - .../views/itxcontainercontainers/update.jspx | 22 - .../views/itxcontainercontainers/views.xml | 25 - .../itxcontainercontainerstates/create.jspx | 21 - .../itxcontainercontainerstates/list.jspx | 15 - .../itxcontainercontainerstates/show.jspx | 19 - .../itxcontainercontainerstates/update.jspx | 20 - .../itxcontainercontainerstates/views.xml | 16 - .../itxcontainercontainervalues/create.jspx | 45 - .../itxcontainercontainervalues/list.jspx | 15 - .../itxcontainercontainervalues/show.jspx | 44 - .../itxcontainercontainervalues/update.jspx | 44 - .../itxcontainercontainervalues/views.xml | 16 - .../itxexperimentexperiments/create.jspx | 23 - ...xperimentExperimentsByFirstExperiment.jspx | 8 - ...imentExperimentsByLsTransactionEquals.jspx | 8 - ...perimentExperimentsBySecondExperiment.jspx | 8 - .../views/itxexperimentexperiments/list.jspx | 15 - .../views/itxexperimentexperiments/show.jspx | 20 - .../itxexperimentexperiments/update.jspx | 22 - .../views/itxexperimentexperiments/views.xml | 25 - .../itxexperimentexperimentstates/create.jspx | 21 - .../itxexperimentexperimentstates/list.jspx | 15 - .../itxexperimentexperimentstates/show.jspx | 19 - .../itxexperimentexperimentstates/update.jspx | 20 - .../itxexperimentexperimentstates/views.xml | 16 - .../itxexperimentexperimentvalues/create.jspx | 45 - .../itxexperimentexperimentvalues/list.jspx | 15 - .../itxexperimentexperimentvalues/show.jspx | 44 - .../itxexperimentexperimentvalues/update.jspx | 44 - .../itxexperimentexperimentvalues/views.xml | 16 - .../views/itxlsthinglsthings/create.jspx | 23 - ...indItxLsThingLsThingsByCodeNameEquals.jspx | 8 - .../findItxLsThingLsThingsByFirstLsThing.jspx | 8 - ...findItxLsThingLsThingsBySecondLsThing.jspx | 8 - .../views/itxlsthinglsthings/list.jspx | 15 - .../views/itxlsthinglsthings/show.jspx | 20 - .../views/itxlsthinglsthings/update.jspx | 22 - .../views/itxlsthinglsthings/views.xml | 25 - .../views/itxlsthinglsthingstates/create.jspx | 21 - .../views/itxlsthinglsthingstates/list.jspx | 15 - .../views/itxlsthinglsthingstates/show.jspx | 19 - .../views/itxlsthinglsthingstates/update.jspx | 20 - .../views/itxlsthinglsthingstates/views.xml | 16 - .../views/itxlsthinglsthingvalues/create.jspx | 45 - .../views/itxlsthinglsthingvalues/list.jspx | 15 - .../views/itxlsthinglsthingvalues/show.jspx | 44 - .../views/itxlsthinglsthingvalues/update.jspx | 44 - .../views/itxlsthinglsthingvalues/views.xml | 16 - .../views/itxprotocolprotocols/create.jspx | 23 - ...ndItxProtocolProtocolsByFirstProtocol.jspx | 8 - ...rotocolProtocolsByLsTransactionEquals.jspx | 8 - ...dItxProtocolProtocolsBySecondProtocol.jspx | 8 - .../views/itxprotocolprotocols/list.jspx | 15 - .../views/itxprotocolprotocols/show.jspx | 20 - .../views/itxprotocolprotocols/update.jspx | 22 - .../views/itxprotocolprotocols/views.xml | 25 - .../itxprotocolprotocolstates/create.jspx | 21 - .../views/itxprotocolprotocolstates/list.jspx | 15 - .../views/itxprotocolprotocolstates/show.jspx | 19 - .../itxprotocolprotocolstates/update.jspx | 20 - .../views/itxprotocolprotocolstates/views.xml | 16 - .../itxprotocolprotocolvalues/create.jspx | 45 - .../views/itxprotocolprotocolvalues/list.jspx | 15 - .../views/itxprotocolprotocolvalues/show.jspx | 44 - .../itxprotocolprotocolvalues/update.jspx | 44 - .../views/itxprotocolprotocolvalues/views.xml | 16 - .../views/itxsubjectcontainers/create.jspx | 23 - ...dItxSubjectContainersByCodeNameEquals.jspx | 8 - .../findItxSubjectContainersByContainer.jspx | 8 - ...ubjectContainersByLsTransactionEquals.jspx | 8 - .../findItxSubjectContainersBySubject.jspx | 8 - .../views/itxsubjectcontainers/list.jspx | 15 - .../views/itxsubjectcontainers/show.jspx | 20 - .../views/itxsubjectcontainers/update.jspx | 22 - .../views/itxsubjectcontainers/views.xml | 28 - .../itxsubjectcontainerstates/create.jspx | 21 - .../views/itxsubjectcontainerstates/list.jspx | 15 - .../views/itxsubjectcontainerstates/show.jspx | 19 - .../itxsubjectcontainerstates/update.jspx | 20 - .../views/itxsubjectcontainerstates/views.xml | 16 - .../itxsubjectcontainervalues/create.jspx | 45 - .../views/itxsubjectcontainervalues/list.jspx | 15 - .../views/itxsubjectcontainervalues/show.jspx | 44 - .../itxsubjectcontainervalues/update.jspx | 44 - .../views/itxsubjectcontainervalues/views.xml | 16 - .../WEB-INF/views/labelkinds/create.jspx | 11 - .../findLabelKindsByKindNameEquals.jspx | 8 - ...ndLabelKindsByKindNameEqualsAndLsType.jspx | 9 - .../labelkinds/findLabelKindsByLsType.jspx | 8 - .../webapp/WEB-INF/views/labelkinds/list.jspx | 12 - .../webapp/WEB-INF/views/labelkinds/show.jspx | 10 - .../WEB-INF/views/labelkinds/update.jspx | 10 - .../webapp/WEB-INF/views/labelkinds/views.xml | 25 - .../views/labelsequenceroles/create.jspx | 10 - .../views/labelsequenceroles/list.jspx | 11 - .../views/labelsequenceroles/show.jspx | 9 - .../views/labelsequenceroles/update.jspx | 9 - .../views/labelsequenceroles/views.xml | 16 - .../WEB-INF/views/labelsequences/create.jspx | 19 - ...abelSequencesByLabelTypeAndKindEquals.jspx | 8 - ...abelSequencesByThingTypeAndKindEquals.jspx | 8 - ...ndKindEqualsAndLabelTypeAndKindEquals.jspx | 9 - ...TypeAndKindEqualsAndLabelPrefixEquals.jspx | 10 - ...sAndLabelTypeEqualsAndLabelKindEquals.jspx | 11 - .../WEB-INF/views/labelsequences/list.jspx | 15 - .../WEB-INF/views/labelsequences/show.jspx | 17 - .../WEB-INF/views/labelsequences/update.jspx | 18 - .../WEB-INF/views/labelsequences/views.xml | 31 - .../WEB-INF/views/labeltypes/create.jspx | 9 - .../findLabelTypesByTypeNameEquals.jspx | 8 - .../webapp/WEB-INF/views/labeltypes/list.jspx | 10 - .../webapp/WEB-INF/views/labeltypes/show.jspx | 8 - .../WEB-INF/views/labeltypes/update.jspx | 8 - .../webapp/WEB-INF/views/labeltypes/views.xml | 19 - src/main/webapp/WEB-INF/views/login.jspx | 61 - src/main/webapp/WEB-INF/views/lot/index.jspx | 12 - src/main/webapp/WEB-INF/views/lot/views.xml | 7 - .../WEB-INF/views/lotaliases/create.jspx | 15 - ...eEqualsAndLsTypeEqualsAndLsKindEquals.jspx | 10 - .../views/lotaliases/findLotAliasesByLot.jspx | 8 - ...esByLotAndLsTypeEqualsAndLsKindEquals.jspx | 10 - .../webapp/WEB-INF/views/lotaliases/list.jspx | 15 - .../webapp/WEB-INF/views/lotaliases/show.jspx | 14 - .../WEB-INF/views/lotaliases/update.jspx | 14 - .../webapp/WEB-INF/views/lotaliases/views.xml | 25 - .../WEB-INF/views/lotaliaskinds/create.jspx | 10 - .../WEB-INF/views/lotaliaskinds/list.jspx | 11 - .../WEB-INF/views/lotaliaskinds/show.jspx | 9 - .../WEB-INF/views/lotaliaskinds/update.jspx | 9 - .../WEB-INF/views/lotaliaskinds/views.xml | 16 - .../WEB-INF/views/lotaliastypes/create.jspx | 9 - .../WEB-INF/views/lotaliastypes/list.jspx | 10 - .../WEB-INF/views/lotaliastypes/show.jspx | 8 - .../WEB-INF/views/lotaliastypes/update.jspx | 8 - .../WEB-INF/views/lotaliastypes/views.xml | 16 - .../webapp/WEB-INF/views/lots/create.jspx | 62 - .../WEB-INF/views/lots/findLotsByBuid.jspx | 8 - .../lots/findLotsByBulkLoadFileEquals.jspx | 8 - ...dLotsByChemistAndSynthesisDateBetween.jspx | 10 - .../views/lots/findLotsByCorpNameEquals.jspx | 8 - .../views/lots/findLotsByCorpNameLike.jspx | 8 - .../views/lots/findLotsByIsVirtualNot.jspx | 8 - .../lots/findLotsByNotebookPageEquals.jspx | 8 - ...dLotsByNotebookPageEqualsAndIgnoreNot.jspx | 9 - .../views/lots/findLotsBySaltForm.jspx | 8 - .../lots/findLotsBySynthesisDateBetween.jspx | 9 - .../findLotsBySynthesisDateGreaterThan.jspx | 8 - .../lots/findLotsBySynthesisDateLessThan.jspx | 8 - src/main/webapp/WEB-INF/views/lots/list.jspx | 15 - src/main/webapp/WEB-INF/views/lots/show.jspx | 59 - .../webapp/WEB-INF/views/lots/update.jspx | 61 - src/main/webapp/WEB-INF/views/lots/views.xml | 52 - .../WEB-INF/views/lsinteractions/create.jspx | 22 - .../WEB-INF/views/lsinteractions/list.jspx | 15 - .../WEB-INF/views/lsinteractions/show.jspx | 20 - .../WEB-INF/views/lsinteractions/update.jspx | 21 - .../WEB-INF/views/lsinteractions/views.xml | 16 - .../webapp/WEB-INF/views/lsroles/create.jspx | 14 - .../lsroles/findLsRolesByLsKindEquals.jspx | 8 - .../lsroles/findLsRolesByLsTypeEquals.jspx | 8 - ...dLsRolesByLsTypeEqualsAndLsKindEquals.jspx | 9 - ...qualsAndLsKindEqualsAndRoleNameEquals.jspx | 10 - ...sRolesByLsTypeEqualsAndRoleNameEquals.jspx | 9 - .../lsroles/findLsRolesByRoleNameEquals.jspx | 8 - .../webapp/WEB-INF/views/lsroles/list.jspx | 14 - .../webapp/WEB-INF/views/lsroles/show.jspx | 12 - .../webapp/WEB-INF/views/lsroles/update.jspx | 13 - .../webapp/WEB-INF/views/lsroles/views.xml | 34 - .../webapp/WEB-INF/views/lstags/create.jspx | 13 - .../lstags/findLsTagsByTagTextEquals.jspx | 8 - .../views/lstags/findLsTagsByTagTextLike.jspx | 8 - .../webapp/WEB-INF/views/lstags/list.jspx | 14 - .../webapp/WEB-INF/views/lstags/show.jspx | 12 - .../webapp/WEB-INF/views/lstags/update.jspx | 12 - .../webapp/WEB-INF/views/lstags/views.xml | 22 - .../WEB-INF/views/lsthinglabels/create.jspx | 23 - .../findLsThingLabelsByLabelTextEquals.jspx | 8 - ...gLabelsByLabelTextEqualsAndIgnoredNot.jspx | 9 - .../findLsThingLabelsByLabelTextLike.jspx | 8 - .../findLsThingLabelsByLsThing.jspx | 8 - ...indLsThingLabelsByLsTransactionEquals.jspx | 8 - .../WEB-INF/views/lsthinglabels/list.jspx | 15 - .../WEB-INF/views/lsthinglabels/show.jspx | 22 - .../WEB-INF/views/lsthinglabels/update.jspx | 22 - .../WEB-INF/views/lsthinglabels/views.xml | 31 - .../webapp/WEB-INF/views/lsthings/create.jspx | 25 - .../findLsThingsByCodeNameEquals.jspx | 8 - .../lsthings/findLsThingsByCodeNameLike.jspx | 8 - .../lsthings/findLsThingsByLsKindEquals.jspx | 8 - .../lsthings/findLsThingsByLsKindLike.jspx | 8 - .../findLsThingsByLsTransactionEquals.jspx | 8 - .../findLsThingsByLsTypeAndKindEquals.jspx | 8 - .../lsthings/findLsThingsByLsTypeEquals.jspx | 8 - ...LsThingsByLsTypeEqualsAndLsKindEquals.jspx | 9 - .../findLsThingsByRecordedByLike.jspx | 8 - ...findLsThingsByRecordedDateGreaterThan.jspx | 8 - .../findLsThingsByRecordedDateLessThan.jspx | 8 - .../webapp/WEB-INF/views/lsthings/list.jspx | 15 - .../webapp/WEB-INF/views/lsthings/show.jspx | 19 - .../webapp/WEB-INF/views/lsthings/update.jspx | 24 - .../webapp/WEB-INF/views/lsthings/views.xml | 49 - .../WEB-INF/views/lsthingstates/create.jspx | 21 - .../findLsThingStatesByLsThing.jspx | 8 - ...indLsThingStatesByLsTransactionEquals.jspx | 8 - .../WEB-INF/views/lsthingstates/list.jspx | 15 - .../WEB-INF/views/lsthingstates/show.jspx | 19 - .../WEB-INF/views/lsthingstates/update.jspx | 20 - .../WEB-INF/views/lsthingstates/views.xml | 22 - .../WEB-INF/views/lsthingvalues/create.jspx | 45 - .../findLsThingValuesByCodeValueEquals.jspx | 8 - ...gValuesByIgnoredNotAndCodeValueEquals.jspx | 9 - ...gValuesByLsKindEqualsAndCodeValueLike.jspx | 9 - ...ndEqualsAndDateValueGreaterThanEquals.jspx | 9 - ...sKindEqualsAndDateValueLessThanEquals.jspx | 9 - ...gValuesByLsKindEqualsAndDateValueLike.jspx | 9 - ...esByLsKindEqualsAndNumericValueEquals.jspx | 9 - ...qualsAndNumericValueGreaterThanEquals.jspx | 9 - ...ndEqualsAndNumericValueLessThanEquals.jspx | 9 - ...uesByLsKindEqualsAndStringValueEquals.jspx | 9 - ...aluesByLsKindEqualsAndStringValueLike.jspx | 9 - .../findLsThingValuesByLsState.jspx | 8 - ...indLsThingValuesByLsTransactionEquals.jspx | 8 - .../WEB-INF/views/lsthingvalues/list.jspx | 15 - .../WEB-INF/views/lsthingvalues/show.jspx | 44 - .../WEB-INF/views/lsthingvalues/update.jspx | 44 - .../WEB-INF/views/lsthingvalues/views.xml | 55 - .../WEB-INF/views/lstransactions/create.jspx | 13 - .../WEB-INF/views/lstransactions/list.jspx | 14 - .../WEB-INF/views/lstransactions/show.jspx | 12 - .../WEB-INF/views/lstransactions/update.jspx | 12 - .../WEB-INF/views/lstransactions/views.xml | 16 - src/main/webapp/WEB-INF/views/menu.jspx | 773 ----- src/main/webapp/WEB-INF/views/menu.xml | 784 ----- .../WEB-INF/views/operatorkinds/create.jspx | 11 - .../WEB-INF/views/operatorkinds/list.jspx | 12 - .../WEB-INF/views/operatorkinds/show.jspx | 10 - .../WEB-INF/views/operatorkinds/update.jspx | 10 - .../WEB-INF/views/operatorkinds/views.xml | 16 - .../WEB-INF/views/operators/create.jspx | 10 - .../operators/findOperatorsByCodeEquals.jspx | 8 - .../operators/findOperatorsByNameEquals.jspx | 8 - .../webapp/WEB-INF/views/operators/list.jspx | 11 - .../webapp/WEB-INF/views/operators/show.jspx | 9 - .../WEB-INF/views/operators/update.jspx | 9 - .../webapp/WEB-INF/views/operators/views.xml | 22 - .../WEB-INF/views/operatortypes/create.jspx | 9 - .../findOperatorTypesByTypeNameEquals.jspx | 8 - .../WEB-INF/views/operatortypes/list.jspx | 10 - .../WEB-INF/views/operatortypes/show.jspx | 8 - .../WEB-INF/views/operatortypes/update.jspx | 8 - .../WEB-INF/views/operatortypes/views.xml | 19 - .../views/parentAnnotations/create.jspx | 12 - .../findParentAnnotationsByCodeEquals.jspx | 8 - .../WEB-INF/views/parentAnnotations/list.jspx | 13 - .../WEB-INF/views/parentAnnotations/show.jspx | 11 - .../views/parentAnnotations/update.jspx | 11 - .../WEB-INF/views/parentAnnotations/views.xml | 19 - .../WEB-INF/views/parentaliases/create.jspx | 16 - .../findParentAliasesByAliasNameEquals.jspx | 8 - ...eEqualsAndLsTypeEqualsAndLsKindEquals.jspx | 10 - .../findParentAliasesByParent.jspx | 8 - ...yParentAndLsTypeEqualsAndLsKindEquals.jspx | 10 - ...ualsAndLsKindEqualsAndAliasNameEquals.jspx | 11 - .../WEB-INF/views/parentaliases/list.jspx | 15 - .../WEB-INF/views/parentaliases/show.jspx | 15 - .../WEB-INF/views/parentaliases/update.jspx | 15 - .../WEB-INF/views/parentaliases/views.xml | 31 - .../views/parentaliaskinds/create.jspx | 10 - .../WEB-INF/views/parentaliaskinds/list.jspx | 11 - .../WEB-INF/views/parentaliaskinds/show.jspx | 9 - .../views/parentaliaskinds/update.jspx | 9 - .../WEB-INF/views/parentaliaskinds/views.xml | 16 - .../views/parentaliastypes/create.jspx | 9 - .../WEB-INF/views/parentaliastypes/list.jspx | 10 - .../WEB-INF/views/parentaliastypes/show.jspx | 8 - .../views/parentaliastypes/update.jspx | 8 - .../WEB-INF/views/parentaliastypes/views.xml | 16 - .../webapp/WEB-INF/views/parents/create.jspx | 32 - .../findParentsByBulkLoadFileEquals.jspx | 8 - .../views/parents/findParentsByCdId.jspx | 8 - .../parents/findParentsByCommonNameLike.jspx | 8 - .../parents/findParentsByCorpNameEquals.jspx | 8 - .../parents/findParentsByCorpNameLike.jspx | 8 - .../views/parents/findParentsBySaltForms.jspx | 8 - .../webapp/WEB-INF/views/parents/list.jspx | 15 - .../webapp/WEB-INF/views/parents/show.jspx | 29 - .../webapp/WEB-INF/views/parents/update.jspx | 31 - .../webapp/WEB-INF/views/parents/views.xml | 34 - .../WEB-INF/views/physicalstates/create.jspx | 10 - .../findPhysicalStatesByCodeEquals.jspx | 8 - .../findPhysicalStatesByNameEquals.jspx | 8 - .../findPhysicalStatesByNameLike.jspx | 8 - .../WEB-INF/views/physicalstates/list.jspx | 11 - .../WEB-INF/views/physicalstates/show.jspx | 9 - .../WEB-INF/views/physicalstates/update.jspx | 9 - .../WEB-INF/views/physicalstates/views.xml | 25 - .../views/predef_corpnames/create.jspx | 13 - .../WEB-INF/views/predef_corpnames/list.jspx | 14 - .../WEB-INF/views/predef_corpnames/show.jspx | 12 - .../views/predef_corpnames/update.jspx | 12 - .../WEB-INF/views/predef_corpnames/views.xml | 16 - .../webapp/WEB-INF/views/projects/create.jspx | 10 - .../projects/findProjectsByCodeEquals.jspx | 8 - .../projects/findProjectsByNameEquals.jspx | 8 - .../webapp/WEB-INF/views/projects/list.jspx | 11 - .../webapp/WEB-INF/views/projects/show.jspx | 9 - .../webapp/WEB-INF/views/projects/update.jspx | 9 - .../webapp/WEB-INF/views/projects/views.xml | 22 - .../WEB-INF/views/protocolkinds/create.jspx | 11 - ...lKindsByLsTypeEqualsAndKindNameEquals.jspx | 9 - .../WEB-INF/views/protocolkinds/list.jspx | 12 - .../WEB-INF/views/protocolkinds/show.jspx | 10 - .../WEB-INF/views/protocolkinds/update.jspx | 10 - .../WEB-INF/views/protocolkinds/views.xml | 19 - .../WEB-INF/views/protocollabels/create.jspx | 22 - ...lLabelsByLabelTextEqualsAndIgnoredNot.jspx | 9 - .../findProtocolLabelsByLabelTextLike.jspx | 8 - ...ndProtocolLabelsByLsTransactionEquals.jspx | 8 - .../findProtocolLabelsByProtocol.jspx | 8 - .../WEB-INF/views/protocollabels/list.jspx | 15 - .../WEB-INF/views/protocollabels/show.jspx | 21 - .../WEB-INF/views/protocollabels/update.jspx | 21 - .../WEB-INF/views/protocollabels/views.xml | 28 - .../WEB-INF/views/protocols/create.jspx | 27 - .../findProtocolsByCodeNameEquals.jspx | 8 - ...rotocolsByCodeNameEqualsAndIgnoredNot.jspx | 9 - .../findProtocolsByCodeNameLike.jspx | 8 - .../protocols/findProtocolsByIgnoredNot.jspx | 8 - .../findProtocolsByLsKindEquals.jspx | 8 - .../protocols/findProtocolsByLsKindLike.jspx | 8 - .../findProtocolsByLsTransactionEquals.jspx | 8 - .../findProtocolsByLsTypeAndKindEquals.jspx | 8 - .../findProtocolsByLsTypeEquals.jspx | 8 - ...rotocolsByLsTypeEqualsAndLsKindEquals.jspx | 9 - .../protocols/findProtocolsByLsTypeLike.jspx | 8 - .../findProtocolsByRecordedByLike.jspx | 8 - .../webapp/WEB-INF/views/protocols/list.jspx | 15 - .../webapp/WEB-INF/views/protocols/show.jspx | 20 - .../WEB-INF/views/protocols/update.jspx | 26 - .../webapp/WEB-INF/views/protocols/views.xml | 52 - .../WEB-INF/views/protocolstates/create.jspx | 21 - ...ndProtocolStatesByLsTransactionEquals.jspx | 8 - .../findProtocolStatesByProtocol.jspx | 8 - .../WEB-INF/views/protocolstates/list.jspx | 15 - .../WEB-INF/views/protocolstates/show.jspx | 19 - .../WEB-INF/views/protocolstates/update.jspx | 20 - .../WEB-INF/views/protocolstates/views.xml | 22 - .../WEB-INF/views/protocoltypes/create.jspx | 9 - .../findProtocolTypesByTypeNameEquals.jspx | 8 - .../WEB-INF/views/protocoltypes/list.jspx | 10 - .../WEB-INF/views/protocoltypes/show.jspx | 8 - .../WEB-INF/views/protocoltypes/update.jspx | 8 - .../WEB-INF/views/protocoltypes/views.xml | 19 - .../WEB-INF/views/protocolvalues/create.jspx | 45 - ...lValuesByLsKindEqualsAndCodeValueLike.jspx | 9 - ...lValuesByLsKindEqualsAndDateValueLike.jspx | 9 - ...aluesByLsKindEqualsAndStringValueLike.jspx | 9 - .../findProtocolValuesByLsState.jspx | 8 - ...ndProtocolValuesByLsTransactionEquals.jspx | 8 - .../WEB-INF/views/protocolvalues/list.jspx | 15 - .../WEB-INF/views/protocolvalues/show.jspx | 44 - .../WEB-INF/views/protocolvalues/update.jspx | 44 - .../WEB-INF/views/protocolvalues/views.xml | 34 - .../views/puritymeasuredbys/create.jspx | 10 - .../findPurityMeasuredBysByCodeEquals.jspx | 8 - .../findPurityMeasuredBysByNameEquals.jspx | 8 - .../findPurityMeasuredBysByNameLike.jspx | 8 - .../WEB-INF/views/puritymeasuredbys/list.jspx | 11 - .../WEB-INF/views/puritymeasuredbys/show.jspx | 9 - .../views/puritymeasuredbys/update.jspx | 9 - .../WEB-INF/views/puritymeasuredbys/views.xml | 25 - .../WEB-INF/views/resourceNotFound.jspx | 29 - .../WEB-INF/views/rolekinds/create.jspx | 11 - ...indRoleKindsByKindNameEqualsAndLsType.jspx | 9 - .../rolekinds/findRoleKindsByLsType.jspx | 8 - .../webapp/WEB-INF/views/rolekinds/list.jspx | 12 - .../webapp/WEB-INF/views/rolekinds/show.jspx | 10 - .../WEB-INF/views/rolekinds/update.jspx | 10 - .../webapp/WEB-INF/views/rolekinds/views.xml | 22 - .../WEB-INF/views/roletypes/create.jspx | 9 - .../findRoleTypesByTypeNameEquals.jspx | 8 - .../webapp/WEB-INF/views/roletypes/list.jspx | 10 - .../webapp/WEB-INF/views/roletypes/show.jspx | 8 - .../WEB-INF/views/roletypes/update.jspx | 8 - .../webapp/WEB-INF/views/roletypes/views.xml | 19 - .../WEB-INF/views/saltformaliases/create.jspx | 15 - ...eEqualsAndLsTypeEqualsAndLsKindEquals.jspx | 10 - .../findSaltFormAliasesBySaltForm.jspx | 8 - .../WEB-INF/views/saltformaliases/list.jspx | 15 - .../WEB-INF/views/saltformaliases/show.jspx | 14 - .../WEB-INF/views/saltformaliases/update.jspx | 14 - .../WEB-INF/views/saltformaliases/views.xml | 22 - .../views/saltformaliaskinds/create.jspx | 10 - .../views/saltformaliaskinds/list.jspx | 11 - .../views/saltformaliaskinds/show.jspx | 9 - .../views/saltformaliaskinds/update.jspx | 9 - .../views/saltformaliaskinds/views.xml | 16 - .../views/saltformaliastypes/create.jspx | 9 - .../views/saltformaliastypes/list.jspx | 10 - .../views/saltformaliastypes/show.jspx | 8 - .../views/saltformaliastypes/update.jspx | 8 - .../views/saltformaliastypes/views.xml | 16 - .../WEB-INF/views/saltforms/create.jspx | 20 - .../findSaltFormsByBulkLoadFileEquals.jspx | 8 - .../views/saltforms/findSaltFormsByCdId.jspx | 8 - .../findSaltFormsByCorpNameEquals.jspx | 8 - .../findSaltFormsByCorpNameLike.jspx | 8 - .../saltforms/findSaltFormsByParent.jspx | 8 - .../webapp/WEB-INF/views/saltforms/list.jspx | 15 - .../webapp/WEB-INF/views/saltforms/show.jspx | 17 - .../WEB-INF/views/saltforms/update.jspx | 19 - .../webapp/WEB-INF/views/saltforms/views.xml | 31 - .../WEB-INF/views/saltloaders/create.jspx | 16 - .../WEB-INF/views/saltloaders/list.jspx | 15 - .../WEB-INF/views/saltloaders/show.jspx | 15 - .../WEB-INF/views/saltloaders/update.jspx | 15 - .../WEB-INF/views/saltloaders/views.xml | 16 - .../webapp/WEB-INF/views/salts/create.jspx | 17 - .../views/salts/findSaltsByAbbrevEquals.jspx | 8 - .../findSaltsByAbbrevEqualsAndNameEquals.jspx | 9 - .../views/salts/findSaltsByAbbrevLike.jspx | 8 - .../WEB-INF/views/salts/findSaltsByCdId.jspx | 8 - .../views/salts/findSaltsByNameEquals.jspx | 8 - src/main/webapp/WEB-INF/views/salts/list.jspx | 15 - src/main/webapp/WEB-INF/views/salts/show.jspx | 16 - .../webapp/WEB-INF/views/salts/update.jspx | 16 - src/main/webapp/WEB-INF/views/salts/views.xml | 31 - .../WEB-INF/views/scientists/create.jspx | 13 - .../findScientistsByCodeEquals.jspx | 8 - .../scientists/findScientistsByCodeLike.jspx | 8 - .../webapp/WEB-INF/views/scientists/list.jspx | 14 - .../webapp/WEB-INF/views/scientists/show.jspx | 12 - .../WEB-INF/views/scientists/update.jspx | 12 - .../webapp/WEB-INF/views/scientists/views.xml | 22 - .../webapp/WEB-INF/views/signup/error.jspx | 16 - .../webapp/WEB-INF/views/signup/index.jspx | 19 - .../webapp/WEB-INF/views/signup/thanks.jspx | 16 - .../webapp/WEB-INF/views/signup/views.xml | 18 - .../WEB-INF/views/solutionunits/create.jspx | 10 - .../findSolutionUnitsByCodeEquals.jspx | 8 - .../findSolutionUnitsByCodeLike.jspx | 8 - .../findSolutionUnitsByNameEquals.jspx | 8 - .../WEB-INF/views/solutionunits/list.jspx | 11 - .../WEB-INF/views/solutionunits/show.jspx | 9 - .../WEB-INF/views/solutionunits/update.jspx | 9 - .../WEB-INF/views/solutionunits/views.xml | 25 - .../WEB-INF/views/statekinds/create.jspx | 11 - .../findStateKindsByKindNameEquals.jspx | 8 - ...ndStateKindsByKindNameEqualsAndLsType.jspx | 9 - .../statekinds/findStateKindsByLsType.jspx | 8 - .../webapp/WEB-INF/views/statekinds/list.jspx | 12 - .../webapp/WEB-INF/views/statekinds/show.jspx | 10 - .../WEB-INF/views/statekinds/update.jspx | 10 - .../webapp/WEB-INF/views/statekinds/views.xml | 25 - .../WEB-INF/views/statetypes/create.jspx | 9 - .../findStateTypesByTypeNameEquals.jspx | 8 - .../webapp/WEB-INF/views/statetypes/list.jspx | 10 - .../webapp/WEB-INF/views/statetypes/show.jspx | 8 - .../WEB-INF/views/statetypes/update.jspx | 8 - .../webapp/WEB-INF/views/statetypes/views.xml | 19 - .../WEB-INF/views/stereocategorys/create.jspx | 10 - .../findStereoCategorysByCodeEquals.jspx | 8 - .../findStereoCategorysByCodeLike.jspx | 8 - .../WEB-INF/views/stereocategorys/list.jspx | 11 - .../WEB-INF/views/stereocategorys/show.jspx | 9 - .../WEB-INF/views/stereocategorys/update.jspx | 9 - .../WEB-INF/views/stereocategorys/views.xml | 22 - .../WEB-INF/views/structurekinds/create.jspx | 11 - .../WEB-INF/views/structurekinds/list.jspx | 12 - .../WEB-INF/views/structurekinds/show.jspx | 10 - .../WEB-INF/views/structurekinds/update.jspx | 10 - .../WEB-INF/views/structurekinds/views.xml | 16 - .../WEB-INF/views/structuretypes/create.jspx | 9 - .../WEB-INF/views/structuretypes/list.jspx | 10 - .../WEB-INF/views/structuretypes/show.jspx | 8 - .../WEB-INF/views/structuretypes/update.jspx | 8 - .../WEB-INF/views/structuretypes/views.xml | 16 - .../WEB-INF/views/subjectlabels/create.jspx | 22 - .../findSubjectLabelsBySubject.jspx | 8 - .../WEB-INF/views/subjectlabels/list.jspx | 15 - .../WEB-INF/views/subjectlabels/show.jspx | 21 - .../WEB-INF/views/subjectlabels/update.jspx | 21 - .../WEB-INF/views/subjectlabels/views.xml | 19 - .../webapp/WEB-INF/views/subjects/create.jspx | 24 - .../findSubjectsByCodeNameEquals.jspx | 8 - .../findSubjectsByLsTransactionEquals.jspx | 8 - .../findSubjectsByTreatmentGroup.jspx | 8 - .../findSubjectsByTreatmentGroups.jspx | 8 - .../webapp/WEB-INF/views/subjects/list.jspx | 15 - .../webapp/WEB-INF/views/subjects/show.jspx | 19 - .../webapp/WEB-INF/views/subjects/update.jspx | 23 - .../webapp/WEB-INF/views/subjects/views.xml | 28 - .../WEB-INF/views/subjectstates/create.jspx | 21 - ...LsTypeEqualsAndLsKindEqualsAndSubject.jspx | 10 - .../findSubjectStatesBySubject.jspx | 8 - .../WEB-INF/views/subjectstates/list.jspx | 15 - .../WEB-INF/views/subjectstates/show.jspx | 19 - .../WEB-INF/views/subjectstates/update.jspx | 20 - .../WEB-INF/views/subjectstates/views.xml | 22 - .../WEB-INF/views/subjectvalues/create.jspx | 45 - .../findSubjectValuesByCodeValueEquals.jspx | 8 - ...tValuesByIgnoredNotAndCodeValueEquals.jspx | 9 - .../findSubjectValuesByLsState.jspx | 8 - ...LsStateAndLsTypeEqualsAndLsKindEquals.jspx | 10 - ...ctValuesByLsTypeEqualsAndLsKindEquals.jspx | 9 - .../WEB-INF/views/subjectvalues/list.jspx | 15 - .../WEB-INF/views/subjectvalues/show.jspx | 44 - .../WEB-INF/views/subjectvalues/update.jspx | 44 - .../WEB-INF/views/subjectvalues/views.xml | 31 - .../views/tempselecttables/create.jspx | 13 - .../WEB-INF/views/tempselecttables/list.jspx | 14 - .../WEB-INF/views/tempselecttables/show.jspx | 12 - .../views/tempselecttables/update.jspx | 12 - .../WEB-INF/views/tempselecttables/views.xml | 16 - .../WEB-INF/views/thingkinds/create.jspx | 11 - ...ndThingKindsByKindNameEqualsAndLsType.jspx | 9 - .../thingkinds/findThingKindsByLsType.jspx | 8 - .../findThingKindsByLsTypeAndKindEquals.jspx | 8 - .../webapp/WEB-INF/views/thingkinds/list.jspx | 12 - .../webapp/WEB-INF/views/thingkinds/show.jspx | 10 - .../WEB-INF/views/thingkinds/update.jspx | 10 - .../webapp/WEB-INF/views/thingkinds/views.xml | 25 - .../views/thingpagearchives/create.jspx | 20 - .../WEB-INF/views/thingpagearchives/list.jspx | 15 - .../WEB-INF/views/thingpagearchives/show.jspx | 19 - .../views/thingpagearchives/update.jspx | 19 - .../WEB-INF/views/thingpagearchives/views.xml | 16 - .../WEB-INF/views/thingpages/create.jspx | 19 - .../webapp/WEB-INF/views/thingpages/list.jspx | 15 - .../webapp/WEB-INF/views/thingpages/show.jspx | 18 - .../WEB-INF/views/thingpages/update.jspx | 18 - .../webapp/WEB-INF/views/thingpages/views.xml | 16 - .../WEB-INF/views/thingtypes/create.jspx | 9 - .../findThingTypesByTypeNameEquals.jspx | 8 - .../webapp/WEB-INF/views/thingtypes/list.jspx | 10 - .../webapp/WEB-INF/views/thingtypes/show.jspx | 8 - .../WEB-INF/views/thingtypes/update.jspx | 8 - .../webapp/WEB-INF/views/thingtypes/views.xml | 19 - .../views/treatmentgrouplabels/create.jspx | 22 - ...tmentGroupLabelsByLsTransactionEquals.jspx | 8 - ...dTreatmentGroupLabelsByTreatmentGroup.jspx | 8 - .../views/treatmentgrouplabels/list.jspx | 15 - .../views/treatmentgrouplabels/show.jspx | 21 - .../views/treatmentgrouplabels/update.jspx | 21 - .../views/treatmentgrouplabels/views.xml | 22 - .../WEB-INF/views/treatmentgroups/create.jspx | 24 - .../findTreatmentGroupsByAnalysisGroup.jspx | 8 - .../findTreatmentGroupsByAnalysisGroups.jspx | 8 - .../findTreatmentGroupsByCodeNameEquals.jspx | 8 - ...dTreatmentGroupsByLsTransactionEquals.jspx | 8 - .../WEB-INF/views/treatmentgroups/list.jspx | 15 - .../WEB-INF/views/treatmentgroups/show.jspx | 20 - .../WEB-INF/views/treatmentgroups/update.jspx | 23 - .../WEB-INF/views/treatmentgroups/views.xml | 28 - .../views/treatmentgroupstates/create.jspx | 21 - ...tmentGroupStatesByLsTransactionEquals.jspx | 8 - ...tmentGroupStatesByLsTypeAndKindEquals.jspx | 8 - ...dTreatmentGroupStatesByTreatmentGroup.jspx | 8 - .../views/treatmentgroupstates/list.jspx | 15 - .../views/treatmentgroupstates/show.jspx | 19 - .../views/treatmentgroupstates/update.jspx | 20 - .../views/treatmentgroupstates/views.xml | 25 - .../views/treatmentgroupvalues/create.jspx | 45 - ...TreatmentGroupValuesByCodeValueEquals.jspx | 8 - ...pValuesByIgnoredNotAndCodeValueEquals.jspx | 9 - .../findTreatmentGroupValuesByLsState.jspx | 8 - ...tmentGroupValuesByLsTransactionEquals.jspx | 8 - .../views/treatmentgroupvalues/list.jspx | 15 - .../views/treatmentgroupvalues/show.jspx | 44 - .../views/treatmentgroupvalues/update.jspx | 44 - .../views/treatmentgroupvalues/views.xml | 28 - .../WEB-INF/views/uncaughtException.jspx | 29 - .../views/uncertaintykinds/create.jspx | 9 - .../WEB-INF/views/uncertaintykinds/list.jspx | 10 - .../WEB-INF/views/uncertaintykinds/show.jspx | 8 - .../views/uncertaintykinds/update.jspx | 8 - .../WEB-INF/views/uncertaintykinds/views.xml | 16 - .../WEB-INF/views/unitkinds/create.jspx | 11 - .../webapp/WEB-INF/views/unitkinds/list.jspx | 12 - .../webapp/WEB-INF/views/unitkinds/show.jspx | 10 - .../WEB-INF/views/unitkinds/update.jspx | 10 - .../webapp/WEB-INF/views/unitkinds/views.xml | 16 - .../webapp/WEB-INF/views/units/create.jspx | 10 - .../views/units/findUnitsByCodeEquals.jspx | 8 - .../views/units/findUnitsByCodeLike.jspx | 8 - .../views/units/findUnitsByNameEquals.jspx | 8 - src/main/webapp/WEB-INF/views/units/list.jspx | 11 - src/main/webapp/WEB-INF/views/units/show.jspx | 9 - .../webapp/WEB-INF/views/units/update.jspx | 9 - src/main/webapp/WEB-INF/views/units/views.xml | 25 - .../WEB-INF/views/unittypes/create.jspx | 9 - .../findUnitTypesByTypeNameEquals.jspx | 8 - .../webapp/WEB-INF/views/unittypes/list.jspx | 10 - .../webapp/WEB-INF/views/unittypes/show.jspx | 8 - .../WEB-INF/views/unittypes/update.jspx | 8 - .../webapp/WEB-INF/views/unittypes/views.xml | 19 - .../WEB-INF/views/updatelogs/create.jspx | 14 - .../webapp/WEB-INF/views/updatelogs/list.jspx | 15 - .../webapp/WEB-INF/views/updatelogs/show.jspx | 13 - .../WEB-INF/views/updatelogs/update.jspx | 13 - .../webapp/WEB-INF/views/updatelogs/views.xml | 16 - .../WEB-INF/views/userroles/create.jspx | 9 - .../userroles/findAuthorRolesByUserEntry.jspx | 8 - .../webapp/WEB-INF/views/userroles/list.jspx | 10 - .../webapp/WEB-INF/views/userroles/show.jspx | 8 - .../WEB-INF/views/userroles/update.jspx | 8 - .../webapp/WEB-INF/views/userroles/views.xml | 19 - .../webapp/WEB-INF/views/users/create.jspx | 20 - src/main/webapp/WEB-INF/views/users/list.jspx | 15 - src/main/webapp/WEB-INF/views/users/show.jspx | 19 - .../webapp/WEB-INF/views/users/update.jspx | 19 - src/main/webapp/WEB-INF/views/users/views.xml | 16 - .../WEB-INF/views/valuekinds/create.jspx | 11 - ...ndValueKindsByKindNameEqualsAndLsType.jspx | 9 - .../valuekinds/findValueKindsByLsType.jspx | 8 - .../webapp/WEB-INF/views/valuekinds/list.jspx | 12 - .../webapp/WEB-INF/views/valuekinds/show.jspx | 10 - .../WEB-INF/views/valuekinds/update.jspx | 10 - .../webapp/WEB-INF/views/valuekinds/views.xml | 22 - .../WEB-INF/views/valuetypes/create.jspx | 9 - .../findValueTypesByTypeNameEquals.jspx | 8 - .../webapp/WEB-INF/views/valuetypes/list.jspx | 10 - .../webapp/WEB-INF/views/valuetypes/show.jspx | 8 - .../WEB-INF/views/valuetypes/update.jspx | 8 - .../webapp/WEB-INF/views/valuetypes/views.xml | 19 - .../webapp/WEB-INF/views/vendors/create.jspx | 10 - .../vendors/findVendorsByCodeEquals.jspx | 8 - .../views/vendors/findVendorsByCodeLike.jspx | 8 - .../vendors/findVendorsByNameEquals.jspx | 8 - .../views/vendors/findVendorsByNameLike.jspx | 8 - .../webapp/WEB-INF/views/vendors/list.jspx | 11 - .../webapp/WEB-INF/views/vendors/show.jspx | 9 - .../webapp/WEB-INF/views/vendors/update.jspx | 9 - .../webapp/WEB-INF/views/vendors/views.xml | 28 - src/main/webapp/WEB-INF/views/views.xml | 24 - src/main/webapp/WEB-INF/web.xml | 2 +- src/main/webapp/images/add.png | Bin 739 -> 0 bytes src/main/webapp/images/banner-graphic.png | Bin 13194 -> 0 bytes src/main/webapp/images/create.png | Bin 739 -> 0 bytes src/main/webapp/images/delete.png | Bin 740 -> 0 bytes src/main/webapp/images/en.png | Bin 599 -> 0 bytes src/main/webapp/images/favicon.ico | Bin 1406 -> 0 bytes src/main/webapp/images/list.png | Bin 473 -> 0 bytes src/main/webapp/images/resultset_first.png | Bin 522 -> 0 bytes src/main/webapp/images/resultset_last.png | Bin 524 -> 0 bytes src/main/webapp/images/resultset_next.png | Bin 395 -> 0 bytes src/main/webapp/images/resultset_previous.png | Bin 389 -> 0 bytes src/main/webapp/images/show.png | Bin 879 -> 0 bytes src/main/webapp/images/springsource-logo.png | Bin 4974 -> 0 bytes src/main/webapp/images/update.png | Bin 807 -> 0 bytes src/main/webapp/public/docs/css/reset.css | 125 - src/main/webapp/public/docs/css/screen.css | 1224 ------- .../public/docs/images/explorer_icons.png | Bin 5763 -> 0 bytes .../webapp/public/docs/images/logo_small.png | Bin 770 -> 0 bytes .../public/docs/images/pet_store_api.png | Bin 824 -> 0 bytes .../webapp/public/docs/images/throbber.gif | Bin 9257 -> 0 bytes .../webapp/public/docs/images/wordnik_api.png | Bin 980 -> 0 bytes src/main/webapp/public/docs/index.html | 106 - .../webapp/public/docs/lib/backbone-min.js | 38 - .../public/docs/lib/handlebars-1.0.0.js | 2278 ------------- .../public/docs/lib/highlight.7.3.pack.js | 1 - .../public/docs/lib/jquery-1.8.0.min.js | 2 - .../public/docs/lib/jquery.ba-bbq.min.js | 18 - .../public/docs/lib/jquery.slideto.min.js | 1 - .../public/docs/lib/jquery.wiggle.min.js | 8 - .../webapp/public/docs/lib/shred.bundle.js | 2765 --------------- .../webapp/public/docs/lib/shred/content.js | 193 -- .../webapp/public/docs/lib/swagger-client.js | 1483 -------- .../webapp/public/docs/lib/swagger-oauth.js | 211 -- src/main/webapp/public/docs/lib/swagger.js | 1678 ---------- .../webapp/public/docs/lib/underscore-min.js | 32 - src/main/webapp/public/docs/o2c.html | 15 - src/main/webapp/public/docs/swagger-ui.js | 2670 --------------- src/main/webapp/public/docs/swagger-ui.min.js | 1 - src/main/webapp/styles/alt.css | 369 -- src/main/webapp/styles/standard.css | 373 --- 1027 files changed, 1 insertion(+), 34524 deletions(-) delete mode 100755 src/main/webapp/WEB-INF/i18n/application.properties delete mode 100755 src/main/webapp/WEB-INF/i18n/messages.properties delete mode 100755 src/main/webapp/WEB-INF/layouts/default.jspx delete mode 100755 src/main/webapp/WEB-INF/tags/form/create.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/dependency.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/fields/checkbox.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/fields/column.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/fields/datetime.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/fields/display.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/fields/editor.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/fields/input.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/fields/reference.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/fields/select.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/fields/simple.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/fields/table.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/fields/textarea.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/find.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/list.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/show.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/form/update.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/menu/category.tagx delete mode 100644 src/main/webapp/WEB-INF/tags/menu/gvnixitem.tagx delete mode 100644 src/main/webapp/WEB-INF/tags/menu/gvnixmenu.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/menu/item.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/menu/menu.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/util/language.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/util/load-scripts.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/util/pagination.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/util/panel.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/util/placeholder.tagx delete mode 100755 src/main/webapp/WEB-INF/tags/util/theme.tagx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgrouplabels/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgrouplabels/findAnalysisGroupLabelsByAnalysisGroup.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgrouplabels/findAnalysisGroupLabelsByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgrouplabels/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgrouplabels/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgrouplabels/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgrouplabels/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroups/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByExperiment.jspx delete mode 100644 src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByExperiments.jspx delete mode 100644 src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByExperimentsAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroups/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroups/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroups/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroups/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupstates/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByAnalysisGroup.jspx delete mode 100644 src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByLsTypeAndKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByLsTypeEqualsAndLsKindEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupstates/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupstates/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupstates/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupstates/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupvalues/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByCodeValueEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByIgnoredNotAndCodeValueEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsState.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsTransactionEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsTypeEqualsAndLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupvalues/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupvalues/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupvalues/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/analysisgroupvalues/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/applicationsettings/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/applicationsettings/findApplicationSettingsByPropNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/applicationsettings/findApplicationSettingsByPropNameEqualsAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/applicationsettings/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/applicationsettings/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/applicationsettings/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/applicationsettings/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/authorlabels/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/authorlabels/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/authorlabels/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/authorlabels/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/authorlabels/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/authorroles/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authorroles/findAuthorRolesByRoleEntry.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authorroles/findAuthorRolesByRoleEntryAndUserEntry.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authorroles/findAuthorRolesByUserEntry.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authorroles/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authorroles/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authorroles/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authorroles/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/authors/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authors/findAuthorsByActivationKeyAndEmailAddress.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authors/findAuthorsByEmailAddress.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authors/findAuthorsByUserName.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authors/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authors/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authors/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/authors/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/authorstates/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/authorstates/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/authorstates/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/authorstates/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/authorstates/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/authorvalues/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/authorvalues/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/authorvalues/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/authorvalues/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/authorvalues/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadfiles/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadfiles/findBulkLoadFilesByFileNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadfiles/findBulkLoadFilesByRecordedByEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadfiles/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadfiles/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadfiles/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadfiles/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadtemplates/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadtemplates/findBulkLoadTemplatesByRecordedByEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadtemplates/findBulkLoadTemplatesByTemplateNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadtemplates/findBulkLoadTemplatesByTemplateNameEqualsAndRecordedByEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadtemplates/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadtemplates/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadtemplates/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/bulkloadtemplates/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/changepassword/index.jspx delete mode 100755 src/main/webapp/WEB-INF/views/changepassword/thanks.jspx delete mode 100755 src/main/webapp/WEB-INF/views/changepassword/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/chemstructures/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/chemstructures/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/chemstructures/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/chemstructures/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/chemstructures/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/cmpdregappsettings/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/cmpdregappsettings/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/cmpdregappsettings/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/cmpdregappsettings/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/cmpdregappsettings/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/codekinds/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/codekinds/findCodeKindsByKindNameEqualsAndLsType.jspx delete mode 100755 src/main/webapp/WEB-INF/views/codekinds/findCodeKindsByLsType.jspx delete mode 100755 src/main/webapp/WEB-INF/views/codekinds/findCodeKindsByLsTypeAndKindEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/codekinds/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/codekinds/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/codekinds/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/codekinds/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/codeorigins/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/codeorigins/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/codeorigins/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/codeorigins/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/codeorigins/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/codetypes/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/codetypes/findCodeTypesByTypeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/codetypes/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/codetypes/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/codetypes/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/codetypes/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/compoundTypes/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/compoundTypes/findCompoundTypesByCodeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/compoundTypes/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/compoundTypes/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/compoundTypes/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/compoundTypes/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/compounds/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/compounds/findCompoundsByCdId.jspx delete mode 100644 src/main/webapp/WEB-INF/views/compounds/findCompoundsByExternal_idEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/compounds/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/compounds/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/compounds/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/compounds/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/containerkinds/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerkinds/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerkinds/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerkinds/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerkinds/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/containerlabels/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByContainerAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByLabelTextEqualsAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByLsTransactionEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerlabels/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerlabels/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerlabels/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerlabels/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/containers/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containers/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containers/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containers/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containers/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/containerstates/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerstates/findContainerStatesByContainer.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerstates/findContainerStatesByContainerAndLsKindEqualsAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerstates/findContainerStatesByIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerstates/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerstates/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerstates/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containerstates/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/containertypes/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containertypes/findContainerTypesByTypeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containertypes/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containertypes/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containertypes/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containertypes/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/containervalues/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containervalues/findContainerValuesByIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containervalues/findContainerValuesByLsState.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containervalues/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containervalues/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containervalues/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/containervalues/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/corpnames/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/corpnames/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/corpnames/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/corpnames/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/corpnames/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/cronjobs/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/cronjobs/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/cronjobs/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/cronjobs/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/cronjobs/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/dataAccessFailure.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictkinds/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictkinds/findDDictKindsByLsTypeEqualsAndNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictkinds/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictkinds/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictkinds/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictkinds/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/ddicttypes/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddicttypes/findDDictTypesByNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddicttypes/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddicttypes/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddicttypes/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddicttypes/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/ddictvalues/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByCodeNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByIgnoredNot.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLabelTextLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsTypeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsTypeEqualsAndLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsTypeEqualsAndLsKindEqualsAndShortNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictvalues/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictvalues/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictvalues/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/ddictvalues/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/experimentkinds/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentkinds/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentkinds/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentkinds/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentkinds/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/experimentlabels/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByExperiment.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByExperimentAndIgnoredNot.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLabelTextLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLabelTextLikeAndLabelTypeAndKindEqualsAndPreferredNotAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentlabels/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentlabels/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentlabels/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentlabels/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/experiments/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experiments/findExperimentsByCodeNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experiments/findExperimentsByCodeNameLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsKindLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTransaction.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTypeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTypeEqualsAndLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTypeLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experiments/findExperimentsByProtocol.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experiments/findExperimentsByRecordedByLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experiments/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experiments/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experiments/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experiments/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/experimentstates/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentstates/findExperimentStatesByExperiment.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentstates/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentstates/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentstates/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentstates/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/experimenttypes/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimenttypes/findExperimentTypesByTypeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimenttypes/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimenttypes/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimenttypes/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimenttypes/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/experimentvalues/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndCodeValueLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndDateValueEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndDateValueLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndStringValueLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsState.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentvalues/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentvalues/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentvalues/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/experimentvalues/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/filelists/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/filelists/findFileListsByLot.jspx delete mode 100644 src/main/webapp/WEB-INF/views/filelists/findFileListsByUrlEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/filelists/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/filelists/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/filelists/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/filelists/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/filethings/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/filethings/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/filethings/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/filethings/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/filethings/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/filetypes/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/filetypes/findFileTypesByCodeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/filetypes/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/filetypes/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/filetypes/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/filetypes/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/footer.jspx delete mode 100755 src/main/webapp/WEB-INF/views/forgotpassword/index.jspx delete mode 100755 src/main/webapp/WEB-INF/views/forgotpassword/thanks.jspx delete mode 100755 src/main/webapp/WEB-INF/views/forgotpassword/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/header.jspx delete mode 100755 src/main/webapp/WEB-INF/views/index-template.jspx delete mode 100755 src/main/webapp/WEB-INF/views/index.jspx delete mode 100755 src/main/webapp/WEB-INF/views/interactionkinds/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/interactionkinds/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/interactionkinds/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/interactionkinds/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/interactionkinds/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/interactiontypes/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/interactiontypes/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/interactiontypes/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/interactiontypes/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/interactiontypes/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/isosalts/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isosalts/findIsoSaltsBySaltForm.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isosalts/findIsoSaltsBySaltFormAndType.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isosalts/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isosalts/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isosalts/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isosalts/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/isotopes/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isotopes/findIsotopesByAbbrevEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isotopes/findIsotopesByAbbrevEqualsAndNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isotopes/findIsotopesByNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isotopes/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isotopes/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isotopes/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/isotopes/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainers/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainers/findItxContainerContainersByLsTransactionEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxcontainercontainers/findItxContainerContainersByLsTypeEqualsAndFirstContainerEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxcontainercontainers/findItxContainerContainersByLsTypeEqualsAndSecondContainerEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainers/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainers/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainers/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainers/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainerstates/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainerstates/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainerstates/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainerstates/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainerstates/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainervalues/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainervalues/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainervalues/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainervalues/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxcontainercontainervalues/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperiments/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperiments/findItxExperimentExperimentsByFirstExperiment.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperiments/findItxExperimentExperimentsByLsTransactionEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperiments/findItxExperimentExperimentsBySecondExperiment.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperiments/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperiments/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperiments/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperiments/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthings/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthings/findItxLsThingLsThingsByCodeNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthings/findItxLsThingLsThingsByFirstLsThing.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthings/findItxLsThingLsThingsBySecondLsThing.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthings/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthings/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthings/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthings/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocols/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxprotocolprotocols/findItxProtocolProtocolsByFirstProtocol.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxprotocolprotocols/findItxProtocolProtocolsByLsTransactionEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/itxprotocolprotocols/findItxProtocolProtocolsBySecondProtocol.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocols/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocols/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocols/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocols/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainers/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersByCodeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersByContainer.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersBySubject.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainers/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainers/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainers/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainers/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/labelkinds/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelkinds/findLabelKindsByKindNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelkinds/findLabelKindsByKindNameEqualsAndLsType.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelkinds/findLabelKindsByLsType.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelkinds/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelkinds/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelkinds/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelkinds/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/labelsequenceroles/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/labelsequenceroles/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/labelsequenceroles/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/labelsequenceroles/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/labelsequenceroles/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/labelsequences/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByLabelTypeAndKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeAndKindEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeEqualsAndThingKindEqualsAndLabelTypeEqualsAndLabelKindEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelsequences/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelsequences/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelsequences/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labelsequences/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/labeltypes/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labeltypes/findLabelTypesByTypeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labeltypes/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labeltypes/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labeltypes/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/labeltypes/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/login.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lot/index.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lot/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/lotaliases/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliases/findLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliases/findLotAliasesByLot.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliases/findLotAliasesByLotAndLsTypeEqualsAndLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliases/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliases/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliases/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliases/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/lotaliaskinds/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliaskinds/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliaskinds/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliaskinds/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliaskinds/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/lotaliastypes/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliastypes/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliastypes/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliastypes/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lotaliastypes/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/lots/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/findLotsByBuid.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/findLotsByBulkLoadFileEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/findLotsByChemistAndSynthesisDateBetween.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/findLotsByCorpNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/findLotsByCorpNameLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/findLotsByIsVirtualNot.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/findLotsByNotebookPageEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/findLotsByNotebookPageEqualsAndIgnoreNot.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/findLotsBySaltForm.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/findLotsBySynthesisDateBetween.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/findLotsBySynthesisDateGreaterThan.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/findLotsBySynthesisDateLessThan.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lots/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/lsinteractions/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsinteractions/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsinteractions/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsinteractions/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsinteractions/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/lsroles/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEqualsAndLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEqualsAndRoleNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsroles/findLsRolesByRoleNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsroles/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsroles/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsroles/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsroles/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/lstags/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lstags/findLsTagsByTagTextEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lstags/findLsTagsByTagTextLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lstags/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lstags/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lstags/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lstags/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/lsthinglabels/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLabelTextEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLabelTextEqualsAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLabelTextLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLsThing.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthinglabels/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthinglabels/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthinglabels/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthinglabels/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/lsthings/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthings/findLsThingsByCodeNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthings/findLsThingsByCodeNameLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsKindLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTypeAndKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTypeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTypeEqualsAndLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthings/findLsThingsByRecordedByLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthings/findLsThingsByRecordedDateGreaterThan.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthings/findLsThingsByRecordedDateLessThan.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthings/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthings/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthings/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthings/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/lsthingstates/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingstates/findLsThingStatesByLsThing.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingstates/findLsThingStatesByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingstates/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingstates/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingstates/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingstates/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/lsthingvalues/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByCodeValueEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByIgnoredNotAndCodeValueEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndCodeValueLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueGreaterThanEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueLessThanEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueGreaterThanEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueLessThanEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndStringValueEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndStringValueLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsState.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingvalues/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingvalues/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingvalues/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lsthingvalues/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/lstransactions/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lstransactions/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lstransactions/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lstransactions/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/lstransactions/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/menu.jspx delete mode 100644 src/main/webapp/WEB-INF/views/menu.xml delete mode 100755 src/main/webapp/WEB-INF/views/operatorkinds/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/operatorkinds/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/operatorkinds/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/operatorkinds/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/operatorkinds/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/operators/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/operators/findOperatorsByCodeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/operators/findOperatorsByNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/operators/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/operators/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/operators/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/operators/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/operatortypes/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/operatortypes/findOperatorTypesByTypeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/operatortypes/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/operatortypes/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/operatortypes/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/operatortypes/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/parentAnnotations/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentAnnotations/findParentAnnotationsByCodeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentAnnotations/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentAnnotations/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentAnnotations/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentAnnotations/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/parentaliases/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByAliasNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByParent.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByParentAndLsTypeEqualsAndLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliases/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliases/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliases/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliases/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/parentaliaskinds/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliaskinds/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliaskinds/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliaskinds/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliaskinds/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/parentaliastypes/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliastypes/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliastypes/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliastypes/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parentaliastypes/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/parents/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parents/findParentsByBulkLoadFileEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parents/findParentsByCdId.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parents/findParentsByCommonNameLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parents/findParentsByCorpNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parents/findParentsByCorpNameLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parents/findParentsBySaltForms.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parents/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parents/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parents/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/parents/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/physicalstates/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/physicalstates/findPhysicalStatesByCodeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/physicalstates/findPhysicalStatesByNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/physicalstates/findPhysicalStatesByNameLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/physicalstates/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/physicalstates/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/physicalstates/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/physicalstates/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/predef_corpnames/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/predef_corpnames/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/predef_corpnames/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/predef_corpnames/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/predef_corpnames/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/projects/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/projects/findProjectsByCodeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/projects/findProjectsByNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/projects/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/projects/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/projects/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/projects/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/protocolkinds/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/protocolkinds/findProtocolKindsByLsTypeEqualsAndKindNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolkinds/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolkinds/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolkinds/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolkinds/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/protocollabels/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByLabelTextEqualsAndIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByLabelTextLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByProtocol.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocollabels/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocollabels/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocollabels/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocollabels/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/protocols/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocols/findProtocolsByCodeNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/protocols/findProtocolsByCodeNameEqualsAndIgnoredNot.jspx delete mode 100644 src/main/webapp/WEB-INF/views/protocols/findProtocolsByCodeNameLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocols/findProtocolsByIgnoredNot.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsKindLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeAndKindEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeEqualsAndLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/protocols/findProtocolsByRecordedByLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocols/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocols/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocols/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocols/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/protocolstates/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolstates/findProtocolStatesByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolstates/findProtocolStatesByProtocol.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolstates/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolstates/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolstates/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolstates/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/protocoltypes/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocoltypes/findProtocolTypesByTypeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocoltypes/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocoltypes/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocoltypes/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocoltypes/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/protocolvalues/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsKindEqualsAndCodeValueLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsKindEqualsAndDateValueLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsKindEqualsAndStringValueLike.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsState.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolvalues/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolvalues/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolvalues/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/protocolvalues/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/puritymeasuredbys/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/puritymeasuredbys/findPurityMeasuredBysByCodeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/puritymeasuredbys/findPurityMeasuredBysByNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/puritymeasuredbys/findPurityMeasuredBysByNameLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/puritymeasuredbys/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/puritymeasuredbys/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/puritymeasuredbys/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/puritymeasuredbys/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/resourceNotFound.jspx delete mode 100644 src/main/webapp/WEB-INF/views/rolekinds/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/rolekinds/findRoleKindsByKindNameEqualsAndLsType.jspx delete mode 100644 src/main/webapp/WEB-INF/views/rolekinds/findRoleKindsByLsType.jspx delete mode 100644 src/main/webapp/WEB-INF/views/rolekinds/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/rolekinds/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/rolekinds/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/rolekinds/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/roletypes/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/roletypes/findRoleTypesByTypeNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/roletypes/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/roletypes/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/roletypes/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/roletypes/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliases/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliases/findSaltFormAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliases/findSaltFormAliasesBySaltForm.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliases/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliases/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliases/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliases/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliaskinds/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliaskinds/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliaskinds/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliaskinds/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliaskinds/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliastypes/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliastypes/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliastypes/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliastypes/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltformaliastypes/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/saltforms/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByBulkLoadFileEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByCdId.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByCorpNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByCorpNameLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByParent.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltforms/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltforms/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltforms/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltforms/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/saltloaders/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltloaders/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltloaders/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltloaders/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/saltloaders/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/salts/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/salts/findSaltsByAbbrevEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/salts/findSaltsByAbbrevEqualsAndNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/salts/findSaltsByAbbrevLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/salts/findSaltsByCdId.jspx delete mode 100644 src/main/webapp/WEB-INF/views/salts/findSaltsByNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/salts/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/salts/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/salts/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/salts/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/scientists/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/scientists/findScientistsByCodeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/scientists/findScientistsByCodeLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/scientists/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/scientists/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/scientists/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/scientists/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/signup/error.jspx delete mode 100755 src/main/webapp/WEB-INF/views/signup/index.jspx delete mode 100755 src/main/webapp/WEB-INF/views/signup/thanks.jspx delete mode 100755 src/main/webapp/WEB-INF/views/signup/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/solutionunits/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/solutionunits/findSolutionUnitsByCodeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/solutionunits/findSolutionUnitsByCodeLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/solutionunits/findSolutionUnitsByNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/solutionunits/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/solutionunits/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/solutionunits/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/solutionunits/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/statekinds/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/statekinds/findStateKindsByKindNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/statekinds/findStateKindsByKindNameEqualsAndLsType.jspx delete mode 100755 src/main/webapp/WEB-INF/views/statekinds/findStateKindsByLsType.jspx delete mode 100755 src/main/webapp/WEB-INF/views/statekinds/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/statekinds/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/statekinds/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/statekinds/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/statetypes/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/statetypes/findStateTypesByTypeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/statetypes/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/statetypes/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/statetypes/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/statetypes/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/stereocategorys/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/stereocategorys/findStereoCategorysByCodeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/stereocategorys/findStereoCategorysByCodeLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/stereocategorys/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/stereocategorys/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/stereocategorys/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/stereocategorys/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/structurekinds/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/structurekinds/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/structurekinds/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/structurekinds/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/structurekinds/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/structuretypes/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/structuretypes/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/structuretypes/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/structuretypes/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/structuretypes/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/subjectlabels/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectlabels/findSubjectLabelsBySubject.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectlabels/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectlabels/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectlabels/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectlabels/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/subjects/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjects/findSubjectsByCodeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjects/findSubjectsByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjects/findSubjectsByTreatmentGroup.jspx delete mode 100644 src/main/webapp/WEB-INF/views/subjects/findSubjectsByTreatmentGroups.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjects/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjects/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjects/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjects/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/subjectstates/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/subjectstates/findSubjectStatesByLsTypeEqualsAndLsKindEqualsAndSubject.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectstates/findSubjectStatesBySubject.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectstates/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectstates/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectstates/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectstates/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/subjectvalues/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByCodeValueEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByIgnoredNotAndCodeValueEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByLsState.jspx delete mode 100644 src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByLsStateAndLsTypeEqualsAndLsKindEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByLsTypeEqualsAndLsKindEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectvalues/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectvalues/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectvalues/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/subjectvalues/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/tempselecttables/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/tempselecttables/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/tempselecttables/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/tempselecttables/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/tempselecttables/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/thingkinds/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingkinds/findThingKindsByKindNameEqualsAndLsType.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingkinds/findThingKindsByLsType.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingkinds/findThingKindsByLsTypeAndKindEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingkinds/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingkinds/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingkinds/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingkinds/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/thingpagearchives/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingpagearchives/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingpagearchives/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingpagearchives/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingpagearchives/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/thingpages/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingpages/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingpages/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingpages/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingpages/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/thingtypes/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingtypes/findThingTypesByTypeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingtypes/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingtypes/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingtypes/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/thingtypes/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgrouplabels/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgrouplabels/findTreatmentGroupLabelsByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgrouplabels/findTreatmentGroupLabelsByTreatmentGroup.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgrouplabels/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgrouplabels/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgrouplabels/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgrouplabels/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroups/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByAnalysisGroup.jspx delete mode 100644 src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByAnalysisGroups.jspx delete mode 100644 src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByCodeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroups/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroups/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroups/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroups/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupstates/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupstates/findTreatmentGroupStatesByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupstates/findTreatmentGroupStatesByLsTypeAndKindEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupstates/findTreatmentGroupStatesByTreatmentGroup.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupstates/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupstates/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupstates/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupstates/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupvalues/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByCodeValueEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByIgnoredNotAndCodeValueEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByLsState.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByLsTransactionEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupvalues/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupvalues/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupvalues/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/treatmentgroupvalues/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/uncaughtException.jspx delete mode 100755 src/main/webapp/WEB-INF/views/uncertaintykinds/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/uncertaintykinds/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/uncertaintykinds/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/uncertaintykinds/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/uncertaintykinds/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/unitkinds/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/unitkinds/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/unitkinds/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/unitkinds/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/unitkinds/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/units/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/units/findUnitsByCodeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/units/findUnitsByCodeLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/units/findUnitsByNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/units/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/units/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/units/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/units/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/unittypes/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/unittypes/findUnitTypesByTypeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/unittypes/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/unittypes/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/unittypes/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/unittypes/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/updatelogs/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/updatelogs/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/updatelogs/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/updatelogs/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/updatelogs/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/userroles/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/userroles/findAuthorRolesByUserEntry.jspx delete mode 100755 src/main/webapp/WEB-INF/views/userroles/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/userroles/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/userroles/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/userroles/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/users/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/users/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/users/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/users/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/users/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/valuekinds/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/valuekinds/findValueKindsByKindNameEqualsAndLsType.jspx delete mode 100755 src/main/webapp/WEB-INF/views/valuekinds/findValueKindsByLsType.jspx delete mode 100755 src/main/webapp/WEB-INF/views/valuekinds/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/valuekinds/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/valuekinds/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/valuekinds/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/valuetypes/create.jspx delete mode 100755 src/main/webapp/WEB-INF/views/valuetypes/findValueTypesByTypeNameEquals.jspx delete mode 100755 src/main/webapp/WEB-INF/views/valuetypes/list.jspx delete mode 100755 src/main/webapp/WEB-INF/views/valuetypes/show.jspx delete mode 100755 src/main/webapp/WEB-INF/views/valuetypes/update.jspx delete mode 100755 src/main/webapp/WEB-INF/views/valuetypes/views.xml delete mode 100644 src/main/webapp/WEB-INF/views/vendors/create.jspx delete mode 100644 src/main/webapp/WEB-INF/views/vendors/findVendorsByCodeEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/vendors/findVendorsByCodeLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/vendors/findVendorsByNameEquals.jspx delete mode 100644 src/main/webapp/WEB-INF/views/vendors/findVendorsByNameLike.jspx delete mode 100644 src/main/webapp/WEB-INF/views/vendors/list.jspx delete mode 100644 src/main/webapp/WEB-INF/views/vendors/show.jspx delete mode 100644 src/main/webapp/WEB-INF/views/vendors/update.jspx delete mode 100644 src/main/webapp/WEB-INF/views/vendors/views.xml delete mode 100755 src/main/webapp/WEB-INF/views/views.xml delete mode 100755 src/main/webapp/images/add.png delete mode 100755 src/main/webapp/images/banner-graphic.png delete mode 100755 src/main/webapp/images/create.png delete mode 100755 src/main/webapp/images/delete.png delete mode 100755 src/main/webapp/images/en.png delete mode 100755 src/main/webapp/images/favicon.ico delete mode 100755 src/main/webapp/images/list.png delete mode 100755 src/main/webapp/images/resultset_first.png delete mode 100755 src/main/webapp/images/resultset_last.png delete mode 100755 src/main/webapp/images/resultset_next.png delete mode 100755 src/main/webapp/images/resultset_previous.png delete mode 100755 src/main/webapp/images/show.png delete mode 100755 src/main/webapp/images/springsource-logo.png delete mode 100755 src/main/webapp/images/update.png delete mode 100644 src/main/webapp/public/docs/css/reset.css delete mode 100644 src/main/webapp/public/docs/css/screen.css delete mode 100644 src/main/webapp/public/docs/images/explorer_icons.png delete mode 100644 src/main/webapp/public/docs/images/logo_small.png delete mode 100644 src/main/webapp/public/docs/images/pet_store_api.png delete mode 100644 src/main/webapp/public/docs/images/throbber.gif delete mode 100644 src/main/webapp/public/docs/images/wordnik_api.png delete mode 100644 src/main/webapp/public/docs/index.html delete mode 100644 src/main/webapp/public/docs/lib/backbone-min.js delete mode 100644 src/main/webapp/public/docs/lib/handlebars-1.0.0.js delete mode 100644 src/main/webapp/public/docs/lib/highlight.7.3.pack.js delete mode 100644 src/main/webapp/public/docs/lib/jquery-1.8.0.min.js delete mode 100644 src/main/webapp/public/docs/lib/jquery.ba-bbq.min.js delete mode 100644 src/main/webapp/public/docs/lib/jquery.slideto.min.js delete mode 100644 src/main/webapp/public/docs/lib/jquery.wiggle.min.js delete mode 100644 src/main/webapp/public/docs/lib/shred.bundle.js delete mode 100644 src/main/webapp/public/docs/lib/shred/content.js delete mode 100644 src/main/webapp/public/docs/lib/swagger-client.js delete mode 100644 src/main/webapp/public/docs/lib/swagger-oauth.js delete mode 100644 src/main/webapp/public/docs/lib/swagger.js delete mode 100644 src/main/webapp/public/docs/lib/underscore-min.js delete mode 100644 src/main/webapp/public/docs/o2c.html delete mode 100644 src/main/webapp/public/docs/swagger-ui.js delete mode 100644 src/main/webapp/public/docs/swagger-ui.min.js delete mode 100755 src/main/webapp/styles/alt.css delete mode 100755 src/main/webapp/styles/standard.css diff --git a/src/main/webapp/WEB-INF/i18n/application.properties b/src/main/webapp/WEB-INF/i18n/application.properties deleted file mode 100755 index 690606f15..000000000 --- a/src/main/webapp/WEB-INF/i18n/application.properties +++ /dev/null @@ -1,2975 +0,0 @@ -#Updated at Wed Feb 05 15:34:03 PST 2020 -#Wed Feb 05 15:34:03 PST 2020 -application_name=ACAS -label_com_labsynch_labseer_domain_analysisgroup=Analysis Group -label_com_labsynch_labseer_domain_analysisgroup_analysisgrouplabels=Analysis Group Labels -label_com_labsynch_labseer_domain_analysisgroup_analysisgroups=Analysis Groups -label_com_labsynch_labseer_domain_analysisgroup_analysisgroupstates=Analysis Group States -label_com_labsynch_labseer_domain_analysisgroup_codename=Code Name -label_com_labsynch_labseer_domain_analysisgroup_deleted=Deleted -label_com_labsynch_labseer_domain_analysisgroup_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_analysisgroup_experiment=Experiment -label_com_labsynch_labseer_domain_analysisgroup_experiments=Experiments -label_com_labsynch_labseer_domain_analysisgroup_id=Id -label_com_labsynch_labseer_domain_analysisgroup_ignored=Ignored -label_com_labsynch_labseer_domain_analysisgroup_includeignored=Include Ignored -label_com_labsynch_labseer_domain_analysisgroup_kind=Kind -label_com_labsynch_labseer_domain_analysisgroup_lskind=Ls Kind -label_com_labsynch_labseer_domain_analysisgroup_lslabels=Ls Labels -label_com_labsynch_labseer_domain_analysisgroup_lsstates=Ls States -label_com_labsynch_labseer_domain_analysisgroup_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_analysisgroup_lstype=Ls Type -label_com_labsynch_labseer_domain_analysisgroup_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_analysisgroup_modifiedby=Modified By -label_com_labsynch_labseer_domain_analysisgroup_modifieddate=Modified Date -label_com_labsynch_labseer_domain_analysisgroup_plural=Analysis Groups -label_com_labsynch_labseer_domain_analysisgroup_recordedby=Recorded By -label_com_labsynch_labseer_domain_analysisgroup_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_analysisgroup_thingpage=Thing Page -label_com_labsynch_labseer_domain_analysisgroup_treatmentgroups=Treatment Groups -label_com_labsynch_labseer_domain_analysisgroup_version=Version -label_com_labsynch_labseer_domain_analysisgrouplabel=Analysis Group Label -label_com_labsynch_labseer_domain_analysisgrouplabel_analysisgroup=Analysis Group -label_com_labsynch_labseer_domain_analysisgrouplabel_deleted=Deleted -label_com_labsynch_labseer_domain_analysisgrouplabel_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_analysisgrouplabel_experiment=Experiment -label_com_labsynch_labseer_domain_analysisgrouplabel_id=Id -label_com_labsynch_labseer_domain_analysisgrouplabel_ignored=Ignored -label_com_labsynch_labseer_domain_analysisgrouplabel_imagefile=Image File -label_com_labsynch_labseer_domain_analysisgrouplabel_imgagefile=Imgage File -label_com_labsynch_labseer_domain_analysisgrouplabel_labelkind=Label Kind -label_com_labsynch_labseer_domain_analysisgrouplabel_labeltext=Label Text -label_com_labsynch_labseer_domain_analysisgrouplabel_labeltype=Label Type -label_com_labsynch_labseer_domain_analysisgrouplabel_labeltypeandkind=Label Type And Kind -label_com_labsynch_labseer_domain_analysisgrouplabel_labelvalue=Label Value -label_com_labsynch_labseer_domain_analysisgrouplabel_lskind=Ls Kind -label_com_labsynch_labseer_domain_analysisgrouplabel_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_analysisgrouplabel_lstype=Ls Type -label_com_labsynch_labseer_domain_analysisgrouplabel_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_analysisgrouplabel_modifieddate=Modified Date -label_com_labsynch_labseer_domain_analysisgrouplabel_physicallylabled=Physically Labled -label_com_labsynch_labseer_domain_analysisgrouplabel_plural=Analysis Group Labels -label_com_labsynch_labseer_domain_analysisgrouplabel_preferred=Preferred -label_com_labsynch_labseer_domain_analysisgrouplabel_recordedby=Recorded By -label_com_labsynch_labseer_domain_analysisgrouplabel_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_analysisgrouplabel_version=Version -label_com_labsynch_labseer_domain_analysisgroupstate=Analysis Group State -label_com_labsynch_labseer_domain_analysisgroupstate_analysisgroup=Analysis Group -label_com_labsynch_labseer_domain_analysisgroupstate_analysisgroupvalues=Analysis Group Values -label_com_labsynch_labseer_domain_analysisgroupstate_blah=Blah -label_com_labsynch_labseer_domain_analysisgroupstate_comments=Comments -label_com_labsynch_labseer_domain_analysisgroupstate_deleted=Deleted -label_com_labsynch_labseer_domain_analysisgroupstate_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_analysisgroupstate_id=Id -label_com_labsynch_labseer_domain_analysisgroupstate_ignored=Ignored -label_com_labsynch_labseer_domain_analysisgroupstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_analysisgroupstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_analysisgroupstate_lstype=Ls Type -label_com_labsynch_labseer_domain_analysisgroupstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_analysisgroupstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_analysisgroupstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_analysisgroupstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_analysisgroupstate_plural=Analysis Group States -label_com_labsynch_labseer_domain_analysisgroupstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_analysisgroupstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_analysisgroupstate_statekind=State Kind -label_com_labsynch_labseer_domain_analysisgroupstate_statetype=State Type -label_com_labsynch_labseer_domain_analysisgroupstate_statetypeandkind=State Type And Kind -label_com_labsynch_labseer_domain_analysisgroupstate_version=Version -label_com_labsynch_labseer_domain_analysisgroupvalue=Analysis Group Value -label_com_labsynch_labseer_domain_analysisgroupvalue_analysisgroupstate=Analysis Group State -label_com_labsynch_labseer_domain_analysisgroupvalue_batchcode=Batch Code -label_com_labsynch_labseer_domain_analysisgroupvalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_analysisgroupvalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_analysisgroupvalue_codekind=Code Kind -label_com_labsynch_labseer_domain_analysisgroupvalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_analysisgroupvalue_codetype=Code Type -label_com_labsynch_labseer_domain_analysisgroupvalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_analysisgroupvalue_codevalue=Code Value -label_com_labsynch_labseer_domain_analysisgroupvalue_comments=Comments -label_com_labsynch_labseer_domain_analysisgroupvalue_concentration=Concentration -label_com_labsynch_labseer_domain_analysisgroupvalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_analysisgroupvalue_concvalue=Conc Value -label_com_labsynch_labseer_domain_analysisgroupvalue_datevalue=Date Value -label_com_labsynch_labseer_domain_analysisgroupvalue_deleted=Deleted -label_com_labsynch_labseer_domain_analysisgroupvalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_analysisgroupvalue_filevalue=File Value -label_com_labsynch_labseer_domain_analysisgroupvalue_id=Id -label_com_labsynch_labseer_domain_analysisgroupvalue_ignored=Ignored -label_com_labsynch_labseer_domain_analysisgroupvalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_analysisgroupvalue_lsstate=Ls State -label_com_labsynch_labseer_domain_analysisgroupvalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_analysisgroupvalue_lstype=Ls Type -label_com_labsynch_labseer_domain_analysisgroupvalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_analysisgroupvalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_analysisgroupvalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_analysisgroupvalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_analysisgroupvalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_analysisgroupvalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_analysisgroupvalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_analysisgroupvalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_analysisgroupvalue_plural=Analysis Group Values -label_com_labsynch_labseer_domain_analysisgroupvalue_propertiesutilservice=Properties Util Service -label_com_labsynch_labseer_domain_analysisgroupvalue_publicdata=Public Data -label_com_labsynch_labseer_domain_analysisgroupvalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_analysisgroupvalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_analysisgroupvalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_analysisgroupvalue_stringvalue=String Value -label_com_labsynch_labseer_domain_analysisgroupvalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_analysisgroupvalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_analysisgroupvalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_analysisgroupvalue_unittype=Unit Type -label_com_labsynch_labseer_domain_analysisgroupvalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_analysisgroupvalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_analysisgroupvalue_valuekind=Value Kind -label_com_labsynch_labseer_domain_analysisgroupvalue_valueoperator=Value Operator -label_com_labsynch_labseer_domain_analysisgroupvalue_valuetype=Value Type -label_com_labsynch_labseer_domain_analysisgroupvalue_valuetypeandkind=Value Type And Kind -label_com_labsynch_labseer_domain_analysisgroupvalue_valueunit=Value Unit -label_com_labsynch_labseer_domain_analysisgroupvalue_version=Version -label_com_labsynch_labseer_domain_applicationsetting=Application Setting -label_com_labsynch_labseer_domain_applicationsetting_comments=Comments -label_com_labsynch_labseer_domain_applicationsetting_id=Id -label_com_labsynch_labseer_domain_applicationsetting_ignored=Ignored -label_com_labsynch_labseer_domain_applicationsetting_plural=Application Settings -label_com_labsynch_labseer_domain_applicationsetting_propname=Prop Name -label_com_labsynch_labseer_domain_applicationsetting_propvalue=Prop Value -label_com_labsynch_labseer_domain_applicationsetting_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_applicationsetting_version=Version -label_com_labsynch_labseer_domain_author=Author -label_com_labsynch_labseer_domain_author_activationdate=Activation Date -label_com_labsynch_labseer_domain_author_activationkey=Activation Key -label_com_labsynch_labseer_domain_author_authorroles=Author Roles -label_com_labsynch_labseer_domain_author_codename=Code Name -label_com_labsynch_labseer_domain_author_deleted=Deleted -label_com_labsynch_labseer_domain_author_email=Email -label_com_labsynch_labseer_domain_author_emailaddress=Email Address -label_com_labsynch_labseer_domain_author_enabled=Enabled -label_com_labsynch_labseer_domain_author_firstname=First Name -label_com_labsynch_labseer_domain_author_id=Id -label_com_labsynch_labseer_domain_author_ignored=Ignored -label_com_labsynch_labseer_domain_author_isadmin=Is Admin -label_com_labsynch_labseer_domain_author_lastname=Last Name -label_com_labsynch_labseer_domain_author_locked=Locked -label_com_labsynch_labseer_domain_author_lskind=Ls Kind -label_com_labsynch_labseer_domain_author_lslabels=Ls Labels -label_com_labsynch_labseer_domain_author_lsstates=Ls States -label_com_labsynch_labseer_domain_author_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_author_lstype=Ls Type -label_com_labsynch_labseer_domain_author_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_author_middlename=Middle Name -label_com_labsynch_labseer_domain_author_modifiedby=Modified By -label_com_labsynch_labseer_domain_author_modifieddate=Modified Date -label_com_labsynch_labseer_domain_author_password=Password -label_com_labsynch_labseer_domain_author_plural=Authors -label_com_labsynch_labseer_domain_author_recordedby=Recorded By -label_com_labsynch_labseer_domain_author_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_author_thingpage=Thing Page -label_com_labsynch_labseer_domain_author_username=User Name -label_com_labsynch_labseer_domain_author_version=Version -label_com_labsynch_labseer_domain_authorlabel=Author Label -label_com_labsynch_labseer_domain_authorlabel_author=Author -label_com_labsynch_labseer_domain_authorlabel_deleted=Deleted -label_com_labsynch_labseer_domain_authorlabel_id=Id -label_com_labsynch_labseer_domain_authorlabel_ignored=Ignored -label_com_labsynch_labseer_domain_authorlabel_imagefile=Image File -label_com_labsynch_labseer_domain_authorlabel_labeltext=Label Text -label_com_labsynch_labseer_domain_authorlabel_lskind=Ls Kind -label_com_labsynch_labseer_domain_authorlabel_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_authorlabel_lstype=Ls Type -label_com_labsynch_labseer_domain_authorlabel_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_authorlabel_modifieddate=Modified Date -label_com_labsynch_labseer_domain_authorlabel_physicallylabled=Physically Labled -label_com_labsynch_labseer_domain_authorlabel_plural=Author Labels -label_com_labsynch_labseer_domain_authorlabel_preferred=Preferred -label_com_labsynch_labseer_domain_authorlabel_recordedby=Recorded By -label_com_labsynch_labseer_domain_authorlabel_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_authorlabel_version=Version -label_com_labsynch_labseer_domain_authorold=Author Old -label_com_labsynch_labseer_domain_authorold_email=Email -label_com_labsynch_labseer_domain_authorold_firstname=First Name -label_com_labsynch_labseer_domain_authorold_id=Id -label_com_labsynch_labseer_domain_authorold_ignored=Ignored -label_com_labsynch_labseer_domain_authorold_lastname=Last Name -label_com_labsynch_labseer_domain_authorold_middlename=Middle Name -label_com_labsynch_labseer_domain_authorold_modifieddate=Modified Date -label_com_labsynch_labseer_domain_authorold_password=Password -label_com_labsynch_labseer_domain_authorold_plural=Author Olds -label_com_labsynch_labseer_domain_authorold_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_authorold_username=User Name -label_com_labsynch_labseer_domain_authorold_version=Version -label_com_labsynch_labseer_domain_authorrole=Author Role -label_com_labsynch_labseer_domain_authorrole_author=Author -label_com_labsynch_labseer_domain_authorrole_comments=Comments -label_com_labsynch_labseer_domain_authorrole_description=Description -label_com_labsynch_labseer_domain_authorrole_id=Id -label_com_labsynch_labseer_domain_authorrole_plural=Author Roles -label_com_labsynch_labseer_domain_authorrole_roleentry=Role Entry -label_com_labsynch_labseer_domain_authorrole_userentry=User Entry -label_com_labsynch_labseer_domain_authorrole_username=User Name -label_com_labsynch_labseer_domain_authorrole_userrole=User Role -label_com_labsynch_labseer_domain_authorrole_version=Version -label_com_labsynch_labseer_domain_authorstate=Author State -label_com_labsynch_labseer_domain_authorstate_author=Author -label_com_labsynch_labseer_domain_authorstate_comments=Comments -label_com_labsynch_labseer_domain_authorstate_deleted=Deleted -label_com_labsynch_labseer_domain_authorstate_id=Id -label_com_labsynch_labseer_domain_authorstate_ignored=Ignored -label_com_labsynch_labseer_domain_authorstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_authorstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_authorstate_lstype=Ls Type -label_com_labsynch_labseer_domain_authorstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_authorstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_authorstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_authorstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_authorstate_plural=Author States -label_com_labsynch_labseer_domain_authorstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_authorstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_authorstate_version=Version -label_com_labsynch_labseer_domain_authorvalue=Author Value -label_com_labsynch_labseer_domain_authorvalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_authorvalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_authorvalue_codekind=Code Kind -label_com_labsynch_labseer_domain_authorvalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_authorvalue_codetype=Code Type -label_com_labsynch_labseer_domain_authorvalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_authorvalue_codevalue=Code Value -label_com_labsynch_labseer_domain_authorvalue_comments=Comments -label_com_labsynch_labseer_domain_authorvalue_concentration=Concentration -label_com_labsynch_labseer_domain_authorvalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_authorvalue_datevalue=Date Value -label_com_labsynch_labseer_domain_authorvalue_deleted=Deleted -label_com_labsynch_labseer_domain_authorvalue_filevalue=File Value -label_com_labsynch_labseer_domain_authorvalue_id=Id -label_com_labsynch_labseer_domain_authorvalue_ignored=Ignored -label_com_labsynch_labseer_domain_authorvalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_authorvalue_lsstate=Ls State -label_com_labsynch_labseer_domain_authorvalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_authorvalue_lstype=Ls Type -label_com_labsynch_labseer_domain_authorvalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_authorvalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_authorvalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_authorvalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_authorvalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_authorvalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_authorvalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_authorvalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_authorvalue_plural=Author Values -label_com_labsynch_labseer_domain_authorvalue_publicdata=Public Data -label_com_labsynch_labseer_domain_authorvalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_authorvalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_authorvalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_authorvalue_stringvalue=String Value -label_com_labsynch_labseer_domain_authorvalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_authorvalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_authorvalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_authorvalue_unittype=Unit Type -label_com_labsynch_labseer_domain_authorvalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_authorvalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_authorvalue_version=Version -label_com_labsynch_labseer_domain_bulkloadfile=Bulk Load File -label_com_labsynch_labseer_domain_bulkloadfile_filedate=File Date -label_com_labsynch_labseer_domain_bulkloadfile_filename=File Name -label_com_labsynch_labseer_domain_bulkloadfile_filesize=File Size -label_com_labsynch_labseer_domain_bulkloadfile_id=Id -label_com_labsynch_labseer_domain_bulkloadfile_jsontemplate=Json Template -label_com_labsynch_labseer_domain_bulkloadfile_numberofmols=Number Of Mols -label_com_labsynch_labseer_domain_bulkloadfile_plural=Bulk Load Files -label_com_labsynch_labseer_domain_bulkloadfile_recordedby=Recorded By -label_com_labsynch_labseer_domain_bulkloadfile_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_bulkloadfile_version=Version -label_com_labsynch_labseer_domain_bulkloadtemplate=Bulk Load Template -label_com_labsynch_labseer_domain_bulkloadtemplate_id=Id -label_com_labsynch_labseer_domain_bulkloadtemplate_ignored=Ignored -label_com_labsynch_labseer_domain_bulkloadtemplate_jsontemplate=Json Template -label_com_labsynch_labseer_domain_bulkloadtemplate_plural=Bulk Load Templates -label_com_labsynch_labseer_domain_bulkloadtemplate_recordedby=Recorded By -label_com_labsynch_labseer_domain_bulkloadtemplate_templatename=Template Name -label_com_labsynch_labseer_domain_bulkloadtemplate_version=Version -label_com_labsynch_labseer_domain_chemstructure=Chem Structure -label_com_labsynch_labseer_domain_chemstructure_codename=Code Name -label_com_labsynch_labseer_domain_chemstructure_deleted=Deleted -label_com_labsynch_labseer_domain_chemstructure_id=Id -label_com_labsynch_labseer_domain_chemstructure_ignored=Ignored -label_com_labsynch_labseer_domain_chemstructure_lskind=Ls Kind -label_com_labsynch_labseer_domain_chemstructure_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_chemstructure_lstype=Ls Type -label_com_labsynch_labseer_domain_chemstructure_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_chemstructure_modifiedby=Modified By -label_com_labsynch_labseer_domain_chemstructure_modifieddate=Modified Date -label_com_labsynch_labseer_domain_chemstructure_molstructure=Mol Structure -label_com_labsynch_labseer_domain_chemstructure_plural=Chem Structures -label_com_labsynch_labseer_domain_chemstructure_recordedby=Recorded By -label_com_labsynch_labseer_domain_chemstructure_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_chemstructure_smiles=Smiles -label_com_labsynch_labseer_domain_chemstructure_version=Version -label_com_labsynch_labseer_domain_cmpdregappsetting=Cmpd Reg App Setting -label_com_labsynch_labseer_domain_cmpdregappsetting_comments=Comments -label_com_labsynch_labseer_domain_cmpdregappsetting_id=Id -label_com_labsynch_labseer_domain_cmpdregappsetting_ignored=Ignored -label_com_labsynch_labseer_domain_cmpdregappsetting_plural=Cmpd Reg App Settings -label_com_labsynch_labseer_domain_cmpdregappsetting_propname=Prop Name -label_com_labsynch_labseer_domain_cmpdregappsetting_propvalue=Prop Value -label_com_labsynch_labseer_domain_cmpdregappsetting_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_cmpdregappsetting_version=Version -label_com_labsynch_labseer_domain_codekind=Code Kind -label_com_labsynch_labseer_domain_codekind_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_codekind_id=Id -label_com_labsynch_labseer_domain_codekind_kindname=Kind Name -label_com_labsynch_labseer_domain_codekind_lstype=Ls Type -label_com_labsynch_labseer_domain_codekind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_codekind_plural=Code Kinds -label_com_labsynch_labseer_domain_codekind_version=Version -label_com_labsynch_labseer_domain_codeorigin=Code Origin -label_com_labsynch_labseer_domain_codeorigin_id=Id -label_com_labsynch_labseer_domain_codeorigin_name=Name -label_com_labsynch_labseer_domain_codeorigin_plural=Code Origins -label_com_labsynch_labseer_domain_codeorigin_version=Version -label_com_labsynch_labseer_domain_codetype=Code Type -label_com_labsynch_labseer_domain_codetype_id=Id -label_com_labsynch_labseer_domain_codetype_plural=Code Types -label_com_labsynch_labseer_domain_codetype_typename=Type Name -label_com_labsynch_labseer_domain_codetype_version=Version -label_com_labsynch_labseer_domain_compound=Compound -label_com_labsynch_labseer_domain_compound_cdid=Cd Id -label_com_labsynch_labseer_domain_compound_corpname=Corp Name -label_com_labsynch_labseer_domain_compound_createddate=Created Date -label_com_labsynch_labseer_domain_compound_deleted=Deleted -label_com_labsynch_labseer_domain_compound_external_id=External_id -label_com_labsynch_labseer_domain_compound_id=Id -label_com_labsynch_labseer_domain_compound_ignored=Ignored -label_com_labsynch_labseer_domain_compound_modifieddate=Modified Date -label_com_labsynch_labseer_domain_compound_plural=Compounds -label_com_labsynch_labseer_domain_compound_version=Version -label_com_labsynch_labseer_domain_compoundtype=Compound Type -label_com_labsynch_labseer_domain_compoundtype_code=Code -label_com_labsynch_labseer_domain_compoundtype_comment=Comment -label_com_labsynch_labseer_domain_compoundtype_displayorder=Display Order -label_com_labsynch_labseer_domain_compoundtype_id=Id -label_com_labsynch_labseer_domain_compoundtype_name=Name -label_com_labsynch_labseer_domain_compoundtype_plural=Compound Types -label_com_labsynch_labseer_domain_compoundtype_version=Version -label_com_labsynch_labseer_domain_container=Container -label_com_labsynch_labseer_domain_container_codename=Code Name -label_com_labsynch_labseer_domain_container_columnindex=Column Index -label_com_labsynch_labseer_domain_container_containerkind=Container Kind -label_com_labsynch_labseer_domain_container_containerlabels=Container Labels -label_com_labsynch_labseer_domain_container_containerstates=Container States -label_com_labsynch_labseer_domain_container_containertype=Container Type -label_com_labsynch_labseer_domain_container_containertypeandkind=Container Type And Kind -label_com_labsynch_labseer_domain_container_containtertype=Containter Type -label_com_labsynch_labseer_domain_container_deleted=Deleted -label_com_labsynch_labseer_domain_container_description=Description -label_com_labsynch_labseer_domain_container_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_container_firstcontainers=First Containers -label_com_labsynch_labseer_domain_container_id=Id -label_com_labsynch_labseer_domain_container_ignored=Ignored -label_com_labsynch_labseer_domain_container_kind=Kind -label_com_labsynch_labseer_domain_container_location=Location -label_com_labsynch_labseer_domain_container_locationid=Location Id -label_com_labsynch_labseer_domain_container_lskind=Ls Kind -label_com_labsynch_labseer_domain_container_lslabels=Ls Labels -label_com_labsynch_labseer_domain_container_lsstates=Ls States -label_com_labsynch_labseer_domain_container_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_container_lstype=Ls Type -label_com_labsynch_labseer_domain_container_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_container_modifiedby=Modified By -label_com_labsynch_labseer_domain_container_modifieddate=Modified Date -label_com_labsynch_labseer_domain_container_name=Name -label_com_labsynch_labseer_domain_container_plural=Containers -label_com_labsynch_labseer_domain_container_recordedby=Recorded By -label_com_labsynch_labseer_domain_container_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_container_rowindex=Row Index -label_com_labsynch_labseer_domain_container_secondcontainers=Second Containers -label_com_labsynch_labseer_domain_container_subjects=Subjects -label_com_labsynch_labseer_domain_container_thingpage=Thing Page -label_com_labsynch_labseer_domain_container_version=Version -label_com_labsynch_labseer_domain_containerkind=Container Kind -label_com_labsynch_labseer_domain_containerkind_containertype=Container Type -label_com_labsynch_labseer_domain_containerkind_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_containerkind_id=Id -label_com_labsynch_labseer_domain_containerkind_kindname=Kind Name -label_com_labsynch_labseer_domain_containerkind_lstype=Ls Type -label_com_labsynch_labseer_domain_containerkind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_containerkind_plural=Container Kinds -label_com_labsynch_labseer_domain_containerkind_typeandkind=Type And Kind -label_com_labsynch_labseer_domain_containerkind_version=Version -label_com_labsynch_labseer_domain_containerlabel=Container Label -label_com_labsynch_labseer_domain_containerlabel_container=Container -label_com_labsynch_labseer_domain_containerlabel_deleted=Deleted -label_com_labsynch_labseer_domain_containerlabel_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_containerlabel_id=Id -label_com_labsynch_labseer_domain_containerlabel_ignored=Ignored -label_com_labsynch_labseer_domain_containerlabel_imagefile=Image File -label_com_labsynch_labseer_domain_containerlabel_imgagefile=Imgage File -label_com_labsynch_labseer_domain_containerlabel_labelkind=Label Kind -label_com_labsynch_labseer_domain_containerlabel_labeltext=Label Text -label_com_labsynch_labseer_domain_containerlabel_labeltype=Label Type -label_com_labsynch_labseer_domain_containerlabel_labeltypeandkind=Label Type And Kind -label_com_labsynch_labseer_domain_containerlabel_labelvalue=Label Value -label_com_labsynch_labseer_domain_containerlabel_lskind=Ls Kind -label_com_labsynch_labseer_domain_containerlabel_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_containerlabel_lstype=Ls Type -label_com_labsynch_labseer_domain_containerlabel_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_containerlabel_modifieddate=Modified Date -label_com_labsynch_labseer_domain_containerlabel_physicallylabled=Physically Labled -label_com_labsynch_labseer_domain_containerlabel_plural=Container Labels -label_com_labsynch_labseer_domain_containerlabel_preferred=Preferred -label_com_labsynch_labseer_domain_containerlabel_recordedby=Recorded By -label_com_labsynch_labseer_domain_containerlabel_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_containerlabel_version=Version -label_com_labsynch_labseer_domain_containerstate=Container State -label_com_labsynch_labseer_domain_containerstate_comments=Comments -label_com_labsynch_labseer_domain_containerstate_container=Container -label_com_labsynch_labseer_domain_containerstate_containervalues=Container Values -label_com_labsynch_labseer_domain_containerstate_deleted=Deleted -label_com_labsynch_labseer_domain_containerstate_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_containerstate_id=Id -label_com_labsynch_labseer_domain_containerstate_ignored=Ignored -label_com_labsynch_labseer_domain_containerstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_containerstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_containerstate_lstype=Ls Type -label_com_labsynch_labseer_domain_containerstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_containerstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_containerstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_containerstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_containerstate_plural=Container States -label_com_labsynch_labseer_domain_containerstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_containerstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_containerstate_statekind=State Kind -label_com_labsynch_labseer_domain_containerstate_statetype=State Type -label_com_labsynch_labseer_domain_containerstate_statetypeandkind=State Type And Kind -label_com_labsynch_labseer_domain_containerstate_version=Version -label_com_labsynch_labseer_domain_containertype=Container Type -label_com_labsynch_labseer_domain_containertype_id=Id -label_com_labsynch_labseer_domain_containertype_plural=Container Types -label_com_labsynch_labseer_domain_containertype_typename=Type Name -label_com_labsynch_labseer_domain_containertype_version=Version -label_com_labsynch_labseer_domain_containervalue=Container Value -label_com_labsynch_labseer_domain_containervalue_batchcode=Batch Code -label_com_labsynch_labseer_domain_containervalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_containervalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_containervalue_codekind=Code Kind -label_com_labsynch_labseer_domain_containervalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_containervalue_codetype=Code Type -label_com_labsynch_labseer_domain_containervalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_containervalue_codevalue=Code Value -label_com_labsynch_labseer_domain_containervalue_comments=Comments -label_com_labsynch_labseer_domain_containervalue_concentration=Concentration -label_com_labsynch_labseer_domain_containervalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_containervalue_concvalue=Conc Value -label_com_labsynch_labseer_domain_containervalue_containerstate=Container State -label_com_labsynch_labseer_domain_containervalue_datevalue=Date Value -label_com_labsynch_labseer_domain_containervalue_deleted=Deleted -label_com_labsynch_labseer_domain_containervalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_containervalue_filevalue=File Value -label_com_labsynch_labseer_domain_containervalue_id=Id -label_com_labsynch_labseer_domain_containervalue_ignored=Ignored -label_com_labsynch_labseer_domain_containervalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_containervalue_lsstate=Ls State -label_com_labsynch_labseer_domain_containervalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_containervalue_lstype=Ls Type -label_com_labsynch_labseer_domain_containervalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_containervalue_maxresults=Max Results -label_com_labsynch_labseer_domain_containervalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_containervalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_containervalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_containervalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_containervalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_containervalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_containervalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_containervalue_plural=Container Values -label_com_labsynch_labseer_domain_containervalue_propertiesutilservice=Properties Util Service -label_com_labsynch_labseer_domain_containervalue_publicdata=Public Data -label_com_labsynch_labseer_domain_containervalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_containervalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_containervalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_containervalue_stringvalue=String Value -label_com_labsynch_labseer_domain_containervalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_containervalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_containervalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_containervalue_unittype=Unit Type -label_com_labsynch_labseer_domain_containervalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_containervalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_containervalue_valuekind=Value Kind -label_com_labsynch_labseer_domain_containervalue_valueoperator=Value Operator -label_com_labsynch_labseer_domain_containervalue_valuetype=Value Type -label_com_labsynch_labseer_domain_containervalue_valuetypeandkind=Value Type And Kind -label_com_labsynch_labseer_domain_containervalue_valueunit=Value Unit -label_com_labsynch_labseer_domain_containervalue_version=Version -label_com_labsynch_labseer_domain_corpname=Corp Name -label_com_labsynch_labseer_domain_corpname_comment=Comment -label_com_labsynch_labseer_domain_corpname_id=Id -label_com_labsynch_labseer_domain_corpname_ignore=Ignore -label_com_labsynch_labseer_domain_corpname_parentcorpname=Parent Corp Name -label_com_labsynch_labseer_domain_corpname_plural=Corp Names -label_com_labsynch_labseer_domain_corpname_version=Version -label_com_labsynch_labseer_domain_cronjob=Cron Job -label_com_labsynch_labseer_domain_cronjob_active=Active -label_com_labsynch_labseer_domain_cronjob_codename=Code Name -label_com_labsynch_labseer_domain_cronjob_functionname=Function Name -label_com_labsynch_labseer_domain_cronjob_id=Id -label_com_labsynch_labseer_domain_cronjob_ignored=Ignored -label_com_labsynch_labseer_domain_cronjob_lastduration=Last Duration -label_com_labsynch_labseer_domain_cronjob_lastresultjson=Last Result J S O N -label_com_labsynch_labseer_domain_cronjob_laststarttime=Last Start Time -label_com_labsynch_labseer_domain_cronjob_numberofexecutions=Number Of Executions -label_com_labsynch_labseer_domain_cronjob_plural=Cron Jobs -label_com_labsynch_labseer_domain_cronjob_runuser=Run User -label_com_labsynch_labseer_domain_cronjob_schedule=Schedule -label_com_labsynch_labseer_domain_cronjob_scriptfile=Script File -label_com_labsynch_labseer_domain_cronjob_scriptjsondata=Script J S O N Data -label_com_labsynch_labseer_domain_cronjob_scripttype=Script Type -label_com_labsynch_labseer_domain_cronjob_version=Version -label_com_labsynch_labseer_domain_ddictkind=D Dict Kind -label_com_labsynch_labseer_domain_ddictkind_comments=Comments -label_com_labsynch_labseer_domain_ddictkind_description=Description -label_com_labsynch_labseer_domain_ddictkind_displayorder=Display Order -label_com_labsynch_labseer_domain_ddictkind_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_ddictkind_id=Id -label_com_labsynch_labseer_domain_ddictkind_ignored=Ignored -label_com_labsynch_labseer_domain_ddictkind_lstype=Ls Type -label_com_labsynch_labseer_domain_ddictkind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_ddictkind_name=Name -label_com_labsynch_labseer_domain_ddictkind_plural=D Dict Kinds -label_com_labsynch_labseer_domain_ddictkind_version=Version -label_com_labsynch_labseer_domain_ddicttype=D Dict Type -label_com_labsynch_labseer_domain_ddicttype_comments=Comments -label_com_labsynch_labseer_domain_ddicttype_description=Description -label_com_labsynch_labseer_domain_ddicttype_displayorder=Display Order -label_com_labsynch_labseer_domain_ddicttype_id=Id -label_com_labsynch_labseer_domain_ddicttype_ignored=Ignored -label_com_labsynch_labseer_domain_ddicttype_name=Name -label_com_labsynch_labseer_domain_ddicttype_plural=D Dict Types -label_com_labsynch_labseer_domain_ddicttype_version=Version -label_com_labsynch_labseer_domain_ddictvalue=D Dict Value -label_com_labsynch_labseer_domain_ddictvalue_codename=Code Name -label_com_labsynch_labseer_domain_ddictvalue_comments=Comments -label_com_labsynch_labseer_domain_ddictvalue_description=Description -label_com_labsynch_labseer_domain_ddictvalue_displayorder=Display Order -label_com_labsynch_labseer_domain_ddictvalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_ddictvalue_id=Id -label_com_labsynch_labseer_domain_ddictvalue_ignored=Ignored -label_com_labsynch_labseer_domain_ddictvalue_labeltext=Label Text -label_com_labsynch_labseer_domain_ddictvalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_ddictvalue_lstype=Ls Type -label_com_labsynch_labseer_domain_ddictvalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_ddictvalue_lsvalue=Ls Value -label_com_labsynch_labseer_domain_ddictvalue_plural=D Dict Values -label_com_labsynch_labseer_domain_ddictvalue_shortname=Short Name -label_com_labsynch_labseer_domain_ddictvalue_version=Version -label_com_labsynch_labseer_domain_experiment=Experiment -label_com_labsynch_labseer_domain_experiment_analysisgroups=Analysis Groups -label_com_labsynch_labseer_domain_experiment_codename=Code Name -label_com_labsynch_labseer_domain_experiment_deleted=Deleted -label_com_labsynch_labseer_domain_experiment_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_experiment_experimentkind=Experiment Kind -label_com_labsynch_labseer_domain_experiment_experimentlabels=Experiment Labels -label_com_labsynch_labseer_domain_experiment_experimentstates=Experiment States -label_com_labsynch_labseer_domain_experiment_experimenttype=Experiment Type -label_com_labsynch_labseer_domain_experiment_experimenttypeandkind=Experiment Type And Kind -label_com_labsynch_labseer_domain_experiment_firstexperiments=First Experiments -label_com_labsynch_labseer_domain_experiment_id=Id -label_com_labsynch_labseer_domain_experiment_ignored=Ignored -label_com_labsynch_labseer_domain_experiment_kind=Kind -label_com_labsynch_labseer_domain_experiment_lskind=Ls Kind -label_com_labsynch_labseer_domain_experiment_lslabels=Ls Labels -label_com_labsynch_labseer_domain_experiment_lsstates=Ls States -label_com_labsynch_labseer_domain_experiment_lstags=Ls Tags -label_com_labsynch_labseer_domain_experiment_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_experiment_lstype=Ls Type -label_com_labsynch_labseer_domain_experiment_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_experiment_modifiedby=Modified By -label_com_labsynch_labseer_domain_experiment_modifieddate=Modified Date -label_com_labsynch_labseer_domain_experiment_plural=Experiments -label_com_labsynch_labseer_domain_experiment_protocol=Protocol -label_com_labsynch_labseer_domain_experiment_protocolkind=Protocol Kind -label_com_labsynch_labseer_domain_experiment_protocoltype=Protocol Type -label_com_labsynch_labseer_domain_experiment_protocoltypeandkind=Protocol Type And Kind -label_com_labsynch_labseer_domain_experiment_recordedby=Recorded By -label_com_labsynch_labseer_domain_experiment_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_experiment_secondexperiments=Second Experiments -label_com_labsynch_labseer_domain_experiment_shortdescription=Short Description -label_com_labsynch_labseer_domain_experiment_thingpage=Thing Page -label_com_labsynch_labseer_domain_experiment_version=Version -label_com_labsynch_labseer_domain_experimentkind=Experiment Kind -label_com_labsynch_labseer_domain_experimentkind_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_experimentkind_id=Id -label_com_labsynch_labseer_domain_experimentkind_kindname=Kind Name -label_com_labsynch_labseer_domain_experimentkind_lstype=Ls Type -label_com_labsynch_labseer_domain_experimentkind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_experimentkind_plural=Experiment Kinds -label_com_labsynch_labseer_domain_experimentkind_version=Version -label_com_labsynch_labseer_domain_experimentlabel=Experiment Label -label_com_labsynch_labseer_domain_experimentlabel_deleted=Deleted -label_com_labsynch_labseer_domain_experimentlabel_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_experimentlabel_experiment=Experiment -label_com_labsynch_labseer_domain_experimentlabel_id=Id -label_com_labsynch_labseer_domain_experimentlabel_ignored=Ignored -label_com_labsynch_labseer_domain_experimentlabel_imagefile=Image File -label_com_labsynch_labseer_domain_experimentlabel_imgagefile=Imgage File -label_com_labsynch_labseer_domain_experimentlabel_labelkind=Label Kind -label_com_labsynch_labseer_domain_experimentlabel_labeltext=Label Text -label_com_labsynch_labseer_domain_experimentlabel_labeltype=Label Type -label_com_labsynch_labseer_domain_experimentlabel_labeltypeandkind=Label Type And Kind -label_com_labsynch_labseer_domain_experimentlabel_labelvalue=Label Value -label_com_labsynch_labseer_domain_experimentlabel_lskind=Ls Kind -label_com_labsynch_labseer_domain_experimentlabel_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_experimentlabel_lstype=Ls Type -label_com_labsynch_labseer_domain_experimentlabel_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_experimentlabel_modifieddate=Modified Date -label_com_labsynch_labseer_domain_experimentlabel_physicallylabled=Physically Labled -label_com_labsynch_labseer_domain_experimentlabel_plural=Experiment Labels -label_com_labsynch_labseer_domain_experimentlabel_preferred=Preferred -label_com_labsynch_labseer_domain_experimentlabel_protocol=Protocol -label_com_labsynch_labseer_domain_experimentlabel_recordedby=Recorded By -label_com_labsynch_labseer_domain_experimentlabel_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_experimentlabel_version=Version -label_com_labsynch_labseer_domain_experimentstate=Experiment State -label_com_labsynch_labseer_domain_experimentstate_comments=Comments -label_com_labsynch_labseer_domain_experimentstate_deleted=Deleted -label_com_labsynch_labseer_domain_experimentstate_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_experimentstate_experiment=Experiment -label_com_labsynch_labseer_domain_experimentstate_experimentvalues=Experiment Values -label_com_labsynch_labseer_domain_experimentstate_id=Id -label_com_labsynch_labseer_domain_experimentstate_ignored=Ignored -label_com_labsynch_labseer_domain_experimentstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_experimentstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_experimentstate_lstype=Ls Type -label_com_labsynch_labseer_domain_experimentstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_experimentstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_experimentstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_experimentstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_experimentstate_plural=Experiment States -label_com_labsynch_labseer_domain_experimentstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_experimentstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_experimentstate_statekind=State Kind -label_com_labsynch_labseer_domain_experimentstate_statetype=State Type -label_com_labsynch_labseer_domain_experimentstate_statetypeandkind=State Type And Kind -label_com_labsynch_labseer_domain_experimentstate_version=Version -label_com_labsynch_labseer_domain_experimenttype=Experiment Type -label_com_labsynch_labseer_domain_experimenttype_id=Id -label_com_labsynch_labseer_domain_experimenttype_plural=Experiment Types -label_com_labsynch_labseer_domain_experimenttype_typename=Type Name -label_com_labsynch_labseer_domain_experimenttype_version=Version -label_com_labsynch_labseer_domain_experimentvalue=Experiment Value -label_com_labsynch_labseer_domain_experimentvalue_batchcode=Batch Code -label_com_labsynch_labseer_domain_experimentvalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_experimentvalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_experimentvalue_codekind=Code Kind -label_com_labsynch_labseer_domain_experimentvalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_experimentvalue_codetype=Code Type -label_com_labsynch_labseer_domain_experimentvalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_experimentvalue_codevalue=Code Value -label_com_labsynch_labseer_domain_experimentvalue_comments=Comments -label_com_labsynch_labseer_domain_experimentvalue_concentration=Concentration -label_com_labsynch_labseer_domain_experimentvalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_experimentvalue_concvalue=Conc Value -label_com_labsynch_labseer_domain_experimentvalue_datevalue=Date Value -label_com_labsynch_labseer_domain_experimentvalue_deleted=Deleted -label_com_labsynch_labseer_domain_experimentvalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_experimentvalue_experimentstate=Experiment State -label_com_labsynch_labseer_domain_experimentvalue_filevalue=File Value -label_com_labsynch_labseer_domain_experimentvalue_id=Id -label_com_labsynch_labseer_domain_experimentvalue_ignored=Ignored -label_com_labsynch_labseer_domain_experimentvalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_experimentvalue_lsstate=Ls State -label_com_labsynch_labseer_domain_experimentvalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_experimentvalue_lstype=Ls Type -label_com_labsynch_labseer_domain_experimentvalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_experimentvalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_experimentvalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_experimentvalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_experimentvalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_experimentvalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_experimentvalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_experimentvalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_experimentvalue_plural=Experiment Values -label_com_labsynch_labseer_domain_experimentvalue_publicdata=Public Data -label_com_labsynch_labseer_domain_experimentvalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_experimentvalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_experimentvalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_experimentvalue_stringvalue=String Value -label_com_labsynch_labseer_domain_experimentvalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_experimentvalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_experimentvalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_experimentvalue_unittype=Unit Type -label_com_labsynch_labseer_domain_experimentvalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_experimentvalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_experimentvalue_valuekind=Value Kind -label_com_labsynch_labseer_domain_experimentvalue_valueoperator=Value Operator -label_com_labsynch_labseer_domain_experimentvalue_valuetype=Value Type -label_com_labsynch_labseer_domain_experimentvalue_valuetypeandkind=Value Type And Kind -label_com_labsynch_labseer_domain_experimentvalue_valueunit=Value Unit -label_com_labsynch_labseer_domain_experimentvalue_version=Version -label_com_labsynch_labseer_domain_filelist=File List -label_com_labsynch_labseer_domain_filelist_description=Description -label_com_labsynch_labseer_domain_filelist_file=File -label_com_labsynch_labseer_domain_filelist_filename=File Name -label_com_labsynch_labseer_domain_filelist_filepath=File Path -label_com_labsynch_labseer_domain_filelist_id=Id -label_com_labsynch_labseer_domain_filelist_ie=Ie -label_com_labsynch_labseer_domain_filelist_lot=Lot -label_com_labsynch_labseer_domain_filelist_name=Name -label_com_labsynch_labseer_domain_filelist_plural=File Lists -label_com_labsynch_labseer_domain_filelist_size=Size -label_com_labsynch_labseer_domain_filelist_subdir=Subdir -label_com_labsynch_labseer_domain_filelist_type=Type -label_com_labsynch_labseer_domain_filelist_uploaded=Uploaded -label_com_labsynch_labseer_domain_filelist_url=Url -label_com_labsynch_labseer_domain_filelist_version=Version -label_com_labsynch_labseer_domain_filething=File Thing -label_com_labsynch_labseer_domain_filething_applicationtype=Application Type -label_com_labsynch_labseer_domain_filething_codename=Code Name -label_com_labsynch_labseer_domain_filething_deleted=Deleted -label_com_labsynch_labseer_domain_filething_description=Description -label_com_labsynch_labseer_domain_filething_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_filething_fileextension=File Extension -label_com_labsynch_labseer_domain_filething_filesize=File Size -label_com_labsynch_labseer_domain_filething_fileurl=File U R L -label_com_labsynch_labseer_domain_filething_id=Id -label_com_labsynch_labseer_domain_filething_ignored=Ignored -label_com_labsynch_labseer_domain_filething_kind=Kind -label_com_labsynch_labseer_domain_filething_lskind=Ls Kind -label_com_labsynch_labseer_domain_filething_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_filething_lstype=Ls Type -label_com_labsynch_labseer_domain_filething_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_filething_mimetype=Mime Type -label_com_labsynch_labseer_domain_filething_modifiedby=Modified By -label_com_labsynch_labseer_domain_filething_modifieddate=Modified Date -label_com_labsynch_labseer_domain_filething_name=Name -label_com_labsynch_labseer_domain_filething_plural=File Things -label_com_labsynch_labseer_domain_filething_recordedby=Recorded By -label_com_labsynch_labseer_domain_filething_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_filething_thingpage=Thing Page -label_com_labsynch_labseer_domain_filething_version=Version -label_com_labsynch_labseer_domain_filetype=File Type -label_com_labsynch_labseer_domain_filetype_code=Code -label_com_labsynch_labseer_domain_filetype_id=Id -label_com_labsynch_labseer_domain_filetype_name=Name -label_com_labsynch_labseer_domain_filetype_plural=File Types -label_com_labsynch_labseer_domain_filetype_version=Version -label_com_labsynch_labseer_domain_interactionkind=Interaction Kind -label_com_labsynch_labseer_domain_interactionkind_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_interactionkind_id=Id -label_com_labsynch_labseer_domain_interactionkind_id_=Id_ -label_com_labsynch_labseer_domain_interactionkind_interactiontype=Interaction Type -label_com_labsynch_labseer_domain_interactionkind_kindname=Kind Name -label_com_labsynch_labseer_domain_interactionkind_lstype=Ls Type -label_com_labsynch_labseer_domain_interactionkind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_interactionkind_plural=Interaction Kinds -label_com_labsynch_labseer_domain_interactionkind_typeandkind=Type And Kind -label_com_labsynch_labseer_domain_interactionkind_version=Version -label_com_labsynch_labseer_domain_interactionkind_version_=Version_ -label_com_labsynch_labseer_domain_interactiontype=Interaction Type -label_com_labsynch_labseer_domain_interactiontype_id=Id -label_com_labsynch_labseer_domain_interactiontype_plural=Interaction Types -label_com_labsynch_labseer_domain_interactiontype_typename=Type Name -label_com_labsynch_labseer_domain_interactiontype_typeverb=Type Verb -label_com_labsynch_labseer_domain_interactiontype_version=Version -label_com_labsynch_labseer_domain_isosalt=Iso Salt -label_com_labsynch_labseer_domain_isosalt_equivalents=Equivalents -label_com_labsynch_labseer_domain_isosalt_id=Id -label_com_labsynch_labseer_domain_isosalt_ignore=Ignore -label_com_labsynch_labseer_domain_isosalt_isotope=Isotope -label_com_labsynch_labseer_domain_isosalt_plural=Iso Salts -label_com_labsynch_labseer_domain_isosalt_salt=Salt -label_com_labsynch_labseer_domain_isosalt_saltform=Salt Form -label_com_labsynch_labseer_domain_isosalt_type=Type -label_com_labsynch_labseer_domain_isosalt_version=Version -label_com_labsynch_labseer_domain_isotope=Isotope -label_com_labsynch_labseer_domain_isotope_abbrev=Abbrev -label_com_labsynch_labseer_domain_isotope_id=Id -label_com_labsynch_labseer_domain_isotope_ignore=Ignore -label_com_labsynch_labseer_domain_isotope_masschange=Mass Change -label_com_labsynch_labseer_domain_isotope_name=Name -label_com_labsynch_labseer_domain_isotope_plural=Isotopes -label_com_labsynch_labseer_domain_isotope_version=Version -label_com_labsynch_labseer_domain_itxcontainercontainer=Itx Container Container -label_com_labsynch_labseer_domain_itxcontainercontainer_codename=Code Name -label_com_labsynch_labseer_domain_itxcontainercontainer_deleted=Deleted -label_com_labsynch_labseer_domain_itxcontainercontainer_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxcontainercontainer_firstcontainer=First Container -label_com_labsynch_labseer_domain_itxcontainercontainer_id=Id -label_com_labsynch_labseer_domain_itxcontainercontainer_ignored=Ignored -label_com_labsynch_labseer_domain_itxcontainercontainer_interactionkind=Interaction Kind -label_com_labsynch_labseer_domain_itxcontainercontainer_interactiontype=Interaction Type -label_com_labsynch_labseer_domain_itxcontainercontainer_interactiontypeandkind=Interaction Type And Kind -label_com_labsynch_labseer_domain_itxcontainercontainer_itxcontainercontainerstates=Itx Container Container States -label_com_labsynch_labseer_domain_itxcontainercontainer_kind=Kind -label_com_labsynch_labseer_domain_itxcontainercontainer_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxcontainercontainer_lsstates=Ls States -label_com_labsynch_labseer_domain_itxcontainercontainer_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxcontainercontainer_lstype=Ls Type -label_com_labsynch_labseer_domain_itxcontainercontainer_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxcontainercontainer_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxcontainercontainer_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxcontainercontainer_plural=Itx Container Containers -label_com_labsynch_labseer_domain_itxcontainercontainer_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxcontainercontainer_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxcontainercontainer_secondcontainer=Second Container -label_com_labsynch_labseer_domain_itxcontainercontainer_thingpage=Thing Page -label_com_labsynch_labseer_domain_itxcontainercontainer_version=Version -label_com_labsynch_labseer_domain_itxcontainercontainerstate=Itx Container Container State -label_com_labsynch_labseer_domain_itxcontainercontainerstate_comments=Comments -label_com_labsynch_labseer_domain_itxcontainercontainerstate_deleted=Deleted -label_com_labsynch_labseer_domain_itxcontainercontainerstate_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxcontainercontainerstate_id=Id -label_com_labsynch_labseer_domain_itxcontainercontainerstate_ignored=Ignored -label_com_labsynch_labseer_domain_itxcontainercontainerstate_itxcontainercontainer=Itx Container Container -label_com_labsynch_labseer_domain_itxcontainercontainerstate_itxcontainercontainervalues=Itx Container Container Values -label_com_labsynch_labseer_domain_itxcontainercontainerstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxcontainercontainerstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxcontainercontainerstate_lstype=Ls Type -label_com_labsynch_labseer_domain_itxcontainercontainerstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxcontainercontainerstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_itxcontainercontainerstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxcontainercontainerstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxcontainercontainerstate_plural=Itx Container Container States -label_com_labsynch_labseer_domain_itxcontainercontainerstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxcontainercontainerstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxcontainercontainerstate_statekind=State Kind -label_com_labsynch_labseer_domain_itxcontainercontainerstate_statetype=State Type -label_com_labsynch_labseer_domain_itxcontainercontainerstate_statetypeandkind=State Type And Kind -label_com_labsynch_labseer_domain_itxcontainercontainerstate_version=Version -label_com_labsynch_labseer_domain_itxcontainercontainervalue=Itx Container Container Value -label_com_labsynch_labseer_domain_itxcontainercontainervalue_batchcode=Batch Code -label_com_labsynch_labseer_domain_itxcontainercontainervalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_itxcontainercontainervalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_itxcontainercontainervalue_codekind=Code Kind -label_com_labsynch_labseer_domain_itxcontainercontainervalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_itxcontainercontainervalue_codetype=Code Type -label_com_labsynch_labseer_domain_itxcontainercontainervalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_itxcontainercontainervalue_codevalue=Code Value -label_com_labsynch_labseer_domain_itxcontainercontainervalue_comments=Comments -label_com_labsynch_labseer_domain_itxcontainercontainervalue_concentration=Concentration -label_com_labsynch_labseer_domain_itxcontainercontainervalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_itxcontainercontainervalue_concvalue=Conc Value -label_com_labsynch_labseer_domain_itxcontainercontainervalue_datevalue=Date Value -label_com_labsynch_labseer_domain_itxcontainercontainervalue_deleted=Deleted -label_com_labsynch_labseer_domain_itxcontainercontainervalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxcontainercontainervalue_filevalue=File Value -label_com_labsynch_labseer_domain_itxcontainercontainervalue_id=Id -label_com_labsynch_labseer_domain_itxcontainercontainervalue_ignored=Ignored -label_com_labsynch_labseer_domain_itxcontainercontainervalue_itxcontainercontainerstate=Itx Container Container State -label_com_labsynch_labseer_domain_itxcontainercontainervalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxcontainercontainervalue_lsstate=Ls State -label_com_labsynch_labseer_domain_itxcontainercontainervalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxcontainercontainervalue_lstype=Ls Type -label_com_labsynch_labseer_domain_itxcontainercontainervalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxcontainercontainervalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxcontainercontainervalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxcontainercontainervalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_itxcontainercontainervalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_itxcontainercontainervalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_itxcontainercontainervalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_itxcontainercontainervalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_itxcontainercontainervalue_plural=Itx Container Container Values -label_com_labsynch_labseer_domain_itxcontainercontainervalue_publicdata=Public Data -label_com_labsynch_labseer_domain_itxcontainercontainervalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxcontainercontainervalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxcontainercontainervalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_itxcontainercontainervalue_stringvalue=String Value -label_com_labsynch_labseer_domain_itxcontainercontainervalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_itxcontainercontainervalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_itxcontainercontainervalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_itxcontainercontainervalue_unittype=Unit Type -label_com_labsynch_labseer_domain_itxcontainercontainervalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_itxcontainercontainervalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_itxcontainercontainervalue_valuekind=Value Kind -label_com_labsynch_labseer_domain_itxcontainercontainervalue_valueoperator=Value Operator -label_com_labsynch_labseer_domain_itxcontainercontainervalue_valuetype=Value Type -label_com_labsynch_labseer_domain_itxcontainercontainervalue_valuetypeandkind=Value Type And Kind -label_com_labsynch_labseer_domain_itxcontainercontainervalue_valueunit=Value Unit -label_com_labsynch_labseer_domain_itxcontainercontainervalue_version=Version -label_com_labsynch_labseer_domain_itxexperimentexperiment=Itx Experiment Experiment -label_com_labsynch_labseer_domain_itxexperimentexperiment_codename=Code Name -label_com_labsynch_labseer_domain_itxexperimentexperiment_deleted=Deleted -label_com_labsynch_labseer_domain_itxexperimentexperiment_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxexperimentexperiment_firstexperiment=First Experiment -label_com_labsynch_labseer_domain_itxexperimentexperiment_id=Id -label_com_labsynch_labseer_domain_itxexperimentexperiment_ignored=Ignored -label_com_labsynch_labseer_domain_itxexperimentexperiment_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxexperimentexperiment_lsstates=Ls States -label_com_labsynch_labseer_domain_itxexperimentexperiment_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxexperimentexperiment_lstype=Ls Type -label_com_labsynch_labseer_domain_itxexperimentexperiment_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxexperimentexperiment_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxexperimentexperiment_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxexperimentexperiment_plural=Itx Experiment Experiments -label_com_labsynch_labseer_domain_itxexperimentexperiment_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxexperimentexperiment_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxexperimentexperiment_secondexperiment=Second Experiment -label_com_labsynch_labseer_domain_itxexperimentexperiment_thingpage=Thing Page -label_com_labsynch_labseer_domain_itxexperimentexperiment_version=Version -label_com_labsynch_labseer_domain_itxexperimentexperimentstate=Itx Experiment Experiment State -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_comments=Comments -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_deleted=Deleted -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_id=Id -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_ignored=Ignored -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_itxexperimentexperiment=Itx Experiment Experiment -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_lstype=Ls Type -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_plural=Itx Experiment Experiment States -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxexperimentexperimentstate_version=Version -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue=Itx Experiment Experiment Value -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_codekind=Code Kind -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_codetype=Code Type -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_codevalue=Code Value -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_comments=Comments -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_concentration=Concentration -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_datevalue=Date Value -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_deleted=Deleted -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_filevalue=File Value -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_id=Id -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_ignored=Ignored -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_lsstate=Ls State -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_lstype=Ls Type -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_plural=Itx Experiment Experiment Values -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_publicdata=Public Data -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_stringvalue=String Value -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_unittype=Unit Type -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_itxexperimentexperimentvalue_version=Version -label_com_labsynch_labseer_domain_itxlsthinglsthing=Itx Ls Thing Ls Thing -label_com_labsynch_labseer_domain_itxlsthinglsthing_codename=Code Name -label_com_labsynch_labseer_domain_itxlsthinglsthing_deleted=Deleted -label_com_labsynch_labseer_domain_itxlsthinglsthing_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxlsthinglsthing_firstlsthing=First Ls Thing -label_com_labsynch_labseer_domain_itxlsthinglsthing_id=Id -label_com_labsynch_labseer_domain_itxlsthinglsthing_ignored=Ignored -label_com_labsynch_labseer_domain_itxlsthinglsthing_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxlsthinglsthing_lsstates=Ls States -label_com_labsynch_labseer_domain_itxlsthinglsthing_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxlsthinglsthing_lstype=Ls Type -label_com_labsynch_labseer_domain_itxlsthinglsthing_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxlsthinglsthing_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxlsthinglsthing_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxlsthinglsthing_plural=Itx Ls Thing Ls Things -label_com_labsynch_labseer_domain_itxlsthinglsthing_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxlsthinglsthing_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxlsthinglsthing_secondlsthing=Second Ls Thing -label_com_labsynch_labseer_domain_itxlsthinglsthing_thingpage=Thing Page -label_com_labsynch_labseer_domain_itxlsthinglsthing_version=Version -label_com_labsynch_labseer_domain_itxlsthinglsthingstate=Itx Ls Thing Ls Thing State -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_comments=Comments -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_deleted=Deleted -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_id=Id -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_ignored=Ignored -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_itxlsthinglsthing=Itx Ls Thing Ls Thing -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_lstype=Ls Type -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_plural=Itx Ls Thing Ls Thing States -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxlsthinglsthingstate_version=Version -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue=Itx Ls Thing Ls Thing Value -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_codekind=Code Kind -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_codetype=Code Type -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_codevalue=Code Value -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_comments=Comments -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_concentration=Concentration -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_datevalue=Date Value -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_deleted=Deleted -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_filevalue=File Value -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_id=Id -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_ignored=Ignored -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_lsstate=Ls State -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_lstype=Ls Type -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_plural=Itx Ls Thing Ls Thing Values -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_publicdata=Public Data -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_stringvalue=String Value -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_unittype=Unit Type -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_itxlsthinglsthingvalue_version=Version -label_com_labsynch_labseer_domain_itxprotocolprotocol=Itx Protocol Protocol -label_com_labsynch_labseer_domain_itxprotocolprotocol_codename=Code Name -label_com_labsynch_labseer_domain_itxprotocolprotocol_deleted=Deleted -label_com_labsynch_labseer_domain_itxprotocolprotocol_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxprotocolprotocol_firstprotocol=First Protocol -label_com_labsynch_labseer_domain_itxprotocolprotocol_id=Id -label_com_labsynch_labseer_domain_itxprotocolprotocol_ignored=Ignored -label_com_labsynch_labseer_domain_itxprotocolprotocol_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxprotocolprotocol_lsstates=Ls States -label_com_labsynch_labseer_domain_itxprotocolprotocol_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxprotocolprotocol_lstype=Ls Type -label_com_labsynch_labseer_domain_itxprotocolprotocol_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxprotocolprotocol_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxprotocolprotocol_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxprotocolprotocol_plural=Itx Protocol Protocols -label_com_labsynch_labseer_domain_itxprotocolprotocol_protocol=Protocol -label_com_labsynch_labseer_domain_itxprotocolprotocol_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxprotocolprotocol_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxprotocolprotocol_secondprotocol=Second Protocol -label_com_labsynch_labseer_domain_itxprotocolprotocol_thingpage=Thing Page -label_com_labsynch_labseer_domain_itxprotocolprotocol_version=Version -label_com_labsynch_labseer_domain_itxprotocolprotocolstate=Itx Protocol Protocol State -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_comments=Comments -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_deleted=Deleted -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_id=Id -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_ignored=Ignored -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_itxprotocolprotocol=Itx Protocol Protocol -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_lstype=Ls Type -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_plural=Itx Protocol Protocol States -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxprotocolprotocolstate_version=Version -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue=Itx Protocol Protocol Value -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_codekind=Code Kind -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_codetype=Code Type -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_codevalue=Code Value -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_comments=Comments -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_concentration=Concentration -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_datevalue=Date Value -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_deleted=Deleted -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_filevalue=File Value -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_id=Id -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_ignored=Ignored -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_lsstate=Ls State -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_lstype=Ls Type -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_plural=Itx Protocol Protocol Values -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_publicdata=Public Data -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_stringvalue=String Value -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_unittype=Unit Type -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_itxprotocolprotocolvalue_version=Version -label_com_labsynch_labseer_domain_itxsubjectcontainer=Itx Subject Container -label_com_labsynch_labseer_domain_itxsubjectcontainer_codename=Code Name -label_com_labsynch_labseer_domain_itxsubjectcontainer_container=Container -label_com_labsynch_labseer_domain_itxsubjectcontainer_deleted=Deleted -label_com_labsynch_labseer_domain_itxsubjectcontainer_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxsubjectcontainer_id=Id -label_com_labsynch_labseer_domain_itxsubjectcontainer_ignored=Ignored -label_com_labsynch_labseer_domain_itxsubjectcontainer_interactionkind=Interaction Kind -label_com_labsynch_labseer_domain_itxsubjectcontainer_interactiontype=Interaction Type -label_com_labsynch_labseer_domain_itxsubjectcontainer_interactiontypeandkind=Interaction Type And Kind -label_com_labsynch_labseer_domain_itxsubjectcontainer_itxsubjectcontainerstates=Itx Subject Container States -label_com_labsynch_labseer_domain_itxsubjectcontainer_kind=Kind -label_com_labsynch_labseer_domain_itxsubjectcontainer_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxsubjectcontainer_lsstates=Ls States -label_com_labsynch_labseer_domain_itxsubjectcontainer_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxsubjectcontainer_lstype=Ls Type -label_com_labsynch_labseer_domain_itxsubjectcontainer_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxsubjectcontainer_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxsubjectcontainer_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxsubjectcontainer_plural=Itx Subject Containers -label_com_labsynch_labseer_domain_itxsubjectcontainer_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxsubjectcontainer_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxsubjectcontainer_subject=Subject -label_com_labsynch_labseer_domain_itxsubjectcontainer_thingpage=Thing Page -label_com_labsynch_labseer_domain_itxsubjectcontainer_version=Version -label_com_labsynch_labseer_domain_itxsubjectcontainerstate=Itx Subject Container State -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_comments=Comments -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_deleted=Deleted -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_id=Id -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_ignored=Ignored -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_itxsubjectcontainer=Itx Subject Container -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_itxsubjectcontainervalues=Itx Subject Container Values -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_lstype=Ls Type -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_plural=Itx Subject Container States -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_statekind=State Kind -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_statetype=State Type -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_statetypeandkind=State Type And Kind -label_com_labsynch_labseer_domain_itxsubjectcontainerstate_version=Version -label_com_labsynch_labseer_domain_itxsubjectcontainervalue=Itx Subject Container Value -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_batchcode=Batch Code -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_codekind=Code Kind -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_codetype=Code Type -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_codevalue=Code Value -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_comments=Comments -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_concentration=Concentration -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_concvalue=Conc Value -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_datevalue=Date Value -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_deleted=Deleted -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_filevalue=File Value -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_id=Id -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_ignored=Ignored -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_itxsubjectcontainerstate=Itx Subject Container State -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_lsstate=Ls State -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_lstype=Ls Type -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_plural=Itx Subject Container Values -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_publicdata=Public Data -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_stringvalue=String Value -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_unittype=Unit Type -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_valuekind=Value Kind -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_valueoperator=Value Operator -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_valuetype=Value Type -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_valuetypeandkind=Value Type And Kind -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_valueunit=Value Unit -label_com_labsynch_labseer_domain_itxsubjectcontainervalue_version=Version -label_com_labsynch_labseer_domain_labelkind=Label Kind -label_com_labsynch_labseer_domain_labelkind_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_labelkind_id=Id -label_com_labsynch_labseer_domain_labelkind_kindname=Kind Name -label_com_labsynch_labseer_domain_labelkind_labeltype=Label Type -label_com_labsynch_labseer_domain_labelkind_lstype=Ls Type -label_com_labsynch_labseer_domain_labelkind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_labelkind_plural=Label Kinds -label_com_labsynch_labseer_domain_labelkind_typeandkind=Type And Kind -label_com_labsynch_labseer_domain_labelkind_version=Version -label_com_labsynch_labseer_domain_labelsequence=Label Sequence -label_com_labsynch_labseer_domain_labelsequence_db_sequence=Db_sequence -label_com_labsynch_labseer_domain_labelsequence_dbsequence=Db Sequence -label_com_labsynch_labseer_domain_labelsequence_digits=Digits -label_com_labsynch_labseer_domain_labelsequence_groupdigits=Group Digits -label_com_labsynch_labseer_domain_labelsequence_id=Id -label_com_labsynch_labseer_domain_labelsequence_ignored=Ignored -label_com_labsynch_labseer_domain_labelsequence_labelkind=Label Kind -label_com_labsynch_labseer_domain_labelsequence_labelprefix=Label Prefix -label_com_labsynch_labseer_domain_labelsequence_labelseparator=Label Separator -label_com_labsynch_labseer_domain_labelsequence_labelsequenceroles=Label Sequence Roles -label_com_labsynch_labseer_domain_labelsequence_labeltype=Label Type -label_com_labsynch_labseer_domain_labelsequence_labeltypeandkind=Label Type And Kind -label_com_labsynch_labseer_domain_labelsequence_latestnumber=Latest Number -label_com_labsynch_labseer_domain_labelsequence_lsroles=Ls Roles -label_com_labsynch_labseer_domain_labelsequence_modifieddate=Modified Date -label_com_labsynch_labseer_domain_labelsequence_plural=Label Sequences -label_com_labsynch_labseer_domain_labelsequence_startingnumber=Starting Number -label_com_labsynch_labseer_domain_labelsequence_thingkind=Thing Kind -label_com_labsynch_labseer_domain_labelsequence_thingtype=Thing Type -label_com_labsynch_labseer_domain_labelsequence_thingtypeandkind=Thing Type And Kind -label_com_labsynch_labseer_domain_labelsequence_version=Version -label_com_labsynch_labseer_domain_labelsequencerole=Label Sequence Role -label_com_labsynch_labseer_domain_labelsequencerole_id=Id -label_com_labsynch_labseer_domain_labelsequencerole_labelsequenceentry=Label Sequence Entry -label_com_labsynch_labseer_domain_labelsequencerole_plural=Label Sequence Roles -label_com_labsynch_labseer_domain_labelsequencerole_roleentry=Role Entry -label_com_labsynch_labseer_domain_labelsequencerole_version=Version -label_com_labsynch_labseer_domain_labeltype=Label Type -label_com_labsynch_labseer_domain_labeltype_id=Id -label_com_labsynch_labseer_domain_labeltype_plural=Label Types -label_com_labsynch_labseer_domain_labeltype_typename=Type Name -label_com_labsynch_labseer_domain_labeltype_version=Version -label_com_labsynch_labseer_domain_lot=Lot -label_com_labsynch_labseer_domain_lot_absorbance=Absorbance -label_com_labsynch_labseer_domain_lot_amount=Amount -label_com_labsynch_labseer_domain_lot_amountunits=Amount Units -label_com_labsynch_labseer_domain_lot_asdrawnstruct=As Drawn Struct -label_com_labsynch_labseer_domain_lot_author=Author -label_com_labsynch_labseer_domain_lot_barcode=Barcode -label_com_labsynch_labseer_domain_lot_boilingpoint=Boiling Point -label_com_labsynch_labseer_domain_lot_buid=Buid -label_com_labsynch_labseer_domain_lot_bulkloadfile=Bulk Load File -label_com_labsynch_labseer_domain_lot_chemist=Chemist -label_com_labsynch_labseer_domain_lot_color=Color -label_com_labsynch_labseer_domain_lot_comments=Comments -label_com_labsynch_labseer_domain_lot_corpname=Corp Name -label_com_labsynch_labseer_domain_lot_filelists=File Lists -label_com_labsynch_labseer_domain_lot_id=Id -label_com_labsynch_labseer_domain_lot_ignore=Ignore -label_com_labsynch_labseer_domain_lot_isvirtual=Is Virtual -label_com_labsynch_labseer_domain_lot_lambda=Lambda -label_com_labsynch_labseer_domain_lot_lotaliases=Lot Aliases -label_com_labsynch_labseer_domain_lot_lotasdrawncdid=Lot As Drawn Cd Id -label_com_labsynch_labseer_domain_lot_lotmolweight=Lot Mol Weight -label_com_labsynch_labseer_domain_lot_lotnumber=Lot Number -label_com_labsynch_labseer_domain_lot_maxsynthesisdate=Max Synthesis Date -label_com_labsynch_labseer_domain_lot_meltingpoint=Melting Point -label_com_labsynch_labseer_domain_lot_minsynthesisdate=Min Synthesis Date -label_com_labsynch_labseer_domain_lot_modifiedby=Modified By -label_com_labsynch_labseer_domain_lot_modifieddate=Modified Date -label_com_labsynch_labseer_domain_lot_notebookpage=Notebook Page -label_com_labsynch_labseer_domain_lot_observedmassone=Observed Mass One -label_com_labsynch_labseer_domain_lot_observedmasstwo=Observed Mass Two -label_com_labsynch_labseer_domain_lot_parent=Parent -label_com_labsynch_labseer_domain_lot_percentee=Percent E E -label_com_labsynch_labseer_domain_lot_physicalstate=Physical State -label_com_labsynch_labseer_domain_lot_plural=Lots -label_com_labsynch_labseer_domain_lot_project=Project -label_com_labsynch_labseer_domain_lot_purity=Purity -label_com_labsynch_labseer_domain_lot_puritymeasuredby=Purity Measured By -label_com_labsynch_labseer_domain_lot_purityoperator=Purity Operator -label_com_labsynch_labseer_domain_lot_registeredby=Registered By -label_com_labsynch_labseer_domain_lot_registrationdate=Registration Date -label_com_labsynch_labseer_domain_lot_retain=Retain -label_com_labsynch_labseer_domain_lot_retainlocation=Retain Location -label_com_labsynch_labseer_domain_lot_retainunits=Retain Units -label_com_labsynch_labseer_domain_lot_saltform=Salt Form -label_com_labsynch_labseer_domain_lot_solutionamount=Solution Amount -label_com_labsynch_labseer_domain_lot_solutionamountunits=Solution Amount Units -label_com_labsynch_labseer_domain_lot_stocklocation=Stock Location -label_com_labsynch_labseer_domain_lot_stocksolvent=Stock Solvent -label_com_labsynch_labseer_domain_lot_storagelocation=Storage Location -label_com_labsynch_labseer_domain_lot_supplier=Supplier -label_com_labsynch_labseer_domain_lot_supplierid=Supplier I D -label_com_labsynch_labseer_domain_lot_supplierlot=Supplier Lot -label_com_labsynch_labseer_domain_lot_synthesisdate=Synthesis Date -label_com_labsynch_labseer_domain_lot_tareweight=Tare Weight -label_com_labsynch_labseer_domain_lot_tareweightunits=Tare Weight Units -label_com_labsynch_labseer_domain_lot_totalamountstored=Total Amount Stored -label_com_labsynch_labseer_domain_lot_totalamountstoredunits=Total Amount Stored Units -label_com_labsynch_labseer_domain_lot_vendor=Vendor -label_com_labsynch_labseer_domain_lot_vendorid=Vendor I D -label_com_labsynch_labseer_domain_lot_version=Version -label_com_labsynch_labseer_domain_lotalias=Lot Alias -label_com_labsynch_labseer_domain_lotalias_aliasname=Alias Name -label_com_labsynch_labseer_domain_lotalias_deleted=Deleted -label_com_labsynch_labseer_domain_lotalias_id=Id -label_com_labsynch_labseer_domain_lotalias_ignored=Ignored -label_com_labsynch_labseer_domain_lotalias_lot=Lot -label_com_labsynch_labseer_domain_lotalias_lskind=Ls Kind -label_com_labsynch_labseer_domain_lotalias_lstype=Ls Type -label_com_labsynch_labseer_domain_lotalias_plural=Lot Aliases -label_com_labsynch_labseer_domain_lotalias_preferred=Preferred -label_com_labsynch_labseer_domain_lotalias_version=Version -label_com_labsynch_labseer_domain_lotaliaskind=Lot Alias Kind -label_com_labsynch_labseer_domain_lotaliaskind_id=Id -label_com_labsynch_labseer_domain_lotaliaskind_kindname=Kind Name -label_com_labsynch_labseer_domain_lotaliaskind_lstype=Ls Type -label_com_labsynch_labseer_domain_lotaliaskind_plural=Lot Alias Kinds -label_com_labsynch_labseer_domain_lotaliaskind_version=Version -label_com_labsynch_labseer_domain_lotaliastype=Lot Alias Type -label_com_labsynch_labseer_domain_lotaliastype_id=Id -label_com_labsynch_labseer_domain_lotaliastype_plural=Lot Alias Types -label_com_labsynch_labseer_domain_lotaliastype_typename=Type Name -label_com_labsynch_labseer_domain_lotaliastype_version=Version -label_com_labsynch_labseer_domain_lsinteraction=Ls Interaction -label_com_labsynch_labseer_domain_lsinteraction_codename=Code Name -label_com_labsynch_labseer_domain_lsinteraction_deleted=Deleted -label_com_labsynch_labseer_domain_lsinteraction_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_lsinteraction_firstthing=First Thing -label_com_labsynch_labseer_domain_lsinteraction_id=Id -label_com_labsynch_labseer_domain_lsinteraction_ignored=Ignored -label_com_labsynch_labseer_domain_lsinteraction_interactionkind=Interaction Kind -label_com_labsynch_labseer_domain_lsinteraction_interactiontype=Interaction Type -label_com_labsynch_labseer_domain_lsinteraction_interactiontypeandkind=Interaction Type And Kind -label_com_labsynch_labseer_domain_lsinteraction_itxkind=Itx Kind -label_com_labsynch_labseer_domain_lsinteraction_itxtype=Itx Type -label_com_labsynch_labseer_domain_lsinteraction_itxtypeandkind=Itx Type And Kind -label_com_labsynch_labseer_domain_lsinteraction_kind=Kind -label_com_labsynch_labseer_domain_lsinteraction_lskind=Ls Kind -label_com_labsynch_labseer_domain_lsinteraction_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_lsinteraction_lstype=Ls Type -label_com_labsynch_labseer_domain_lsinteraction_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_lsinteraction_modifiedby=Modified By -label_com_labsynch_labseer_domain_lsinteraction_modifieddate=Modified Date -label_com_labsynch_labseer_domain_lsinteraction_plural=Ls Interactions -label_com_labsynch_labseer_domain_lsinteraction_recordedby=Recorded By -label_com_labsynch_labseer_domain_lsinteraction_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_lsinteraction_secondthing=Second Thing -label_com_labsynch_labseer_domain_lsinteraction_thingpage=Thing Page -label_com_labsynch_labseer_domain_lsinteraction_version=Version -label_com_labsynch_labseer_domain_lsrole=Ls Role -label_com_labsynch_labseer_domain_lsrole_authorroles=Author Roles -label_com_labsynch_labseer_domain_lsrole_id=Id -label_com_labsynch_labseer_domain_lsrole_lskind=Ls Kind -label_com_labsynch_labseer_domain_lsrole_lstype=Ls Type -label_com_labsynch_labseer_domain_lsrole_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_lsrole_plural=Ls Roles -label_com_labsynch_labseer_domain_lsrole_roledescription=Role Description -label_com_labsynch_labseer_domain_lsrole_rolename=Role Name -label_com_labsynch_labseer_domain_lsrole_version=Version -label_com_labsynch_labseer_domain_lstag=Ls Tag -label_com_labsynch_labseer_domain_lstag_experiments=Experiments -label_com_labsynch_labseer_domain_lstag_id=Id -label_com_labsynch_labseer_domain_lstag_lsthings=Ls Things -label_com_labsynch_labseer_domain_lstag_plural=Ls Tags -label_com_labsynch_labseer_domain_lstag_protocols=Protocols -label_com_labsynch_labseer_domain_lstag_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_lstag_tagtext=Tag Text -label_com_labsynch_labseer_domain_lstag_version=Version -label_com_labsynch_labseer_domain_lsthing=Ls Thing -label_com_labsynch_labseer_domain_lsthing_codename=Code Name -label_com_labsynch_labseer_domain_lsthing_deleted=Deleted -label_com_labsynch_labseer_domain_lsthing_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_lsthing_firstlsthings=First Ls Things -label_com_labsynch_labseer_domain_lsthing_id=Id -label_com_labsynch_labseer_domain_lsthing_ignored=Ignored -label_com_labsynch_labseer_domain_lsthing_lskind=Ls Kind -label_com_labsynch_labseer_domain_lsthing_lslabels=Ls Labels -label_com_labsynch_labseer_domain_lsthing_lsstates=Ls States -label_com_labsynch_labseer_domain_lsthing_lstags=Ls Tags -label_com_labsynch_labseer_domain_lsthing_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_lsthing_lstype=Ls Type -label_com_labsynch_labseer_domain_lsthing_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_lsthing_modifiedby=Modified By -label_com_labsynch_labseer_domain_lsthing_modifieddate=Modified Date -label_com_labsynch_labseer_domain_lsthing_plural=Ls Things -label_com_labsynch_labseer_domain_lsthing_recordedby=Recorded By -label_com_labsynch_labseer_domain_lsthing_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_lsthing_secondlsthings=Second Ls Things -label_com_labsynch_labseer_domain_lsthing_thingpage=Thing Page -label_com_labsynch_labseer_domain_lsthing_version=Version -label_com_labsynch_labseer_domain_lsthinglabel=Ls Thing Label -label_com_labsynch_labseer_domain_lsthinglabel_deleted=Deleted -label_com_labsynch_labseer_domain_lsthinglabel_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_lsthinglabel_id=Id -label_com_labsynch_labseer_domain_lsthinglabel_ignored=Ignored -label_com_labsynch_labseer_domain_lsthinglabel_imagefile=Image File -label_com_labsynch_labseer_domain_lsthinglabel_labeltext=Label Text -label_com_labsynch_labseer_domain_lsthinglabel_lskind=Ls Kind -label_com_labsynch_labseer_domain_lsthinglabel_lsthing=Ls Thing -label_com_labsynch_labseer_domain_lsthinglabel_lsthingtypeandkind=Ls Thing Type And Kind -label_com_labsynch_labseer_domain_lsthinglabel_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_lsthinglabel_lstype=Ls Type -label_com_labsynch_labseer_domain_lsthinglabel_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_lsthinglabel_modifieddate=Modified Date -label_com_labsynch_labseer_domain_lsthinglabel_physicallylabled=Physically Labled -label_com_labsynch_labseer_domain_lsthinglabel_plural=Ls Thing Labels -label_com_labsynch_labseer_domain_lsthinglabel_preferred=Preferred -label_com_labsynch_labseer_domain_lsthinglabel_recordedby=Recorded By -label_com_labsynch_labseer_domain_lsthinglabel_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_lsthinglabel_version=Version -label_com_labsynch_labseer_domain_lsthingstate=Ls Thing State -label_com_labsynch_labseer_domain_lsthingstate_comments=Comments -label_com_labsynch_labseer_domain_lsthingstate_deleted=Deleted -label_com_labsynch_labseer_domain_lsthingstate_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_lsthingstate_id=Id -label_com_labsynch_labseer_domain_lsthingstate_ignored=Ignored -label_com_labsynch_labseer_domain_lsthingstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_lsthingstate_lsthing=Ls Thing -label_com_labsynch_labseer_domain_lsthingstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_lsthingstate_lstype=Ls Type -label_com_labsynch_labseer_domain_lsthingstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_lsthingstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_lsthingstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_lsthingstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_lsthingstate_plural=Ls Thing States -label_com_labsynch_labseer_domain_lsthingstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_lsthingstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_lsthingstate_version=Version -label_com_labsynch_labseer_domain_lsthingvalue=Ls Thing Value -label_com_labsynch_labseer_domain_lsthingvalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_lsthingvalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_lsthingvalue_codekind=Code Kind -label_com_labsynch_labseer_domain_lsthingvalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_lsthingvalue_codetype=Code Type -label_com_labsynch_labseer_domain_lsthingvalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_lsthingvalue_codevalue=Code Value -label_com_labsynch_labseer_domain_lsthingvalue_comments=Comments -label_com_labsynch_labseer_domain_lsthingvalue_concentration=Concentration -label_com_labsynch_labseer_domain_lsthingvalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_lsthingvalue_datevalue=Date Value -label_com_labsynch_labseer_domain_lsthingvalue_deleted=Deleted -label_com_labsynch_labseer_domain_lsthingvalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_lsthingvalue_filevalue=File Value -label_com_labsynch_labseer_domain_lsthingvalue_id=Id -label_com_labsynch_labseer_domain_lsthingvalue_ignored=Ignored -label_com_labsynch_labseer_domain_lsthingvalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_lsthingvalue_lsstate=Ls State -label_com_labsynch_labseer_domain_lsthingvalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_lsthingvalue_lstype=Ls Type -label_com_labsynch_labseer_domain_lsthingvalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_lsthingvalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_lsthingvalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_lsthingvalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_lsthingvalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_lsthingvalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_lsthingvalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_lsthingvalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_lsthingvalue_plural=Ls Thing Values -label_com_labsynch_labseer_domain_lsthingvalue_publicdata=Public Data -label_com_labsynch_labseer_domain_lsthingvalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_lsthingvalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_lsthingvalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_lsthingvalue_stringvalue=String Value -label_com_labsynch_labseer_domain_lsthingvalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_lsthingvalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_lsthingvalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_lsthingvalue_unittype=Unit Type -label_com_labsynch_labseer_domain_lsthingvalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_lsthingvalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_lsthingvalue_version=Version -label_com_labsynch_labseer_domain_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_lstransaction_comments=Comments -label_com_labsynch_labseer_domain_lstransaction_id=Id -label_com_labsynch_labseer_domain_lstransaction_plural=Ls Transactions -label_com_labsynch_labseer_domain_lstransaction_recordedby=Recorded By -label_com_labsynch_labseer_domain_lstransaction_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_lstransaction_status=Status -label_com_labsynch_labseer_domain_lstransaction_type=Type -label_com_labsynch_labseer_domain_lstransaction_version=Version -label_com_labsynch_labseer_domain_operator=Operator -label_com_labsynch_labseer_domain_operator_code=Code -label_com_labsynch_labseer_domain_operator_id=Id -label_com_labsynch_labseer_domain_operator_name=Name -label_com_labsynch_labseer_domain_operator_plural=Operators -label_com_labsynch_labseer_domain_operator_version=Version -label_com_labsynch_labseer_domain_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_operatorkind_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_operatorkind_id=Id -label_com_labsynch_labseer_domain_operatorkind_kindname=Kind Name -label_com_labsynch_labseer_domain_operatorkind_lstype=Ls Type -label_com_labsynch_labseer_domain_operatorkind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_operatorkind_plural=Operator Kinds -label_com_labsynch_labseer_domain_operatorkind_version=Version -label_com_labsynch_labseer_domain_operatortype=Operator Type -label_com_labsynch_labseer_domain_operatortype_id=Id -label_com_labsynch_labseer_domain_operatortype_plural=Operator Types -label_com_labsynch_labseer_domain_operatortype_typename=Type Name -label_com_labsynch_labseer_domain_operatortype_version=Version -label_com_labsynch_labseer_domain_parent=Parent -label_com_labsynch_labseer_domain_parent_bulkloadfile=Bulk Load File -label_com_labsynch_labseer_domain_parent_cdid=Cd Id -label_com_labsynch_labseer_domain_parent_chemist=Chemist -label_com_labsynch_labseer_domain_parent_comment=Comment -label_com_labsynch_labseer_domain_parent_commonname=Common Name -label_com_labsynch_labseer_domain_parent_compoundtype=Compound Type -label_com_labsynch_labseer_domain_parent_corpname=Corp Name -label_com_labsynch_labseer_domain_parent_exactmass=Exact Mass -label_com_labsynch_labseer_domain_parent_id=Id -label_com_labsynch_labseer_domain_parent_ignore=Ignore -label_com_labsynch_labseer_domain_parent_ismixture=Is Mixture -label_com_labsynch_labseer_domain_parent_labelprefix=Label Prefix -label_com_labsynch_labseer_domain_parent_modifiedby=Modified By -label_com_labsynch_labseer_domain_parent_modifieddate=Modified Date -label_com_labsynch_labseer_domain_parent_molformula=Mol Formula -label_com_labsynch_labseer_domain_parent_molstructure=Mol Structure -label_com_labsynch_labseer_domain_parent_molweight=Mol Weight -label_com_labsynch_labseer_domain_parent_parentaliases=Parent Aliases -label_com_labsynch_labseer_domain_parent_parentannotation=Parent Annotation -label_com_labsynch_labseer_domain_parent_parentnumber=Parent Number -label_com_labsynch_labseer_domain_parent_plural=Parents -label_com_labsynch_labseer_domain_parent_registeredby=Registered By -label_com_labsynch_labseer_domain_parent_registrationdate=Registration Date -label_com_labsynch_labseer_domain_parent_saltforms=Salt Forms -label_com_labsynch_labseer_domain_parent_stereocategory=Stereo Category -label_com_labsynch_labseer_domain_parent_stereocomment=Stereo Comment -label_com_labsynch_labseer_domain_parent_version=Version -label_com_labsynch_labseer_domain_parentalias=Parent Alias -label_com_labsynch_labseer_domain_parentalias_aliasname=Alias Name -label_com_labsynch_labseer_domain_parentalias_deleted=Deleted -label_com_labsynch_labseer_domain_parentalias_id=Id -label_com_labsynch_labseer_domain_parentalias_ignored=Ignored -label_com_labsynch_labseer_domain_parentalias_lskind=Ls Kind -label_com_labsynch_labseer_domain_parentalias_lstype=Ls Type -label_com_labsynch_labseer_domain_parentalias_parent=Parent -label_com_labsynch_labseer_domain_parentalias_plural=Parent Aliases -label_com_labsynch_labseer_domain_parentalias_preferred=Preferred -label_com_labsynch_labseer_domain_parentalias_sortid=Sort Id -label_com_labsynch_labseer_domain_parentalias_version=Version -label_com_labsynch_labseer_domain_parentaliaskind=Parent Alias Kind -label_com_labsynch_labseer_domain_parentaliaskind_id=Id -label_com_labsynch_labseer_domain_parentaliaskind_kindname=Kind Name -label_com_labsynch_labseer_domain_parentaliaskind_lstype=Ls Type -label_com_labsynch_labseer_domain_parentaliaskind_plural=Parent Alias Kinds -label_com_labsynch_labseer_domain_parentaliaskind_version=Version -label_com_labsynch_labseer_domain_parentaliastype=Parent Alias Type -label_com_labsynch_labseer_domain_parentaliastype_id=Id -label_com_labsynch_labseer_domain_parentaliastype_plural=Parent Alias Types -label_com_labsynch_labseer_domain_parentaliastype_typename=Type Name -label_com_labsynch_labseer_domain_parentaliastype_version=Version -label_com_labsynch_labseer_domain_parentannotation=Parent Annotation -label_com_labsynch_labseer_domain_parentannotation_code=Code -label_com_labsynch_labseer_domain_parentannotation_comment=Comment -label_com_labsynch_labseer_domain_parentannotation_displayorder=Display Order -label_com_labsynch_labseer_domain_parentannotation_id=Id -label_com_labsynch_labseer_domain_parentannotation_name=Name -label_com_labsynch_labseer_domain_parentannotation_plural=Parent Annotations -label_com_labsynch_labseer_domain_parentannotation_version=Version -label_com_labsynch_labseer_domain_physicalstate=Physical State -label_com_labsynch_labseer_domain_physicalstate_code=Code -label_com_labsynch_labseer_domain_physicalstate_id=Id -label_com_labsynch_labseer_domain_physicalstate_name=Name -label_com_labsynch_labseer_domain_physicalstate_plural=Physical States -label_com_labsynch_labseer_domain_physicalstate_version=Version -label_com_labsynch_labseer_domain_predef_corpname=Pre Def_ Corp Name -label_com_labsynch_labseer_domain_predef_corpname_comment=Comment -label_com_labsynch_labseer_domain_predef_corpname_corpname=Corp Name -label_com_labsynch_labseer_domain_predef_corpname_corpnumber=Corp Number -label_com_labsynch_labseer_domain_predef_corpname_id=Id -label_com_labsynch_labseer_domain_predef_corpname_plural=Pre Def_ Corp Names -label_com_labsynch_labseer_domain_predef_corpname_skip=Skip -label_com_labsynch_labseer_domain_predef_corpname_used=Used -label_com_labsynch_labseer_domain_predef_corpname_version=Version -label_com_labsynch_labseer_domain_project=Project -label_com_labsynch_labseer_domain_project_code=Code -label_com_labsynch_labseer_domain_project_id=Id -label_com_labsynch_labseer_domain_project_name=Name -label_com_labsynch_labseer_domain_project_plural=Projects -label_com_labsynch_labseer_domain_project_version=Version -label_com_labsynch_labseer_domain_protocol=Protocol -label_com_labsynch_labseer_domain_protocol_codename=Code Name -label_com_labsynch_labseer_domain_protocol_deleted=Deleted -label_com_labsynch_labseer_domain_protocol_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_protocol_experiments=Experiments -label_com_labsynch_labseer_domain_protocol_firstprotocols=First Protocols -label_com_labsynch_labseer_domain_protocol_id=Id -label_com_labsynch_labseer_domain_protocol_ignored=Ignored -label_com_labsynch_labseer_domain_protocol_kind=Kind -label_com_labsynch_labseer_domain_protocol_lskind=Ls Kind -label_com_labsynch_labseer_domain_protocol_lslabels=Ls Labels -label_com_labsynch_labseer_domain_protocol_lsstates=Ls States -label_com_labsynch_labseer_domain_protocol_lstags=Ls Tags -label_com_labsynch_labseer_domain_protocol_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_protocol_lstype=Ls Type -label_com_labsynch_labseer_domain_protocol_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_protocol_modifiedby=Modified By -label_com_labsynch_labseer_domain_protocol_modifieddate=Modified Date -label_com_labsynch_labseer_domain_protocol_plural=Protocols -label_com_labsynch_labseer_domain_protocol_protocol=Protocol -label_com_labsynch_labseer_domain_protocol_protocolkind=Protocol Kind -label_com_labsynch_labseer_domain_protocol_protocollabels=Protocol Labels -label_com_labsynch_labseer_domain_protocol_protocolstates=Protocol States -label_com_labsynch_labseer_domain_protocol_protocoltags=Protocol Tags -label_com_labsynch_labseer_domain_protocol_protocoltype=Protocol Type -label_com_labsynch_labseer_domain_protocol_protocoltypeandkind=Protocol Type And Kind -label_com_labsynch_labseer_domain_protocol_recordedby=Recorded By -label_com_labsynch_labseer_domain_protocol_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_protocol_secondprotocols=Second Protocols -label_com_labsynch_labseer_domain_protocol_shortdescription=Short Description -label_com_labsynch_labseer_domain_protocol_thingpage=Thing Page -label_com_labsynch_labseer_domain_protocol_version=Version -label_com_labsynch_labseer_domain_protocolkind=Protocol Kind -label_com_labsynch_labseer_domain_protocolkind_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_protocolkind_id=Id -label_com_labsynch_labseer_domain_protocolkind_kindname=Kind Name -label_com_labsynch_labseer_domain_protocolkind_lstype=Ls Type -label_com_labsynch_labseer_domain_protocolkind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_protocolkind_plural=Protocol Kinds -label_com_labsynch_labseer_domain_protocolkind_version=Version -label_com_labsynch_labseer_domain_protocollabel=Protocol Label -label_com_labsynch_labseer_domain_protocollabel_deleted=Deleted -label_com_labsynch_labseer_domain_protocollabel_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_protocollabel_id=Id -label_com_labsynch_labseer_domain_protocollabel_ignored=Ignored -label_com_labsynch_labseer_domain_protocollabel_imagefile=Image File -label_com_labsynch_labseer_domain_protocollabel_imgagefile=Imgage File -label_com_labsynch_labseer_domain_protocollabel_labelkind=Label Kind -label_com_labsynch_labseer_domain_protocollabel_labeltext=Label Text -label_com_labsynch_labseer_domain_protocollabel_labeltype=Label Type -label_com_labsynch_labseer_domain_protocollabel_labeltypeandkind=Label Type And Kind -label_com_labsynch_labseer_domain_protocollabel_labelvalue=Label Value -label_com_labsynch_labseer_domain_protocollabel_lskind=Ls Kind -label_com_labsynch_labseer_domain_protocollabel_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_protocollabel_lstype=Ls Type -label_com_labsynch_labseer_domain_protocollabel_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_protocollabel_modifieddate=Modified Date -label_com_labsynch_labseer_domain_protocollabel_physicallylabled=Physically Labled -label_com_labsynch_labseer_domain_protocollabel_plural=Protocol Labels -label_com_labsynch_labseer_domain_protocollabel_preferred=Preferred -label_com_labsynch_labseer_domain_protocollabel_protocol=Protocol -label_com_labsynch_labseer_domain_protocollabel_recordedby=Recorded By -label_com_labsynch_labseer_domain_protocollabel_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_protocollabel_version=Version -label_com_labsynch_labseer_domain_protocolstate=Protocol State -label_com_labsynch_labseer_domain_protocolstate_comments=Comments -label_com_labsynch_labseer_domain_protocolstate_deleted=Deleted -label_com_labsynch_labseer_domain_protocolstate_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_protocolstate_id=Id -label_com_labsynch_labseer_domain_protocolstate_ignored=Ignored -label_com_labsynch_labseer_domain_protocolstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_protocolstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_protocolstate_lstype=Ls Type -label_com_labsynch_labseer_domain_protocolstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_protocolstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_protocolstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_protocolstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_protocolstate_plural=Protocol States -label_com_labsynch_labseer_domain_protocolstate_protocol=Protocol -label_com_labsynch_labseer_domain_protocolstate_protocolvalues=Protocol Values -label_com_labsynch_labseer_domain_protocolstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_protocolstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_protocolstate_statekind=State Kind -label_com_labsynch_labseer_domain_protocolstate_statetype=State Type -label_com_labsynch_labseer_domain_protocolstate_statetypeandkind=State Type And Kind -label_com_labsynch_labseer_domain_protocolstate_version=Version -label_com_labsynch_labseer_domain_protocoltype=Protocol Type -label_com_labsynch_labseer_domain_protocoltype_id=Id -label_com_labsynch_labseer_domain_protocoltype_plural=Protocol Types -label_com_labsynch_labseer_domain_protocoltype_typename=Type Name -label_com_labsynch_labseer_domain_protocoltype_version=Version -label_com_labsynch_labseer_domain_protocolvalue=Protocol Value -label_com_labsynch_labseer_domain_protocolvalue_batchcode=Batch Code -label_com_labsynch_labseer_domain_protocolvalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_protocolvalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_protocolvalue_codekind=Code Kind -label_com_labsynch_labseer_domain_protocolvalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_protocolvalue_codetype=Code Type -label_com_labsynch_labseer_domain_protocolvalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_protocolvalue_codevalue=Code Value -label_com_labsynch_labseer_domain_protocolvalue_comments=Comments -label_com_labsynch_labseer_domain_protocolvalue_concentration=Concentration -label_com_labsynch_labseer_domain_protocolvalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_protocolvalue_concvalue=Conc Value -label_com_labsynch_labseer_domain_protocolvalue_datevalue=Date Value -label_com_labsynch_labseer_domain_protocolvalue_deleted=Deleted -label_com_labsynch_labseer_domain_protocolvalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_protocolvalue_filevalue=File Value -label_com_labsynch_labseer_domain_protocolvalue_id=Id -label_com_labsynch_labseer_domain_protocolvalue_ignored=Ignored -label_com_labsynch_labseer_domain_protocolvalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_protocolvalue_lsstate=Ls State -label_com_labsynch_labseer_domain_protocolvalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_protocolvalue_lstype=Ls Type -label_com_labsynch_labseer_domain_protocolvalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_protocolvalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_protocolvalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_protocolvalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_protocolvalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_protocolvalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_protocolvalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_protocolvalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_protocolvalue_plural=Protocol Values -label_com_labsynch_labseer_domain_protocolvalue_protocolstate=Protocol State -label_com_labsynch_labseer_domain_protocolvalue_publicdata=Public Data -label_com_labsynch_labseer_domain_protocolvalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_protocolvalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_protocolvalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_protocolvalue_stringvalue=String Value -label_com_labsynch_labseer_domain_protocolvalue_temp=Temp -label_com_labsynch_labseer_domain_protocolvalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_protocolvalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_protocolvalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_protocolvalue_unittype=Unit Type -label_com_labsynch_labseer_domain_protocolvalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_protocolvalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_protocolvalue_valuekind=Value Kind -label_com_labsynch_labseer_domain_protocolvalue_valueoperator=Value Operator -label_com_labsynch_labseer_domain_protocolvalue_valuetype=Value Type -label_com_labsynch_labseer_domain_protocolvalue_valuetypeandkind=Value Type And Kind -label_com_labsynch_labseer_domain_protocolvalue_valueunit=Value Unit -label_com_labsynch_labseer_domain_protocolvalue_version=Version -label_com_labsynch_labseer_domain_puritymeasuredby=Purity Measured By -label_com_labsynch_labseer_domain_puritymeasuredby_code=Code -label_com_labsynch_labseer_domain_puritymeasuredby_id=Id -label_com_labsynch_labseer_domain_puritymeasuredby_name=Name -label_com_labsynch_labseer_domain_puritymeasuredby_plural=Purity Measured Bys -label_com_labsynch_labseer_domain_puritymeasuredby_version=Version -label_com_labsynch_labseer_domain_qccompound=Qc Compound -label_com_labsynch_labseer_domain_qccompound_alias=Alias -label_com_labsynch_labseer_domain_qccompound_cdid=Cd Id -label_com_labsynch_labseer_domain_qccompound_comment=Comment -label_com_labsynch_labseer_domain_qccompound_corpname=Corp Name -label_com_labsynch_labseer_domain_qccompound_displaychange=Display Change -label_com_labsynch_labseer_domain_qccompound_dupecorpname=Dupe Corp Name -label_com_labsynch_labseer_domain_qccompound_dupecount=Dupe Count -label_com_labsynch_labseer_domain_qccompound_id=Id -label_com_labsynch_labseer_domain_qccompound_ignore=Ignore -label_com_labsynch_labseer_domain_qccompound_molstructure=Mol Structure -label_com_labsynch_labseer_domain_qccompound_parentid=Parent Id -label_com_labsynch_labseer_domain_qccompound_plural=Qc Compounds -label_com_labsynch_labseer_domain_qccompound_qcdate=Qc Date -label_com_labsynch_labseer_domain_qccompound_runnumber=Run Number -label_com_labsynch_labseer_domain_qccompound_stereocategory=Stereo Category -label_com_labsynch_labseer_domain_qccompound_stereocomment=Stereo Comment -label_com_labsynch_labseer_domain_qccompound_version=Version -label_com_labsynch_labseer_domain_role=Role -label_com_labsynch_labseer_domain_role_id=Id -label_com_labsynch_labseer_domain_role_plural=Roles -label_com_labsynch_labseer_domain_role_roledescription=Role Description -label_com_labsynch_labseer_domain_role_rolename=Role Name -label_com_labsynch_labseer_domain_role_version=Version -label_com_labsynch_labseer_domain_rolekind=Role Kind -label_com_labsynch_labseer_domain_rolekind_id=Id -label_com_labsynch_labseer_domain_rolekind_kindname=Kind Name -label_com_labsynch_labseer_domain_rolekind_lstype=Ls Type -label_com_labsynch_labseer_domain_rolekind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_rolekind_plural=Role Kinds -label_com_labsynch_labseer_domain_rolekind_version=Version -label_com_labsynch_labseer_domain_roletype=Role Type -label_com_labsynch_labseer_domain_roletype_id=Id -label_com_labsynch_labseer_domain_roletype_plural=Role Types -label_com_labsynch_labseer_domain_roletype_typename=Type Name -label_com_labsynch_labseer_domain_roletype_version=Version -label_com_labsynch_labseer_domain_salt=Salt -label_com_labsynch_labseer_domain_salt_abbrev=Abbrev -label_com_labsynch_labseer_domain_salt_cdid=Cd Id -label_com_labsynch_labseer_domain_salt_charge=Charge -label_com_labsynch_labseer_domain_salt_formula=Formula -label_com_labsynch_labseer_domain_salt_id=Id -label_com_labsynch_labseer_domain_salt_ignore=Ignore -label_com_labsynch_labseer_domain_salt_molstructure=Mol Structure -label_com_labsynch_labseer_domain_salt_molweight=Mol Weight -label_com_labsynch_labseer_domain_salt_name=Name -label_com_labsynch_labseer_domain_salt_originalstructure=Original Structure -label_com_labsynch_labseer_domain_salt_plural=Salts -label_com_labsynch_labseer_domain_salt_version=Version -label_com_labsynch_labseer_domain_saltform=Salt Form -label_com_labsynch_labseer_domain_saltform_author=Author -label_com_labsynch_labseer_domain_saltform_bulkloadfile=Bulk Load File -label_com_labsynch_labseer_domain_saltform_casnumber=Cas Number -label_com_labsynch_labseer_domain_saltform_cdid=Cd Id -label_com_labsynch_labseer_domain_saltform_chemist=Chemist -label_com_labsynch_labseer_domain_saltform_corpname=Corp Name -label_com_labsynch_labseer_domain_saltform_id=Id -label_com_labsynch_labseer_domain_saltform_ignore=Ignore -label_com_labsynch_labseer_domain_saltform_isosalts=Iso Salts -label_com_labsynch_labseer_domain_saltform_lots=Lots -label_com_labsynch_labseer_domain_saltform_molstructure=Mol Structure -label_com_labsynch_labseer_domain_saltform_parent=Parent -label_com_labsynch_labseer_domain_saltform_plural=Salt Forms -label_com_labsynch_labseer_domain_saltform_registrationdate=Registration Date -label_com_labsynch_labseer_domain_saltform_saltweight=Salt Weight -label_com_labsynch_labseer_domain_saltform_version=Version -label_com_labsynch_labseer_domain_saltformalias=Salt Form Alias -label_com_labsynch_labseer_domain_saltformalias_aliasname=Alias Name -label_com_labsynch_labseer_domain_saltformalias_deleted=Deleted -label_com_labsynch_labseer_domain_saltformalias_id=Id -label_com_labsynch_labseer_domain_saltformalias_ignored=Ignored -label_com_labsynch_labseer_domain_saltformalias_lskind=Ls Kind -label_com_labsynch_labseer_domain_saltformalias_lstype=Ls Type -label_com_labsynch_labseer_domain_saltformalias_plural=Salt Form Aliases -label_com_labsynch_labseer_domain_saltformalias_preferred=Preferred -label_com_labsynch_labseer_domain_saltformalias_saltform=Salt Form -label_com_labsynch_labseer_domain_saltformalias_version=Version -label_com_labsynch_labseer_domain_saltformaliaskind=Salt Form Alias Kind -label_com_labsynch_labseer_domain_saltformaliaskind_id=Id -label_com_labsynch_labseer_domain_saltformaliaskind_kindname=Kind Name -label_com_labsynch_labseer_domain_saltformaliaskind_lstype=Ls Type -label_com_labsynch_labseer_domain_saltformaliaskind_plural=Salt Form Alias Kinds -label_com_labsynch_labseer_domain_saltformaliaskind_version=Version -label_com_labsynch_labseer_domain_saltformaliastype=Salt Form Alias Type -label_com_labsynch_labseer_domain_saltformaliastype_id=Id -label_com_labsynch_labseer_domain_saltformaliastype_plural=Salt Form Alias Types -label_com_labsynch_labseer_domain_saltformaliastype_typename=Type Name -label_com_labsynch_labseer_domain_saltformaliastype_version=Version -label_com_labsynch_labseer_domain_scientist=Scientist -label_com_labsynch_labseer_domain_scientist_code=Code -label_com_labsynch_labseer_domain_scientist_id=Id -label_com_labsynch_labseer_domain_scientist_ignore=Ignore -label_com_labsynch_labseer_domain_scientist_isadmin=Is Admin -label_com_labsynch_labseer_domain_scientist_ischemist=Is Chemist -label_com_labsynch_labseer_domain_scientist_name=Name -label_com_labsynch_labseer_domain_scientist_plural=Scientists -label_com_labsynch_labseer_domain_scientist_version=Version -label_com_labsynch_labseer_domain_solutionunit=Solution Unit -label_com_labsynch_labseer_domain_solutionunit_code=Code -label_com_labsynch_labseer_domain_solutionunit_id=Id -label_com_labsynch_labseer_domain_solutionunit_name=Name -label_com_labsynch_labseer_domain_solutionunit_plural=Solution Units -label_com_labsynch_labseer_domain_solutionunit_version=Version -label_com_labsynch_labseer_domain_statekind=State Kind -label_com_labsynch_labseer_domain_statekind_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_statekind_id=Id -label_com_labsynch_labseer_domain_statekind_kindname=Kind Name -label_com_labsynch_labseer_domain_statekind_lstype=Ls Type -label_com_labsynch_labseer_domain_statekind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_statekind_plural=State Kinds -label_com_labsynch_labseer_domain_statekind_statetype=State Type -label_com_labsynch_labseer_domain_statekind_typeandkind=Type And Kind -label_com_labsynch_labseer_domain_statekind_version=Version -label_com_labsynch_labseer_domain_statetype=State Type -label_com_labsynch_labseer_domain_statetype_id=Id -label_com_labsynch_labseer_domain_statetype_plural=State Types -label_com_labsynch_labseer_domain_statetype_typename=Type Name -label_com_labsynch_labseer_domain_statetype_version=Version -label_com_labsynch_labseer_domain_stereocategory=Stereo Category -label_com_labsynch_labseer_domain_stereocategory_code=Code -label_com_labsynch_labseer_domain_stereocategory_id=Id -label_com_labsynch_labseer_domain_stereocategory_name=Name -label_com_labsynch_labseer_domain_stereocategory_plural=Stereo Categorys -label_com_labsynch_labseer_domain_stereocategory_version=Version -label_com_labsynch_labseer_domain_structurekind=Structure Kind -label_com_labsynch_labseer_domain_structurekind_id=Id -label_com_labsynch_labseer_domain_structurekind_kindname=Kind Name -label_com_labsynch_labseer_domain_structurekind_lstype=Ls Type -label_com_labsynch_labseer_domain_structurekind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_structurekind_plural=Structure Kinds -label_com_labsynch_labseer_domain_structurekind_version=Version -label_com_labsynch_labseer_domain_structuretype=Structure Type -label_com_labsynch_labseer_domain_structuretype_id=Id -label_com_labsynch_labseer_domain_structuretype_plural=Structure Types -label_com_labsynch_labseer_domain_structuretype_typename=Type Name -label_com_labsynch_labseer_domain_structuretype_version=Version -label_com_labsynch_labseer_domain_subject=Subject -label_com_labsynch_labseer_domain_subject_codename=Code Name -label_com_labsynch_labseer_domain_subject_containers=Containers -label_com_labsynch_labseer_domain_subject_deleted=Deleted -label_com_labsynch_labseer_domain_subject_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_subject_id=Id -label_com_labsynch_labseer_domain_subject_ignored=Ignored -label_com_labsynch_labseer_domain_subject_kind=Kind -label_com_labsynch_labseer_domain_subject_lskind=Ls Kind -label_com_labsynch_labseer_domain_subject_lslabels=Ls Labels -label_com_labsynch_labseer_domain_subject_lsstates=Ls States -label_com_labsynch_labseer_domain_subject_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_subject_lstype=Ls Type -label_com_labsynch_labseer_domain_subject_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_subject_modifiedby=Modified By -label_com_labsynch_labseer_domain_subject_modifieddate=Modified Date -label_com_labsynch_labseer_domain_subject_plural=Subjects -label_com_labsynch_labseer_domain_subject_recordedby=Recorded By -label_com_labsynch_labseer_domain_subject_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_subject_subjectlabels=Subject Labels -label_com_labsynch_labseer_domain_subject_subjectstates=Subject States -label_com_labsynch_labseer_domain_subject_thingpage=Thing Page -label_com_labsynch_labseer_domain_subject_treatmentgroup=Treatment Group -label_com_labsynch_labseer_domain_subject_treatmentgroups=Treatment Groups -label_com_labsynch_labseer_domain_subject_version=Version -label_com_labsynch_labseer_domain_subjectlabel=Subject Label -label_com_labsynch_labseer_domain_subjectlabel_deleted=Deleted -label_com_labsynch_labseer_domain_subjectlabel_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_subjectlabel_id=Id -label_com_labsynch_labseer_domain_subjectlabel_ignored=Ignored -label_com_labsynch_labseer_domain_subjectlabel_imagefile=Image File -label_com_labsynch_labseer_domain_subjectlabel_labelkind=Label Kind -label_com_labsynch_labseer_domain_subjectlabel_labeltext=Label Text -label_com_labsynch_labseer_domain_subjectlabel_labeltype=Label Type -label_com_labsynch_labseer_domain_subjectlabel_labeltypeandkind=Label Type And Kind -label_com_labsynch_labseer_domain_subjectlabel_lskind=Ls Kind -label_com_labsynch_labseer_domain_subjectlabel_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_subjectlabel_lstype=Ls Type -label_com_labsynch_labseer_domain_subjectlabel_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_subjectlabel_modifieddate=Modified Date -label_com_labsynch_labseer_domain_subjectlabel_physicallylabled=Physically Labled -label_com_labsynch_labseer_domain_subjectlabel_plural=Subject Labels -label_com_labsynch_labseer_domain_subjectlabel_preferred=Preferred -label_com_labsynch_labseer_domain_subjectlabel_recordedby=Recorded By -label_com_labsynch_labseer_domain_subjectlabel_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_subjectlabel_subject=Subject -label_com_labsynch_labseer_domain_subjectlabel_version=Version -label_com_labsynch_labseer_domain_subjectstate=Subject State -label_com_labsynch_labseer_domain_subjectstate_comments=Comments -label_com_labsynch_labseer_domain_subjectstate_deleted=Deleted -label_com_labsynch_labseer_domain_subjectstate_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_subjectstate_id=Id -label_com_labsynch_labseer_domain_subjectstate_ignored=Ignored -label_com_labsynch_labseer_domain_subjectstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_subjectstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_subjectstate_lstype=Ls Type -label_com_labsynch_labseer_domain_subjectstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_subjectstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_subjectstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_subjectstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_subjectstate_plural=Subject States -label_com_labsynch_labseer_domain_subjectstate_propertiesutilservice=Properties Util Service -label_com_labsynch_labseer_domain_subjectstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_subjectstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_subjectstate_statekind=State Kind -label_com_labsynch_labseer_domain_subjectstate_statetype=State Type -label_com_labsynch_labseer_domain_subjectstate_statetypeandkind=State Type And Kind -label_com_labsynch_labseer_domain_subjectstate_subject=Subject -label_com_labsynch_labseer_domain_subjectstate_subjectvalues=Subject Values -label_com_labsynch_labseer_domain_subjectstate_version=Version -label_com_labsynch_labseer_domain_subjectvalue=Subject Value -label_com_labsynch_labseer_domain_subjectvalue_batchcode=Batch Code -label_com_labsynch_labseer_domain_subjectvalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_subjectvalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_subjectvalue_codekind=Code Kind -label_com_labsynch_labseer_domain_subjectvalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_subjectvalue_codetype=Code Type -label_com_labsynch_labseer_domain_subjectvalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_subjectvalue_codevalue=Code Value -label_com_labsynch_labseer_domain_subjectvalue_comments=Comments -label_com_labsynch_labseer_domain_subjectvalue_concentration=Concentration -label_com_labsynch_labseer_domain_subjectvalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_subjectvalue_concvalue=Conc Value -label_com_labsynch_labseer_domain_subjectvalue_datevalue=Date Value -label_com_labsynch_labseer_domain_subjectvalue_deleted=Deleted -label_com_labsynch_labseer_domain_subjectvalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_subjectvalue_filevalue=File Value -label_com_labsynch_labseer_domain_subjectvalue_id=Id -label_com_labsynch_labseer_domain_subjectvalue_ignored=Ignored -label_com_labsynch_labseer_domain_subjectvalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_subjectvalue_lsstate=Ls State -label_com_labsynch_labseer_domain_subjectvalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_subjectvalue_lstype=Ls Type -label_com_labsynch_labseer_domain_subjectvalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_subjectvalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_subjectvalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_subjectvalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_subjectvalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_subjectvalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_subjectvalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_subjectvalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_subjectvalue_plural=Subject Values -label_com_labsynch_labseer_domain_subjectvalue_propertiesutilservice=Properties Util Service -label_com_labsynch_labseer_domain_subjectvalue_publicdata=Public Data -label_com_labsynch_labseer_domain_subjectvalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_subjectvalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_subjectvalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_subjectvalue_stringvalue=String Value -label_com_labsynch_labseer_domain_subjectvalue_subjectstate=Subject State -label_com_labsynch_labseer_domain_subjectvalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_subjectvalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_subjectvalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_subjectvalue_unittype=Unit Type -label_com_labsynch_labseer_domain_subjectvalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_subjectvalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_subjectvalue_valuekind=Value Kind -label_com_labsynch_labseer_domain_subjectvalue_valueoperator=Value Operator -label_com_labsynch_labseer_domain_subjectvalue_valuetype=Value Type -label_com_labsynch_labseer_domain_subjectvalue_valuetypeandkind=Value Type And Kind -label_com_labsynch_labseer_domain_subjectvalue_valueunit=Value Unit -label_com_labsynch_labseer_domain_subjectvalue_version=Version -label_com_labsynch_labseer_domain_tempselecttable=Temp Select Table -label_com_labsynch_labseer_domain_tempselecttable_id=Id -label_com_labsynch_labseer_domain_tempselecttable_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_tempselecttable_numbervar=Number Var -label_com_labsynch_labseer_domain_tempselecttable_plural=Temp Select Tables -label_com_labsynch_labseer_domain_tempselecttable_recordedby=Recorded By -label_com_labsynch_labseer_domain_tempselecttable_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_tempselecttable_stringvar=String Var -label_com_labsynch_labseer_domain_tempselecttable_version=Version -label_com_labsynch_labseer_domain_thingkind=Thing Kind -label_com_labsynch_labseer_domain_thingkind_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_thingkind_id=Id -label_com_labsynch_labseer_domain_thingkind_kindname=Kind Name -label_com_labsynch_labseer_domain_thingkind_lstype=Ls Type -label_com_labsynch_labseer_domain_thingkind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_thingkind_plural=Thing Kinds -label_com_labsynch_labseer_domain_thingkind_thingtype=Thing Type -label_com_labsynch_labseer_domain_thingkind_typeandkind=Type And Kind -label_com_labsynch_labseer_domain_thingkind_version=Version -label_com_labsynch_labseer_domain_thingpage=Thing Page -label_com_labsynch_labseer_domain_thingpage_archived=Archived -label_com_labsynch_labseer_domain_thingpage_currenteditor=Current Editor -label_com_labsynch_labseer_domain_thingpage_id=Id -label_com_labsynch_labseer_domain_thingpage_ignored=Ignored -label_com_labsynch_labseer_domain_thingpage_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_thingpage_modifiedby=Modified By -label_com_labsynch_labseer_domain_thingpage_modifieddate=Modified Date -label_com_labsynch_labseer_domain_thingpage_pagecontent=Page Content -label_com_labsynch_labseer_domain_thingpage_pagename=Page Name -label_com_labsynch_labseer_domain_thingpage_plural=Thing Pages -label_com_labsynch_labseer_domain_thingpage_recordedby=Recorded By -label_com_labsynch_labseer_domain_thingpage_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_thingpage_thing=Thing -label_com_labsynch_labseer_domain_thingpage_version=Version -label_com_labsynch_labseer_domain_thingpagearchive=Thing Page Archive -label_com_labsynch_labseer_domain_thingpagearchive_archived=Archived -label_com_labsynch_labseer_domain_thingpagearchive_currenteditor=Current Editor -label_com_labsynch_labseer_domain_thingpagearchive_id=Id -label_com_labsynch_labseer_domain_thingpagearchive_ignored=Ignored -label_com_labsynch_labseer_domain_thingpagearchive_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_thingpagearchive_modifiedby=Modified By -label_com_labsynch_labseer_domain_thingpagearchive_modifieddate=Modified Date -label_com_labsynch_labseer_domain_thingpagearchive_pagecontent=Page Content -label_com_labsynch_labseer_domain_thingpagearchive_pagename=Page Name -label_com_labsynch_labseer_domain_thingpagearchive_pageversion=Page Version -label_com_labsynch_labseer_domain_thingpagearchive_plural=Thing Page Archives -label_com_labsynch_labseer_domain_thingpagearchive_recordedby=Recorded By -label_com_labsynch_labseer_domain_thingpagearchive_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_thingpagearchive_thing=Thing -label_com_labsynch_labseer_domain_thingpagearchive_version=Version -label_com_labsynch_labseer_domain_thingtype=Thing Type -label_com_labsynch_labseer_domain_thingtype_id=Id -label_com_labsynch_labseer_domain_thingtype_plural=Thing Types -label_com_labsynch_labseer_domain_thingtype_typename=Type Name -label_com_labsynch_labseer_domain_thingtype_version=Version -label_com_labsynch_labseer_domain_treatmentgroup=Treatment Group -label_com_labsynch_labseer_domain_treatmentgroup_analysisgroup=Analysis Group -label_com_labsynch_labseer_domain_treatmentgroup_analysisgroups=Analysis Groups -label_com_labsynch_labseer_domain_treatmentgroup_codename=Code Name -label_com_labsynch_labseer_domain_treatmentgroup_deleted=Deleted -label_com_labsynch_labseer_domain_treatmentgroup_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_treatmentgroup_id=Id -label_com_labsynch_labseer_domain_treatmentgroup_ignored=Ignored -label_com_labsynch_labseer_domain_treatmentgroup_kind=Kind -label_com_labsynch_labseer_domain_treatmentgroup_lskind=Ls Kind -label_com_labsynch_labseer_domain_treatmentgroup_lslabels=Ls Labels -label_com_labsynch_labseer_domain_treatmentgroup_lsstates=Ls States -label_com_labsynch_labseer_domain_treatmentgroup_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_treatmentgroup_lstype=Ls Type -label_com_labsynch_labseer_domain_treatmentgroup_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_treatmentgroup_modifiedby=Modified By -label_com_labsynch_labseer_domain_treatmentgroup_modifieddate=Modified Date -label_com_labsynch_labseer_domain_treatmentgroup_plural=Treatment Groups -label_com_labsynch_labseer_domain_treatmentgroup_recordedby=Recorded By -label_com_labsynch_labseer_domain_treatmentgroup_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_treatmentgroup_subjects=Subjects -label_com_labsynch_labseer_domain_treatmentgroup_thingpage=Thing Page -label_com_labsynch_labseer_domain_treatmentgroup_treatmentgrouplabels=Treatment Group Labels -label_com_labsynch_labseer_domain_treatmentgroup_treatmentgroups=Treatment Groups -label_com_labsynch_labseer_domain_treatmentgroup_treatmentgroupstates=Treatment Group States -label_com_labsynch_labseer_domain_treatmentgroup_version=Version -label_com_labsynch_labseer_domain_treatmentgrouplabel=Treatment Group Label -label_com_labsynch_labseer_domain_treatmentgrouplabel_deleted=Deleted -label_com_labsynch_labseer_domain_treatmentgrouplabel_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_treatmentgrouplabel_id=Id -label_com_labsynch_labseer_domain_treatmentgrouplabel_ignored=Ignored -label_com_labsynch_labseer_domain_treatmentgrouplabel_imagefile=Image File -label_com_labsynch_labseer_domain_treatmentgrouplabel_labelkind=Label Kind -label_com_labsynch_labseer_domain_treatmentgrouplabel_labeltext=Label Text -label_com_labsynch_labseer_domain_treatmentgrouplabel_labeltype=Label Type -label_com_labsynch_labseer_domain_treatmentgrouplabel_labeltypeandkind=Label Type And Kind -label_com_labsynch_labseer_domain_treatmentgrouplabel_lskind=Ls Kind -label_com_labsynch_labseer_domain_treatmentgrouplabel_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_treatmentgrouplabel_lstype=Ls Type -label_com_labsynch_labseer_domain_treatmentgrouplabel_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_treatmentgrouplabel_modifieddate=Modified Date -label_com_labsynch_labseer_domain_treatmentgrouplabel_physicallylabled=Physically Labled -label_com_labsynch_labseer_domain_treatmentgrouplabel_plural=Treatment Group Labels -label_com_labsynch_labseer_domain_treatmentgrouplabel_preferred=Preferred -label_com_labsynch_labseer_domain_treatmentgrouplabel_recordedby=Recorded By -label_com_labsynch_labseer_domain_treatmentgrouplabel_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_treatmentgrouplabel_treatmentgroup=Treatment Group -label_com_labsynch_labseer_domain_treatmentgrouplabel_version=Version -label_com_labsynch_labseer_domain_treatmentgroupstate=Treatment Group State -label_com_labsynch_labseer_domain_treatmentgroupstate_batchsize=Batch Size -label_com_labsynch_labseer_domain_treatmentgroupstate_comments=Comments -label_com_labsynch_labseer_domain_treatmentgroupstate_deleted=Deleted -label_com_labsynch_labseer_domain_treatmentgroupstate_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_treatmentgroupstate_id=Id -label_com_labsynch_labseer_domain_treatmentgroupstate_ignored=Ignored -label_com_labsynch_labseer_domain_treatmentgroupstate_lskind=Ls Kind -label_com_labsynch_labseer_domain_treatmentgroupstate_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_treatmentgroupstate_lstype=Ls Type -label_com_labsynch_labseer_domain_treatmentgroupstate_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_treatmentgroupstate_lsvalues=Ls Values -label_com_labsynch_labseer_domain_treatmentgroupstate_modifiedby=Modified By -label_com_labsynch_labseer_domain_treatmentgroupstate_modifieddate=Modified Date -label_com_labsynch_labseer_domain_treatmentgroupstate_plural=Treatment Group States -label_com_labsynch_labseer_domain_treatmentgroupstate_propertiesutilservice=Properties Util Service -label_com_labsynch_labseer_domain_treatmentgroupstate_recordedby=Recorded By -label_com_labsynch_labseer_domain_treatmentgroupstate_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_treatmentgroupstate_statekind=State Kind -label_com_labsynch_labseer_domain_treatmentgroupstate_statetype=State Type -label_com_labsynch_labseer_domain_treatmentgroupstate_statetypeandkind=State Type And Kind -label_com_labsynch_labseer_domain_treatmentgroupstate_treatmentgroup=Treatment Group -label_com_labsynch_labseer_domain_treatmentgroupstate_treatmentgroupvalues=Treatment Group Values -label_com_labsynch_labseer_domain_treatmentgroupstate_version=Version -label_com_labsynch_labseer_domain_treatmentgroupvalue=Treatment Group Value -label_com_labsynch_labseer_domain_treatmentgroupvalue_batchcode=Batch Code -label_com_labsynch_labseer_domain_treatmentgroupvalue_blobvalue=Blob Value -label_com_labsynch_labseer_domain_treatmentgroupvalue_clobvalue=Clob Value -label_com_labsynch_labseer_domain_treatmentgroupvalue_codekind=Code Kind -label_com_labsynch_labseer_domain_treatmentgroupvalue_codeorigin=Code Origin -label_com_labsynch_labseer_domain_treatmentgroupvalue_codetype=Code Type -label_com_labsynch_labseer_domain_treatmentgroupvalue_codetypeandkind=Code Type And Kind -label_com_labsynch_labseer_domain_treatmentgroupvalue_codevalue=Code Value -label_com_labsynch_labseer_domain_treatmentgroupvalue_comments=Comments -label_com_labsynch_labseer_domain_treatmentgroupvalue_concentration=Concentration -label_com_labsynch_labseer_domain_treatmentgroupvalue_concunit=Conc Unit -label_com_labsynch_labseer_domain_treatmentgroupvalue_concvalue=Conc Value -label_com_labsynch_labseer_domain_treatmentgroupvalue_datevalue=Date Value -label_com_labsynch_labseer_domain_treatmentgroupvalue_deleted=Deleted -label_com_labsynch_labseer_domain_treatmentgroupvalue_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_treatmentgroupvalue_filevalue=File Value -label_com_labsynch_labseer_domain_treatmentgroupvalue_id=Id -label_com_labsynch_labseer_domain_treatmentgroupvalue_ignored=Ignored -label_com_labsynch_labseer_domain_treatmentgroupvalue_lskind=Ls Kind -label_com_labsynch_labseer_domain_treatmentgroupvalue_lsstate=Ls State -label_com_labsynch_labseer_domain_treatmentgroupvalue_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_treatmentgroupvalue_lstype=Ls Type -label_com_labsynch_labseer_domain_treatmentgroupvalue_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_treatmentgroupvalue_modifiedby=Modified By -label_com_labsynch_labseer_domain_treatmentgroupvalue_modifieddate=Modified Date -label_com_labsynch_labseer_domain_treatmentgroupvalue_numberofreplicates=Number Of Replicates -label_com_labsynch_labseer_domain_treatmentgroupvalue_numericvalue=Numeric Value -label_com_labsynch_labseer_domain_treatmentgroupvalue_operatorkind=Operator Kind -label_com_labsynch_labseer_domain_treatmentgroupvalue_operatortype=Operator Type -label_com_labsynch_labseer_domain_treatmentgroupvalue_operatortypeandkind=Operator Type And Kind -label_com_labsynch_labseer_domain_treatmentgroupvalue_plural=Treatment Group Values -label_com_labsynch_labseer_domain_treatmentgroupvalue_propertiesutilservice=Properties Util Service -label_com_labsynch_labseer_domain_treatmentgroupvalue_publicdata=Public Data -label_com_labsynch_labseer_domain_treatmentgroupvalue_recordedby=Recorded By -label_com_labsynch_labseer_domain_treatmentgroupvalue_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_treatmentgroupvalue_sigfigs=Sig Figs -label_com_labsynch_labseer_domain_treatmentgroupvalue_stringvalue=String Value -label_com_labsynch_labseer_domain_treatmentgroupvalue_treatmentgroupstate=Treatment Group State -label_com_labsynch_labseer_domain_treatmentgroupvalue_uncertainty=Uncertainty -label_com_labsynch_labseer_domain_treatmentgroupvalue_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_treatmentgroupvalue_unitkind=Unit Kind -label_com_labsynch_labseer_domain_treatmentgroupvalue_unittype=Unit Type -label_com_labsynch_labseer_domain_treatmentgroupvalue_unittypeandkind=Unit Type And Kind -label_com_labsynch_labseer_domain_treatmentgroupvalue_urlvalue=Url Value -label_com_labsynch_labseer_domain_treatmentgroupvalue_valuekind=Value Kind -label_com_labsynch_labseer_domain_treatmentgroupvalue_valueoperator=Value Operator -label_com_labsynch_labseer_domain_treatmentgroupvalue_valuetype=Value Type -label_com_labsynch_labseer_domain_treatmentgroupvalue_valuetypeandkind=Value Type And Kind -label_com_labsynch_labseer_domain_treatmentgroupvalue_valueunit=Value Unit -label_com_labsynch_labseer_domain_treatmentgroupvalue_version=Version -label_com_labsynch_labseer_domain_uncertaintykind=Uncertainty Kind -label_com_labsynch_labseer_domain_uncertaintykind_id=Id -label_com_labsynch_labseer_domain_uncertaintykind_kindname=Kind Name -label_com_labsynch_labseer_domain_uncertaintykind_plural=Uncertainty Kinds -label_com_labsynch_labseer_domain_uncertaintykind_typename=Type Name -label_com_labsynch_labseer_domain_uncertaintykind_version=Version -label_com_labsynch_labseer_domain_uncertaintytype=Uncertainty Type -label_com_labsynch_labseer_domain_uncertaintytype_id=Id -label_com_labsynch_labseer_domain_uncertaintytype_plural=Uncertainty Types -label_com_labsynch_labseer_domain_uncertaintytype_typename=Type Name -label_com_labsynch_labseer_domain_uncertaintytype_version=Version -label_com_labsynch_labseer_domain_unit=Unit -label_com_labsynch_labseer_domain_unit_code=Code -label_com_labsynch_labseer_domain_unit_id=Id -label_com_labsynch_labseer_domain_unit_name=Name -label_com_labsynch_labseer_domain_unit_plural=Units -label_com_labsynch_labseer_domain_unit_version=Version -label_com_labsynch_labseer_domain_unitkind=Unit Kind -label_com_labsynch_labseer_domain_unitkind_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_unitkind_id=Id -label_com_labsynch_labseer_domain_unitkind_kindname=Kind Name -label_com_labsynch_labseer_domain_unitkind_lstype=Ls Type -label_com_labsynch_labseer_domain_unitkind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_unitkind_plural=Unit Kinds -label_com_labsynch_labseer_domain_unitkind_typeandkind=Type And Kind -label_com_labsynch_labseer_domain_unitkind_unittype=Unit Type -label_com_labsynch_labseer_domain_unitkind_version=Version -label_com_labsynch_labseer_domain_unittype=Unit Type -label_com_labsynch_labseer_domain_unittype_id=Id -label_com_labsynch_labseer_domain_unittype_plural=Unit Types -label_com_labsynch_labseer_domain_unittype_typename=Type Name -label_com_labsynch_labseer_domain_unittype_version=Version -label_com_labsynch_labseer_domain_updatelog=Update Log -label_com_labsynch_labseer_domain_updatelog_comments=Comments -label_com_labsynch_labseer_domain_updatelog_id=Id -label_com_labsynch_labseer_domain_updatelog_lstransaction=Ls Transaction -label_com_labsynch_labseer_domain_updatelog_plural=Update Logs -label_com_labsynch_labseer_domain_updatelog_recordedby=Recorded By -label_com_labsynch_labseer_domain_updatelog_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_updatelog_thing=Thing -label_com_labsynch_labseer_domain_updatelog_updateaction=Update Action -label_com_labsynch_labseer_domain_updatelog_version=Version -label_com_labsynch_labseer_domain_user=User -label_com_labsynch_labseer_domain_user_activationdate=Activation Date -label_com_labsynch_labseer_domain_user_activationkey=Activation Key -label_com_labsynch_labseer_domain_user_email=Email -label_com_labsynch_labseer_domain_user_emailaddress=Email Address -label_com_labsynch_labseer_domain_user_enabled=Enabled -label_com_labsynch_labseer_domain_user_firstname=First Name -label_com_labsynch_labseer_domain_user_id=Id -label_com_labsynch_labseer_domain_user_lastname=Last Name -label_com_labsynch_labseer_domain_user_locked=Locked -label_com_labsynch_labseer_domain_user_modifieddate=Modified Date -label_com_labsynch_labseer_domain_user_password=Password -label_com_labsynch_labseer_domain_user_plural=Users -label_com_labsynch_labseer_domain_user_recordeddate=Recorded Date -label_com_labsynch_labseer_domain_user_username=User Name -label_com_labsynch_labseer_domain_user_version=Version -label_com_labsynch_labseer_domain_userrole=User Role -label_com_labsynch_labseer_domain_userrole_id=Id -label_com_labsynch_labseer_domain_userrole_plural=User Roles -label_com_labsynch_labseer_domain_userrole_roleentry=Role Entry -label_com_labsynch_labseer_domain_userrole_userentry=User Entry -label_com_labsynch_labseer_domain_userrole_version=Version -label_com_labsynch_labseer_domain_valuekind=Value Kind -label_com_labsynch_labseer_domain_valuekind_entitymanager=Entity Manager -label_com_labsynch_labseer_domain_valuekind_id=Id -label_com_labsynch_labseer_domain_valuekind_kindname=Kind Name -label_com_labsynch_labseer_domain_valuekind_lstype=Ls Type -label_com_labsynch_labseer_domain_valuekind_lstypeandkind=Ls Type And Kind -label_com_labsynch_labseer_domain_valuekind_plural=Value Kinds -label_com_labsynch_labseer_domain_valuekind_typeandkind=Type And Kind -label_com_labsynch_labseer_domain_valuekind_valuetype=Value Type -label_com_labsynch_labseer_domain_valuekind_version=Version -label_com_labsynch_labseer_domain_valuetype=Value Type -label_com_labsynch_labseer_domain_valuetype_id=Id -label_com_labsynch_labseer_domain_valuetype_plural=Value Types -label_com_labsynch_labseer_domain_valuetype_typename=Type Name -label_com_labsynch_labseer_domain_valuetype_version=Version -label_com_labsynch_labseer_domain_vendor=Vendor -label_com_labsynch_labseer_domain_vendor_code=Code -label_com_labsynch_labseer_domain_vendor_id=Id -label_com_labsynch_labseer_domain_vendor_name=Name -label_com_labsynch_labseer_domain_vendor_plural=Vendors -label_com_labsynch_labseer_domain_vendor_version=Version -label_com_labsynch_labseer_service_saltloader=Salt Loader -label_com_labsynch_labseer_service_saltloader_description=Description -label_com_labsynch_labseer_service_saltloader_file=File -label_com_labsynch_labseer_service_saltloader_filename=File Name -label_com_labsynch_labseer_service_saltloader_id=Id -label_com_labsynch_labseer_service_saltloader_loadeddate=Loaded Date -label_com_labsynch_labseer_service_saltloader_name=Name -label_com_labsynch_labseer_service_saltloader_numberofsalts=Number Of Salts -label_com_labsynch_labseer_service_saltloader_plural=Salt Loaders -label_com_labsynch_labseer_service_saltloader_size=Size -label_com_labsynch_labseer_service_saltloader_uploaded=Uploaded -label_com_labsynch_labseer_service_saltloader_version=Version -label_lot_index=Lot Controller View -label_rolekind_index=Role Kind Controller View -label_roletype_index=Role Type Controller View -menu_category_analysisgroup_label=Analysis Group -menu_category_analysisgrouplabel_label=Analysis Group Label -menu_category_analysisgroupstate_label=Analysis Group State -menu_category_analysisgroupvalue_label=Analysis Group Value -menu_category_applicationsetting_label=Application Setting -menu_category_author_label=Author -menu_category_authorlabel_label=Author Label -menu_category_authorold_label=Author Old -menu_category_authorrole_label=Author Role -menu_category_authorstate_label=Author State -menu_category_authorvalue_label=Author Value -menu_category_bulkloadfile_label=Bulk Load File -menu_category_bulkloadtemplate_label=Bulk Load Template -menu_category_chemstructure_label=Chem Structure -menu_category_cmpdregappsetting_label=Cmpd Reg App Setting -menu_category_codekind_label=Code Kind -menu_category_codeorigin_label=Code Origin -menu_category_codetype_label=Code Type -menu_category_compound_label=Compound -menu_category_compoundtype_label=Compound Type -menu_category_container_label=Container -menu_category_containerkind_label=Container Kind -menu_category_containerlabel_label=Container Label -menu_category_containerstate_label=Container State -menu_category_containertype_label=Container Type -menu_category_containervalue_label=Container Value -menu_category_controller_label=Controller -menu_category_corpname_label=Corp Name -menu_category_cronjob_label=Cron Job -menu_category_ddictkind_label=D Dict Kind -menu_category_ddicttype_label=D Dict Type -menu_category_ddictvalue_label=D Dict Value -menu_category_experiment_label=Experiment -menu_category_experimentkind_label=Experiment Kind -menu_category_experimentlabel_label=Experiment Label -menu_category_experimentstate_label=Experiment State -menu_category_experimenttype_label=Experiment Type -menu_category_experimentvalue_label=Experiment Value -menu_category_filelist_label=File List -menu_category_filething_label=File Thing -menu_category_filetype_label=File Type -menu_category_interactionkind_label=Interaction Kind -menu_category_interactiontype_label=Interaction Type -menu_category_isosalt_label=Iso Salt -menu_category_isotope_label=Isotope -menu_category_itxcontainercontainer_label=Itx Container Container -menu_category_itxcontainercontainerstate_label=Itx Container Container State -menu_category_itxcontainercontainervalue_label=Itx Container Container Value -menu_category_itxexperimentexperiment_label=Itx Experiment Experiment -menu_category_itxexperimentexperimentstate_label=Itx Experiment Experiment State -menu_category_itxexperimentexperimentvalue_label=Itx Experiment Experiment Value -menu_category_itxlsthinglsthing_label=Itx Ls Thing Ls Thing -menu_category_itxlsthinglsthingstate_label=Itx Ls Thing Ls Thing State -menu_category_itxlsthinglsthingvalue_label=Itx Ls Thing Ls Thing Value -menu_category_itxprotocolprotocol_label=Itx Protocol Protocol -menu_category_itxprotocolprotocolstate_label=Itx Protocol Protocol State -menu_category_itxprotocolprotocolvalue_label=Itx Protocol Protocol Value -menu_category_itxsubjectcontainer_label=Itx Subject Container -menu_category_itxsubjectcontainerstate_label=Itx Subject Container State -menu_category_itxsubjectcontainervalue_label=Itx Subject Container Value -menu_category_labelkind_label=Label Kind -menu_category_labelsequence_label=Label Sequence -menu_category_labelsequencerole_label=Label Sequence Role -menu_category_labeltype_label=Label Type -menu_category_lot_label=Lot -menu_category_lotalias_label=Lot Alias -menu_category_lotaliaskind_label=Lot Alias Kind -menu_category_lotaliastype_label=Lot Alias Type -menu_category_lsinteraction_label=Ls Interaction -menu_category_lsrole_label=Ls Role -menu_category_lstag_label=Ls Tag -menu_category_lsthing_label=Ls Thing -menu_category_lsthinglabel_label=Ls Thing Label -menu_category_lsthingstate_label=Ls Thing State -menu_category_lsthingvalue_label=Ls Thing Value -menu_category_lstransaction_label=Ls Transaction -menu_category_operator_label=Operator -menu_category_operatorkind_label=Operator Kind -menu_category_operatortype_label=Operator Type -menu_category_parent_label=Parent -menu_category_parentalias_label=Parent Alias -menu_category_parentaliaskind_label=Parent Alias Kind -menu_category_parentaliastype_label=Parent Alias Type -menu_category_parentannotation_label=Parent Annotation -menu_category_physicalstate_label=Physical State -menu_category_predef_corpname_label=Pre Def_ Corp Name -menu_category_project_label=Project -menu_category_protocol_label=Protocol -menu_category_protocolkind_label=Protocol Kind -menu_category_protocollabel_label=Protocol Label -menu_category_protocolstate_label=Protocol State -menu_category_protocoltype_label=Protocol Type -menu_category_protocolvalue_label=Protocol Value -menu_category_puritymeasuredby_label=Purity Measured By -menu_category_qccompound_label=Qc Compound -menu_category_role_label=Role -menu_category_rolekind_label=Role Kinds -menu_category_roletype_label=Role Type -menu_category_salt_label=Salt -menu_category_saltform_label=Salt Form -menu_category_saltformalias_label=Salt Form Alias -menu_category_saltformaliaskind_label=Salt Form Alias Kind -menu_category_saltformaliastype_label=Salt Form Alias Type -menu_category_saltloader_label=Salt Loader -menu_category_scientist_label=Scientist -menu_category_solutionunit_label=Solution Unit -menu_category_statekind_label=State Kind -menu_category_statetype_label=State Type -menu_category_stereocategory_label=Stereo Category -menu_category_structurekind_label=Structure Kind -menu_category_structuretype_label=Structure Type -menu_category_subject_label=Subject -menu_category_subjectlabel_label=Subject Label -menu_category_subjectstate_label=Subject State -menu_category_subjectvalue_label=Subject Value -menu_category_tempselecttable_label=Temp Select Table -menu_category_thingkind_label=Thing Kind -menu_category_thingpage_label=Thing Page -menu_category_thingpagearchive_label=Thing Page Archive -menu_category_thingtype_label=Thing Type -menu_category_treatmentgroup_label=Treatment Group -menu_category_treatmentgrouplabel_label=Treatment Group Label -menu_category_treatmentgroupstate_label=Treatment Group State -menu_category_treatmentgroupvalue_label=Treatment Group Value -menu_category_uncertaintykind_label=Uncertainty Kind -menu_category_uncertaintytype_label=Uncertainty Type -menu_category_unit_label=Unit -menu_category_unitkind_label=Unit Kind -menu_category_unittype_label=Unit Type -menu_category_updatelog_label=Update Log -menu_category_user_label=User -menu_category_userrole_label=User Role -menu_category_valuekind_label=Value Kind -menu_category_valuetype_label=Value Type -menu_category_vendor_label=Vendor -menu_item_analysisgroup_experiment_label=Experiment -menu_item_analysisgroup_experiments_label=Experiments -menu_item_analysisgroup_experimentsandignorednot_label=Experiments And Ignored Not -menu_item_analysisgroup_list_label=Analysis Groups -menu_item_analysisgroup_lstransactionequals_label=Ls Transaction Equals -menu_item_analysisgroup_new_label=Analysis Group -menu_item_analysisgrouplabel_analysisgroup_label=Analysis Group -menu_item_analysisgrouplabel_list_label=Analysis Group Labels -menu_item_analysisgrouplabel_lstransactionequals_label=Ls Transaction Equals -menu_item_analysisgrouplabel_new_label=Analysis Group Label -menu_item_analysisgroupstate_analysisgroup_label=Analysis Group -menu_item_analysisgroupstate_analysisgroupandlstypeequalsandlskindequalsandignorednot_label=Analysis Group And Ls Type Equals And Ls Kind Equals And Ignored Not -menu_item_analysisgroupstate_list_label=Analysis Group States -menu_item_analysisgroupstate_lstransactionequals_label=Ls Transaction Equals -menu_item_analysisgroupstate_lstypeandkindequals_label=Ls Type And Kind Equals -menu_item_analysisgroupstate_lstypeequalsandlskindequals_label=Ls Type Equals And Ls Kind Equals -menu_item_analysisgroupstate_new_label=Analysis Group State -menu_item_analysisgroupvalue_codevalueequals_label=Code Value Equals -menu_item_analysisgroupvalue_ignorednotandcodevalueequals_label=Ignored Not And Code Value Equals -menu_item_analysisgroupvalue_list_label=Analysis Group Values -menu_item_analysisgroupvalue_lsstate_label=Ls State -menu_item_analysisgroupvalue_lstransactionequals_label=Ls Transaction Equals -menu_item_analysisgroupvalue_lstypeequalsandlskindequals_label=Ls Type Equals And Ls Kind Equals -menu_item_analysisgroupvalue_lstypeequalsandlskindequalsandstringvaluelikeandignorednot_label=Ls Type Equals And Ls Kind Equals And String Value Like And Ignored Not -menu_item_analysisgroupvalue_new_label=Analysis Group Value -menu_item_applicationsetting_list_label=Application Settings -menu_item_applicationsetting_new_label=Application Setting -menu_item_applicationsetting_propnameequals_label=Prop Name Equals -menu_item_applicationsetting_propnameequalsandignorednot_label=Prop Name Equals And Ignored Not -menu_item_author_activationkeyandemailaddress_label=Activation Key And Email Address -menu_item_author_emailaddress_label=Email Address -menu_item_author_list_label=Authors -menu_item_author_new_label=Author -menu_item_author_username_label=User Name -menu_item_authorlabel_list_label=Author Labels -menu_item_authorlabel_new_label=Author Label -menu_item_authorold_list_label=Author Olds -menu_item_authorold_new_label=Author Old -menu_item_authorrole_list_label=Author Roles -menu_item_authorrole_new_label=Author Role -menu_item_authorrole_roleentry_label=Role Entry -menu_item_authorrole_roleentryanduserentry_label=Role Entry And User Entry -menu_item_authorrole_userentry_label=User Entry -menu_item_authorstate_list_label=Author States -menu_item_authorstate_new_label=Author State -menu_item_authorvalue_list_label=Author Values -menu_item_authorvalue_new_label=Author Value -menu_item_bulkloadfile_filenameequals_label=File Name Equals -menu_item_bulkloadfile_list_label=Bulk Load Files -menu_item_bulkloadfile_new_label=Bulk Load File -menu_item_bulkloadfile_recordedbyequals_label=Recorded By Equals -menu_item_bulkloadtemplate_list_label=Bulk Load Templates -menu_item_bulkloadtemplate_new_label=Bulk Load Template -menu_item_bulkloadtemplate_recordedbyequals_label=Recorded By Equals -menu_item_bulkloadtemplate_templatenameequals_label=Template Name Equals -menu_item_bulkloadtemplate_templatenameequalsandrecordedbyequals_label=Template Name Equals And Recorded By Equals -menu_item_chemstructure_list_label=Chem Structures -menu_item_chemstructure_new_label=Chem Structure -menu_item_cmpdregappsetting_list_label=Cmpd Reg App Settings -menu_item_cmpdregappsetting_new_label=Cmpd Reg App Setting -menu_item_codekind_kindnameequalsandlstype_label=Kind Name Equals And Ls Type -menu_item_codekind_list_label=Code Kinds -menu_item_codekind_lstype_label=Ls Type -menu_item_codekind_lstypeandkindequals_label=Ls Type And Kind Equals -menu_item_codekind_new_label=Code Kind -menu_item_codeorigin_list_label=Code Origins -menu_item_codeorigin_new_label=Code Origin -menu_item_codetype_list_label=Code Types -menu_item_codetype_new_label=Code Type -menu_item_codetype_typenameequals_label=Type Name Equals -menu_item_compound_cdid_label=Cd Id -menu_item_compound_external_idequals_label=External_id Equals -menu_item_compound_list_label=Compounds -menu_item_compound_new_label=Compound -menu_item_compoundtype_codeequals_label=Code Equals -menu_item_compoundtype_list_label=Compound Types -menu_item_compoundtype_new_label=Compound Type -menu_item_container_list_label=Containers -menu_item_container_new_label=Container -menu_item_containerkind_list_label=Container Kinds -menu_item_containerkind_new_label=Container Kind -menu_item_containerlabel_containerandignorednot_label=Container And Ignored Not -menu_item_containerlabel_labeltextequalsandignorednot_label=Label Text Equals And Ignored Not -menu_item_containerlabel_list_label=Container Labels -menu_item_containerlabel_lstransactionequals_label=Ls Transaction Equals -menu_item_containerlabel_lstypeequalsandlabeltextequalsandignorednot_label=Ls Type Equals And Label Text Equals And Ignored Not -menu_item_containerlabel_new_label=Container Label -menu_item_containerstate_container_label=Container -menu_item_containerstate_containerandlskindequalsandignorednot_label=Container And Ls Kind Equals And Ignored Not -menu_item_containerstate_ignorednot_label=Ignored Not -menu_item_containerstate_list_label=Container States -menu_item_containerstate_new_label=Container State -menu_item_containertype_list_label=Container Types -menu_item_containertype_new_label=Container Type -menu_item_containertype_typenameequals_label=Type Name Equals -menu_item_containervalue_ignorednot_label=Ignored Not -menu_item_containervalue_list_label=Container Values -menu_item_containervalue_lsstate_label=Ls State -menu_item_containervalue_new_label=Container Value -menu_item_controller__lotindex_id_label=Lot Controller View -menu_item_controller__rolekindindex_id_label=Role Kind Controller View -menu_item_controller__roletypeindex_id_label=Role Type Controller View -menu_item_corpname_list_label=Corp Names -menu_item_corpname_new_label=Corp Name -menu_item_cronjob_list_label=Cron Jobs -menu_item_cronjob_new_label=Cron Job -menu_item_ddictkind_list_label=D Dict Kinds -menu_item_ddictkind_lstypeequalsandnameequals_label=Ls Type Equals And Name Equals -menu_item_ddictkind_new_label=D Dict Kind -menu_item_ddicttype_list_label=D Dict Types -menu_item_ddicttype_nameequals_label=Name Equals -menu_item_ddicttype_new_label=D Dict Type -menu_item_ddictvalue_codenameequals_label=Code Name Equals -menu_item_ddictvalue_ignorednot_label=Ignored Not -menu_item_ddictvalue_labeltextlike_label=Label Text Like -menu_item_ddictvalue_list_label=D Dict Values -menu_item_ddictvalue_lskindequals_label=Ls Kind Equals -menu_item_ddictvalue_lstypeequals_label=Ls Type Equals -menu_item_ddictvalue_lstypeequalsandlskindequals_label=Ls Type Equals And Ls Kind Equals -menu_item_ddictvalue_lstypeequalsandlskindequalsandshortnameequals_label=Ls Type Equals And Ls Kind Equals And Short Name Equals -menu_item_ddictvalue_new_label=D Dict Value -menu_item_experiment_codenameequals_label=Code Name Equals -menu_item_experiment_codenamelike_label=Code Name Like -menu_item_experiment_list_label=Experiments -menu_item_experiment_lskindequals_label=Ls Kind Equals -menu_item_experiment_lskindlike_label=Ls Kind Like -menu_item_experiment_lstransaction_label=Ls Transaction -menu_item_experiment_lstypeequals_label=Ls Type Equals -menu_item_experiment_lstypeequalsandlskindequals_label=Ls Type Equals And Ls Kind Equals -menu_item_experiment_lstypelike_label=Ls Type Like -menu_item_experiment_new_label=Experiment -menu_item_experiment_protocol_label=Protocol -menu_item_experiment_recordedbylike_label=Recorded By Like -menu_item_experimentkind_list_label=Experiment Kinds -menu_item_experimentkind_new_label=Experiment Kind -menu_item_experimentlabel_experiment_label=Experiment -menu_item_experimentlabel_experimentandignorednot_label=Experiment And Ignored Not -menu_item_experimentlabel_labeltextlike_label=Label Text Like -menu_item_experimentlabel_labeltextlikeandlabeltypeandkindequalsandpreferrednotandignorednot_label=Label Text Like And Label Type And Kind Equals And Preferred Not And Ignored Not -menu_item_experimentlabel_labeltextlikeandlstypeandkindequalsandpreferrednotandignorednot_label=Label Text Like And Ls Type And Kind Equals And Preferred Not And Ignored Not -menu_item_experimentlabel_list_label=Experiment Labels -menu_item_experimentlabel_lstypeandkindequalsandpreferrednotandignorednot_label=Ls Type And Kind Equals And Preferred Not And Ignored Not -menu_item_experimentlabel_new_label=Experiment Label -menu_item_experimentstate_experiment_label=Experiment -menu_item_experimentstate_list_label=Experiment States -menu_item_experimentstate_new_label=Experiment State -menu_item_experimenttype_list_label=Experiment Types -menu_item_experimenttype_new_label=Experiment Type -menu_item_experimenttype_typenameequals_label=Type Name Equals -menu_item_experimentvalue_list_label=Experiment Values -menu_item_experimentvalue_lskindequalsandcodevaluelike_label=Ls Kind Equals And Code Value Like -menu_item_experimentvalue_lskindequalsanddatevalueequals_label=Ls Kind Equals And Date Value Equals -menu_item_experimentvalue_lskindequalsanddatevaluelike_label=Ls Kind Equals And Date Value Like -menu_item_experimentvalue_lskindequalsandstringvaluelike_label=Ls Kind Equals And String Value Like -menu_item_experimentvalue_lsstate_label=Ls State -menu_item_experimentvalue_lsstateandignorednotandlskindequalsandlstypeequalsandstringvalueequals_label=Ls State And Ignored Not And Ls Kind Equals And Ls Type Equals And String Value Equals -menu_item_experimentvalue_new_label=Experiment Value -menu_item_filelist_list_label=File Lists -menu_item_filelist_lot_label=Lot -menu_item_filelist_new_label=File List -menu_item_filelist_urlequals_label=Url Equals -menu_item_filething_list_label=File Things -menu_item_filething_new_label=File Thing -menu_item_filetype_codeequals_label=Code Equals -menu_item_filetype_list_label=File Types -menu_item_filetype_new_label=File Type -menu_item_interactionkind_list_label=Interaction Kinds -menu_item_interactionkind_new_label=Interaction Kind -menu_item_interactiontype_list_label=Interaction Types -menu_item_interactiontype_new_label=Interaction Type -menu_item_isosalt_list_label=Iso Salts -menu_item_isosalt_new_label=Iso Salt -menu_item_isosalt_saltform_label=Salt Form -menu_item_isosalt_saltformandtype_label=Salt Form And Type -menu_item_isotope_abbrevequals_label=Abbrev Equals -menu_item_isotope_abbrevequalsandnameequals_label=Abbrev Equals And Name Equals -menu_item_isotope_list_label=Isotopes -menu_item_isotope_nameequals_label=Name Equals -menu_item_isotope_new_label=Isotope -menu_item_itxcontainercontainer_list_label=Itx Container Containers -menu_item_itxcontainercontainer_lstransactionequals_label=Ls Transaction Equals -menu_item_itxcontainercontainer_lstypeequalsandfirstcontainerequals_label=Ls Type Equals And First Container Equals -menu_item_itxcontainercontainer_lstypeequalsandsecondcontainerequals_label=Ls Type Equals And Second Container Equals -menu_item_itxcontainercontainer_new_label=Itx Container Container -menu_item_itxcontainercontainerstate_list_label=Itx Container Container States -menu_item_itxcontainercontainerstate_new_label=Itx Container Container State -menu_item_itxcontainercontainervalue_list_label=Itx Container Container Values -menu_item_itxcontainercontainervalue_new_label=Itx Container Container Value -menu_item_itxexperimentexperiment_firstexperiment_label=First Experiment -menu_item_itxexperimentexperiment_list_label=Itx Experiment Experiments -menu_item_itxexperimentexperiment_lstransactionequals_label=Ls Transaction Equals -menu_item_itxexperimentexperiment_new_label=Itx Experiment Experiment -menu_item_itxexperimentexperiment_secondexperiment_label=Second Experiment -menu_item_itxexperimentexperimentstate_list_label=Itx Experiment Experiment States -menu_item_itxexperimentexperimentstate_new_label=Itx Experiment Experiment State -menu_item_itxexperimentexperimentvalue_list_label=Itx Experiment Experiment Values -menu_item_itxexperimentexperimentvalue_new_label=Itx Experiment Experiment Value -menu_item_itxlsthinglsthing_codenameequals_label=Code Name Equals -menu_item_itxlsthinglsthing_firstlsthing_label=First Ls Thing -menu_item_itxlsthinglsthing_list_label=Itx Ls Thing Ls Things -menu_item_itxlsthinglsthing_new_label=Itx Ls Thing Ls Thing -menu_item_itxlsthinglsthing_secondlsthing_label=Second Ls Thing -menu_item_itxlsthinglsthingstate_list_label=Itx Ls Thing Ls Thing States -menu_item_itxlsthinglsthingstate_new_label=Itx Ls Thing Ls Thing State -menu_item_itxlsthinglsthingvalue_list_label=Itx Ls Thing Ls Thing Values -menu_item_itxlsthinglsthingvalue_new_label=Itx Ls Thing Ls Thing Value -menu_item_itxprotocolprotocol_firstprotocol_label=First Protocol -menu_item_itxprotocolprotocol_list_label=Itx Protocol Protocols -menu_item_itxprotocolprotocol_lstransactionequals_label=Ls Transaction Equals -menu_item_itxprotocolprotocol_new_label=Itx Protocol Protocol -menu_item_itxprotocolprotocol_secondprotocol_label=Second Protocol -menu_item_itxprotocolprotocolstate_list_label=Itx Protocol Protocol States -menu_item_itxprotocolprotocolstate_new_label=Itx Protocol Protocol State -menu_item_itxprotocolprotocolvalue_list_label=Itx Protocol Protocol Values -menu_item_itxprotocolprotocolvalue_new_label=Itx Protocol Protocol Value -menu_item_itxsubjectcontainer_codenameequals_label=Code Name Equals -menu_item_itxsubjectcontainer_container_label=Container -menu_item_itxsubjectcontainer_list_label=Itx Subject Containers -menu_item_itxsubjectcontainer_lstransactionequals_label=Ls Transaction Equals -menu_item_itxsubjectcontainer_new_label=Itx Subject Container -menu_item_itxsubjectcontainer_subject_label=Subject -menu_item_itxsubjectcontainerstate_list_label=Itx Subject Container States -menu_item_itxsubjectcontainerstate_new_label=Itx Subject Container State -menu_item_itxsubjectcontainervalue_list_label=Itx Subject Container Values -menu_item_itxsubjectcontainervalue_new_label=Itx Subject Container Value -menu_item_labelkind_kindnameequals_label=Kind Name Equals -menu_item_labelkind_kindnameequalsandlstype_label=Kind Name Equals And Ls Type -menu_item_labelkind_list_label=Label Kinds -menu_item_labelkind_lstype_label=Ls Type -menu_item_labelkind_new_label=Label Kind -menu_item_labelsequence_labeltypeandkindequals_label=Label Type And Kind Equals -menu_item_labelsequence_list_label=Label Sequences -menu_item_labelsequence_new_label=Label Sequence -menu_item_labelsequence_thingtypeandkindequals_label=Thing Type And Kind Equals -menu_item_labelsequence_thingtypeandkindequalsandlabeltypeandkindequals_label=Thing Type And Kind Equals And Label Type And Kind Equals -menu_item_labelsequence_thingtypeandkindequalsandlabeltypeandkindequalsandlabelprefixequals_label=Thing Type And Kind Equals And Label Type And Kind Equals And Label Prefix Equals -menu_item_labelsequence_thingtypeequalsandthingkindequalsandlabeltypeequalsandlabelkindequals_label=Thing Type Equals And Thing Kind Equals And Label Type Equals And Label Kind Equals -menu_item_labelsequencerole_list_label=Label Sequence Roles -menu_item_labelsequencerole_new_label=Label Sequence Role -menu_item_labeltype_list_label=Label Types -menu_item_labeltype_new_label=Label Type -menu_item_labeltype_typenameequals_label=Type Name Equals -menu_item_lot_buid_label=Buid -menu_item_lot_bulkloadfileequals_label=Bulk Load File Equals -menu_item_lot_chemistandsynthesisdatebetween_label=Chemist And Synthesis Date Between -menu_item_lot_corpnameequals_label=Corp Name Equals -menu_item_lot_corpnamelike_label=Corp Name Like -menu_item_lot_isvirtualnot_label=Is Virtual Not -menu_item_lot_list_label=Lots -menu_item_lot_new_label=Lot -menu_item_lot_notebookpageequals_label=Notebook Page Equals -menu_item_lot_notebookpageequalsandignorenot_label=Notebook Page Equals And Ignore Not -menu_item_lot_saltform_label=Salt Form -menu_item_lot_synthesisdatebetween_label=Synthesis Date Between -menu_item_lot_synthesisdategreaterthan_label=Synthesis Date Greater Than -menu_item_lot_synthesisdatelessthan_label=Synthesis Date Less Than -menu_item_lotalias_aliasnameequalsandlstypeequalsandlskindequals_label=Alias Name Equals And Ls Type Equals And Ls Kind Equals -menu_item_lotalias_list_label=Lot Aliases -menu_item_lotalias_lot_label=Lot -menu_item_lotalias_lotandlstypeequalsandlskindequals_label=Lot And Ls Type Equals And Ls Kind Equals -menu_item_lotalias_new_label=Lot Alias -menu_item_lotaliaskind_list_label=Lot Alias Kinds -menu_item_lotaliaskind_new_label=Lot Alias Kind -menu_item_lotaliastype_list_label=Lot Alias Types -menu_item_lotaliastype_new_label=Lot Alias Type -menu_item_lsinteraction_list_label=Ls Interactions -menu_item_lsinteraction_new_label=Ls Interaction -menu_item_lsrole_list_label=Ls Roles -menu_item_lsrole_lskindequals_label=Ls Kind Equals -menu_item_lsrole_lstypeequals_label=Ls Type Equals -menu_item_lsrole_lstypeequalsandlskindequals_label=Ls Type Equals And Ls Kind Equals -menu_item_lsrole_lstypeequalsandlskindequalsandrolenameequals_label=Ls Type Equals And Ls Kind Equals And Role Name Equals -menu_item_lsrole_lstypeequalsandrolenameequals_label=Ls Type Equals And Role Name Equals -menu_item_lsrole_new_label=Ls Role -menu_item_lsrole_rolenameequals_label=Role Name Equals -menu_item_lstag_list_label=Ls Tags -menu_item_lstag_new_label=Ls Tag -menu_item_lstag_tagtextequals_label=Tag Text Equals -menu_item_lstag_tagtextlike_label=Tag Text Like -menu_item_lsthing_codenameequals_label=Code Name Equals -menu_item_lsthing_codenamelike_label=Code Name Like -menu_item_lsthing_list_label=Ls Things -menu_item_lsthing_lskindequals_label=Ls Kind Equals -menu_item_lsthing_lskindlike_label=Ls Kind Like -menu_item_lsthing_lstransactionequals_label=Ls Transaction Equals -menu_item_lsthing_lstypeandkindequals_label=Ls Type And Kind Equals -menu_item_lsthing_lstypeequals_label=Ls Type Equals -menu_item_lsthing_lstypeequalsandlskindequals_label=Ls Type Equals And Ls Kind Equals -menu_item_lsthing_new_label=Ls Thing -menu_item_lsthing_recordedbylike_label=Recorded By Like -menu_item_lsthing_recordeddategreaterthan_label=Recorded Date Greater Than -menu_item_lsthing_recordeddatelessthan_label=Recorded Date Less Than -menu_item_lsthinglabel_labeltextequals_label=Label Text Equals -menu_item_lsthinglabel_labeltextequalsandignorednot_label=Label Text Equals And Ignored Not -menu_item_lsthinglabel_labeltextlike_label=Label Text Like -menu_item_lsthinglabel_list_label=Ls Thing Labels -menu_item_lsthinglabel_lsthing_label=Ls Thing -menu_item_lsthinglabel_lstransactionequals_label=Ls Transaction Equals -menu_item_lsthinglabel_new_label=Ls Thing Label -menu_item_lsthingstate_list_label=Ls Thing States -menu_item_lsthingstate_lsthing_label=Ls Thing -menu_item_lsthingstate_lstransactionequals_label=Ls Transaction Equals -menu_item_lsthingstate_new_label=Ls Thing State -menu_item_lsthingvalue_codevalueequals_label=Code Value Equals -menu_item_lsthingvalue_ignorednotandcodevalueequals_label=Ignored Not And Code Value Equals -menu_item_lsthingvalue_list_label=Ls Thing Values -menu_item_lsthingvalue_lskindequalsandcodevaluelike_label=Ls Kind Equals And Code Value Like -menu_item_lsthingvalue_lskindequalsanddatevaluegreaterthanequals_label=Ls Kind Equals And Date Value Greater Than Equals -menu_item_lsthingvalue_lskindequalsanddatevaluelessthanequals_label=Ls Kind Equals And Date Value Less Than Equals -menu_item_lsthingvalue_lskindequalsanddatevaluelike_label=Ls Kind Equals And Date Value Like -menu_item_lsthingvalue_lskindequalsandnumericvalueequals_label=Ls Kind Equals And Numeric Value Equals -menu_item_lsthingvalue_lskindequalsandnumericvaluegreaterthanequals_label=Ls Kind Equals And Numeric Value Greater Than Equals -menu_item_lsthingvalue_lskindequalsandnumericvaluelessthanequals_label=Ls Kind Equals And Numeric Value Less Than Equals -menu_item_lsthingvalue_lskindequalsandstringvalueequals_label=Ls Kind Equals And String Value Equals -menu_item_lsthingvalue_lskindequalsandstringvaluelike_label=Ls Kind Equals And String Value Like -menu_item_lsthingvalue_lsstate_label=Ls State -menu_item_lsthingvalue_lstransactionequals_label=Ls Transaction Equals -menu_item_lsthingvalue_new_label=Ls Thing Value -menu_item_lstransaction_list_label=Ls Transactions -menu_item_lstransaction_new_label=Ls Transaction -menu_item_operator_codeequals_label=Code Equals -menu_item_operator_list_label=Operators -menu_item_operator_nameequals_label=Name Equals -menu_item_operator_new_label=Operator -menu_item_operatorkind_list_label=Operator Kinds -menu_item_operatorkind_new_label=Operator Kind -menu_item_operatortype_list_label=Operator Types -menu_item_operatortype_new_label=Operator Type -menu_item_operatortype_typenameequals_label=Type Name Equals -menu_item_parent_bulkloadfileequals_label=Bulk Load File Equals -menu_item_parent_cdid_label=Cd Id -menu_item_parent_commonnamelike_label=Common Name Like -menu_item_parent_corpnameequals_label=Corp Name Equals -menu_item_parent_corpnamelike_label=Corp Name Like -menu_item_parent_list_label=Parents -menu_item_parent_new_label=Parent -menu_item_parent_saltforms_label=Salt Forms -menu_item_parentalias_aliasnameequals_label=Alias Name Equals -menu_item_parentalias_aliasnameequalsandlstypeequalsandlskindequals_label=Alias Name Equals And Ls Type Equals And Ls Kind Equals -menu_item_parentalias_list_label=Parent Aliases -menu_item_parentalias_new_label=Parent Alias -menu_item_parentalias_parent_label=Parent -menu_item_parentalias_parentandlstypeequalsandlskindequals_label=Parent And Ls Type Equals And Ls Kind Equals -menu_item_parentalias_parentandlstypeequalsandlskindequalsandaliasnameequals_label=Parent And Ls Type Equals And Ls Kind Equals And Alias Name Equals -menu_item_parentaliaskind_list_label=Parent Alias Kinds -menu_item_parentaliaskind_new_label=Parent Alias Kind -menu_item_parentaliastype_list_label=Parent Alias Types -menu_item_parentaliastype_new_label=Parent Alias Type -menu_item_parentannotation_codeequals_label=Code Equals -menu_item_parentannotation_list_label=Parent Annotations -menu_item_parentannotation_new_label=Parent Annotation -menu_item_physicalstate_codeequals_label=Code Equals -menu_item_physicalstate_list_label=Physical States -menu_item_physicalstate_nameequals_label=Name Equals -menu_item_physicalstate_namelike_label=Name Like -menu_item_physicalstate_new_label=Physical State -menu_item_predef_corpname_list_label=Pre Def_ Corp Names -menu_item_predef_corpname_new_label=Pre Def_ Corp Name -menu_item_project_codeequals_label=Code Equals -menu_item_project_list_label=Projects -menu_item_project_nameequals_label=Name Equals -menu_item_project_new_label=Project -menu_item_protocol_codenameequals_label=Code Name Equals -menu_item_protocol_codenameequalsandignorednot_label=Code Name Equals And Ignored Not -menu_item_protocol_codenamelike_label=Code Name Like -menu_item_protocol_ignorednot_label=Ignored Not -menu_item_protocol_list_label=Protocols -menu_item_protocol_lskindequals_label=Ls Kind Equals -menu_item_protocol_lskindlike_label=Ls Kind Like -menu_item_protocol_lstransactionequals_label=Ls Transaction Equals -menu_item_protocol_lstypeandkindequals_label=Ls Type And Kind Equals -menu_item_protocol_lstypeequals_label=Ls Type Equals -menu_item_protocol_lstypeequalsandlskindequals_label=Ls Type Equals And Ls Kind Equals -menu_item_protocol_lstypelike_label=Ls Type Like -menu_item_protocol_new_label=Protocol -menu_item_protocol_recordedbylike_label=Recorded By Like -menu_item_protocolkind_list_label=Protocol Kinds -menu_item_protocolkind_lstypeequalsandkindnameequals_label=Ls Type Equals And Kind Name Equals -menu_item_protocolkind_new_label=Protocol Kind -menu_item_protocollabel_labeltextequalsandignorednot_label=Label Text Equals And Ignored Not -menu_item_protocollabel_labeltextlike_label=Label Text Like -menu_item_protocollabel_list_label=Protocol Labels -menu_item_protocollabel_lstransactionequals_label=Ls Transaction Equals -menu_item_protocollabel_new_label=Protocol Label -menu_item_protocollabel_protocol_label=Protocol -menu_item_protocolstate_list_label=Protocol States -menu_item_protocolstate_lstransactionequals_label=Ls Transaction Equals -menu_item_protocolstate_new_label=Protocol State -menu_item_protocolstate_protocol_label=Protocol -menu_item_protocoltype_list_label=Protocol Types -menu_item_protocoltype_new_label=Protocol Type -menu_item_protocoltype_typenameequals_label=Type Name Equals -menu_item_protocolvalue_list_label=Protocol Values -menu_item_protocolvalue_lskindequalsandcodevaluelike_label=Ls Kind Equals And Code Value Like -menu_item_protocolvalue_lskindequalsanddatevalueequals_label=Ls Kind Equals And Date Value Equals -menu_item_protocolvalue_lskindequalsanddatevaluelike_label=Ls Kind Equals And Date Value Like -menu_item_protocolvalue_lskindequalsandstringvaluelike_label=Ls Kind Equals And String Value Like -menu_item_protocolvalue_lsstate_label=Ls State -menu_item_protocolvalue_lstransactionequals_label=Ls Transaction Equals -menu_item_protocolvalue_new_label=Protocol Value -menu_item_puritymeasuredby_codeequals_label=Code Equals -menu_item_puritymeasuredby_list_label=Purity Measured Bys -menu_item_puritymeasuredby_nameequals_label=Name Equals -menu_item_puritymeasuredby_namelike_label=Name Like -menu_item_puritymeasuredby_new_label=Purity Measured By -menu_item_qccompound_cdid_label=Cd Id -menu_item_qccompound_list_label=Qc Compounds -menu_item_qccompound_new_label=Qc Compound -menu_item_role_list_label=Roles -menu_item_role_new_label=Role -menu_item_rolekind_kindnameequalsandlstype_label=Kind Name Equals And Ls Type -menu_item_rolekind_list_label=Role Kinds -menu_item_rolekind_lstype_label=Ls Type -menu_item_rolekind_new_label=Role Kind -menu_item_roletype_list_label=Role Types -menu_item_roletype_new_label=Role Type -menu_item_roletype_typenameequals_label=Type Name Equals -menu_item_salt_abbrevequals_label=Abbrev Equals -menu_item_salt_abbrevequalsandnameequals_label=Abbrev Equals And Name Equals -menu_item_salt_abbrevlike_label=Abbrev Like -menu_item_salt_cdid_label=Cd Id -menu_item_salt_list_label=Salts -menu_item_salt_nameequals_label=Name Equals -menu_item_salt_new_label=Salt -menu_item_saltform_bulkloadfileequals_label=Bulk Load File Equals -menu_item_saltform_cdid_label=Cd Id -menu_item_saltform_corpnameequals_label=Corp Name Equals -menu_item_saltform_corpnamelike_label=Corp Name Like -menu_item_saltform_list_label=Salt Forms -menu_item_saltform_new_label=Salt Form -menu_item_saltform_parent_label=Parent -menu_item_saltformalias_aliasnameequalsandlstypeequalsandlskindequals_label=Alias Name Equals And Ls Type Equals And Ls Kind Equals -menu_item_saltformalias_list_label=Salt Form Aliases -menu_item_saltformalias_new_label=Salt Form Alias -menu_item_saltformalias_saltform_label=Salt Form -menu_item_saltformaliaskind_list_label=Salt Form Alias Kinds -menu_item_saltformaliaskind_new_label=Salt Form Alias Kind -menu_item_saltformaliastype_list_label=Salt Form Alias Types -menu_item_saltformaliastype_new_label=Salt Form Alias Type -menu_item_saltloader_list_label=Salt Loaders -menu_item_saltloader_new_label=Salt Loader -menu_item_scientist_codeequals_label=Code Equals -menu_item_scientist_codelike_label=Code Like -menu_item_scientist_list_label=Scientists -menu_item_scientist_new_label=Scientist -menu_item_solutionunit_codeequals_label=Code Equals -menu_item_solutionunit_codelike_label=Code Like -menu_item_solutionunit_list_label=Solution Units -menu_item_solutionunit_nameequals_label=Name Equals -menu_item_solutionunit_new_label=Solution Unit -menu_item_statekind_kindnameequals_label=Kind Name Equals -menu_item_statekind_kindnameequalsandlstype_label=Kind Name Equals And Ls Type -menu_item_statekind_list_label=State Kinds -menu_item_statekind_lstype_label=Ls Type -menu_item_statekind_new_label=State Kind -menu_item_statetype_list_label=State Types -menu_item_statetype_new_label=State Type -menu_item_statetype_typenameequals_label=Type Name Equals -menu_item_stereocategory_codeequals_label=Code Equals -menu_item_stereocategory_codelike_label=Code Like -menu_item_stereocategory_list_label=Stereo Categorys -menu_item_stereocategory_new_label=Stereo Category -menu_item_structurekind_list_label=Structure Kinds -menu_item_structurekind_new_label=Structure Kind -menu_item_structuretype_list_label=Structure Types -menu_item_structuretype_new_label=Structure Type -menu_item_subject_codenameequals_label=Code Name Equals -menu_item_subject_list_label=Subjects -menu_item_subject_lstransactionequals_label=Ls Transaction Equals -menu_item_subject_new_label=Subject -menu_item_subject_treatmentgroup_label=Treatment Group -menu_item_subject_treatmentgroups_label=Treatment Groups -menu_item_subjectlabel_list_label=Subject Labels -menu_item_subjectlabel_new_label=Subject Label -menu_item_subjectlabel_subject_label=Subject -menu_item_subjectstate_list_label=Subject States -menu_item_subjectstate_lstypeequalsandlskindequalsandsubject_label=Ls Type Equals And Ls Kind Equals And Subject -menu_item_subjectstate_new_label=Subject State -menu_item_subjectstate_subject_label=Subject -menu_item_subjectvalue_codevalueequals_label=Code Value Equals -menu_item_subjectvalue_ignorednotandcodevalueequals_label=Ignored Not And Code Value Equals -menu_item_subjectvalue_list_label=Subject Values -menu_item_subjectvalue_lsstate_label=Ls State -menu_item_subjectvalue_lsstateandlstypeequalsandlskindequals_label=Ls State And Ls Type Equals And Ls Kind Equals -menu_item_subjectvalue_lstypeequalsandlskindequals_label=Ls Type Equals And Ls Kind Equals -menu_item_subjectvalue_new_label=Subject Value -menu_item_tempselecttable_list_label=Temp Select Tables -menu_item_tempselecttable_new_label=Temp Select Table -menu_item_thingkind_kindnameequalsandlstype_label=Kind Name Equals And Ls Type -menu_item_thingkind_list_label=Thing Kinds -menu_item_thingkind_lstype_label=Ls Type -menu_item_thingkind_lstypeandkindequals_label=Ls Type And Kind Equals -menu_item_thingkind_new_label=Thing Kind -menu_item_thingpage_list_label=Thing Pages -menu_item_thingpage_new_label=Thing Page -menu_item_thingpagearchive_list_label=Thing Page Archives -menu_item_thingpagearchive_new_label=Thing Page Archive -menu_item_thingtype_list_label=Thing Types -menu_item_thingtype_new_label=Thing Type -menu_item_thingtype_typenameequals_label=Type Name Equals -menu_item_treatmentgroup_analysisgroup_label=Analysis Group -menu_item_treatmentgroup_analysisgroups_label=Analysis Groups -menu_item_treatmentgroup_codenameequals_label=Code Name Equals -menu_item_treatmentgroup_list_label=Treatment Groups -menu_item_treatmentgroup_lstransactionequals_label=Ls Transaction Equals -menu_item_treatmentgroup_new_label=Treatment Group -menu_item_treatmentgrouplabel_list_label=Treatment Group Labels -menu_item_treatmentgrouplabel_lstransactionequals_label=Ls Transaction Equals -menu_item_treatmentgrouplabel_new_label=Treatment Group Label -menu_item_treatmentgrouplabel_treatmentgroup_label=Treatment Group -menu_item_treatmentgroupstate_list_label=Treatment Group States -menu_item_treatmentgroupstate_lstransactionequals_label=Ls Transaction Equals -menu_item_treatmentgroupstate_lstypeandkindequals_label=Ls Type And Kind Equals -menu_item_treatmentgroupstate_new_label=Treatment Group State -menu_item_treatmentgroupstate_treatmentgroup_label=Treatment Group -menu_item_treatmentgroupvalue_codevalueequals_label=Code Value Equals -menu_item_treatmentgroupvalue_ignorednotandcodevalueequals_label=Ignored Not And Code Value Equals -menu_item_treatmentgroupvalue_list_label=Treatment Group Values -menu_item_treatmentgroupvalue_lsstate_label=Ls State -menu_item_treatmentgroupvalue_lstransactionequals_label=Ls Transaction Equals -menu_item_treatmentgroupvalue_new_label=Treatment Group Value -menu_item_uncertaintykind_list_label=Uncertainty Kinds -menu_item_uncertaintykind_new_label=Uncertainty Kind -menu_item_uncertaintytype_list_label=Uncertainty Types -menu_item_uncertaintytype_new_label=Uncertainty Type -menu_item_unit_codeequals_label=Code Equals -menu_item_unit_codelike_label=Code Like -menu_item_unit_list_label=Units -menu_item_unit_nameequals_label=Name Equals -menu_item_unit_new_label=Unit -menu_item_unitkind_list_label=Unit Kinds -menu_item_unitkind_new_label=Unit Kind -menu_item_unittype_list_label=Unit Types -menu_item_unittype_new_label=Unit Type -menu_item_unittype_typenameequals_label=Type Name Equals -menu_item_updatelog_list_label=Update Logs -menu_item_updatelog_new_label=Update Log -menu_item_user_list_label=Users -menu_item_user_new_label=User -menu_item_userrole_list_label=User Roles -menu_item_userrole_new_label=User Role -menu_item_valuekind_kindnameequalsandlstype_label=Kind Name Equals And Ls Type -menu_item_valuekind_list_label=Value Kinds -menu_item_valuekind_lstype_label=Ls Type -menu_item_valuekind_new_label=Value Kind -menu_item_valuetype_list_label=Value Types -menu_item_valuetype_new_label=Value Type -menu_item_valuetype_typenameequals_label=Type Name Equals -menu_item_vendor_codeequals_label=Code Equals -menu_item_vendor_codelike_label=Code Like -menu_item_vendor_list_label=Vendors -menu_item_vendor_nameequals_label=Name Equals -menu_item_vendor_namelike_label=Name Like -menu_item_vendor_new_label=Vendor diff --git a/src/main/webapp/WEB-INF/i18n/messages.properties b/src/main/webapp/WEB-INF/i18n/messages.properties deleted file mode 100755 index 2b97bfe95..000000000 --- a/src/main/webapp/WEB-INF/i18n/messages.properties +++ /dev/null @@ -1,107 +0,0 @@ -#menu -global_menu_new=Create new {0} -global_menu_list=List all {0} -global_menu_find=Find by {0} -global_language_switch=Switch language to {0} -global_language=Language -global_sponsored=Sponsored by SpringSource -global_theme=Theme -global_theme_alt=alt -global_theme_standard=standard -global_generic={0} - -#welcome page -welcome_titlepane=Welcome to {0} -welcome_h3=Welcome to {0} -welcome_text=Spring Roo provides interactive, lightweight and user customizable tooling that enables rapid delivery of high performance enterprise Java applications. - -#entity labels -entity_list_all=List all {0} -entity_show=Show {0} -entity_create=Create new {0} -entity_update=Update {0} -entity_delete=Delete {0} -entity_delete_confirm=Are you sure want to delete this item? -entity_find=Find {0} -entity_not_found=No {0} found. -entity_not_found_single=No {0} found with this id. -entity_dependency_required=The following dependencies need to be created first: -entity_reference_not_managed=This relationship is managed from the {0} side. - -#button labels -button_home=Home -button_save=Save -button_update=Update -button_find=Find -button_cancel=Cancel -button_proceed=Proceed -button_submit=Submit -button_reset=Reset -button_end=End -button_showmessage=Show Message -button_showstacktrace=Show Stack Trace -button_showcookie=Show Cookie - -#field labels -field_simple_validation=Enter {0} {1} -field_invalid_email=Please enter a valid email -field_invalid_number=Number with \\'-\\' or \\'.\\' allowed -field_invalid_integer=Integer numbers only -field_invalid=Please enter valid {0} -field_required=required - -#list labels -list_first=First Page -list_next=Next Page -list_previous=Previous Page -list_last=Last Page -list_page=Page {0} of {1} -list_size=List results per page: - -#selenium -selenium_menu_test_suite=Test Suite - -#exception -exception_message=Exception Message -exception_stacktrace=Exception Stack Trace -exception_cookie=Cookies -exception_details=Details - -#dataAccessFailure_jspx -title=Data access failure -error_dataaccessfailure_title=Data access failure -error_dataaccessfailure_problemdescription=Sorry, a problem occurred while accessing the database. - -#resourceNotFound_jspx -error_resourcenotfound_title=Requested Resource Not Found -error_resourcenotfound_problemdescription=Sorry, we did not find the resource you were looking for. - -#uncaughtException_jspx -error_uncaughtexception_title=Internal Error -error_uncaughtexception_problemdescription=Sorry, we encountered an internal error. - -#webflow -webflow_menu_enter=Enter {0} flow -webflow_state1_title=Spring Web Flow - View State One -webflow_state1_message=This is a simple example to get started with Spring Web Flow. The buttons below lead you to another view state (Proceed) or to an end state. -webflow_state2_title=Spring Web Flow - View State Two -webflow_state2_message=This is a simple example to get started with Spring Web Flow. The buttons below lead you to another view state (Proceed) or to an end state. -webflow_endstate_title=Spring Web Flow - End State -webflow_endstate_message=You have now reached the end of this flow. - -#security -security_login_title=Spring Security Login -security_login_message=You have tried to access a protected area of this application. By default you can login as "admin", with a password of "admin". -security_login_form_name=Name -security_login_form_name_message=Enter your name -security_login_form_password=Password -security_login_form_password_message=Enter your password -security_login_unsuccessful=Your login attempt was not successful, try again. Reason: -security_logout=Logout - -#changepassword -changepassword.invalidpassword=Invalid Current Password -changepassword.passwordsnomatch=Passwords do not match -changepassword.invalidemailaddress=Invalid Email Address -changepassword.duplicateemailaddress=Duplicate Email Address, contact administrator -changepassword.thankyoumessage=Your password has been changed. diff --git a/src/main/webapp/WEB-INF/layouts/default.jspx b/src/main/webapp/WEB-INF/layouts/default.jspx deleted file mode 100755 index b045bc0f3..000000000 --- a/src/main/webapp/WEB-INF/layouts/default.jspx +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - <spring:message code="welcome_h3" arguments="${app_name}" /> - - - -

- - -
- - -
-
- - diff --git a/src/main/webapp/WEB-INF/tags/form/create.tagx b/src/main/webapp/WEB-INF/tags/form/create.tagx deleted file mode 100755 index f8d78e791..000000000 --- a/src/main/webapp/WEB-INF/tags/form/create.tagx +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-
-
-
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/dependency.tagx b/src/main/webapp/WEB-INF/tags/form/dependency.tagx deleted file mode 100755 index 4888a1283..000000000 --- a/src/main/webapp/WEB-INF/tags/form/dependency.tagx +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - -

- -

-
-
-
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/fields/checkbox.tagx b/src/main/webapp/WEB-INF/tags/form/fields/checkbox.tagx deleted file mode 100755 index 1804424d2..000000000 --- a/src/main/webapp/WEB-INF/tags/form/fields/checkbox.tagx +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - ${field} - - - -
- - - - - - - - - - -
-
-
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/fields/column.tagx b/src/main/webapp/WEB-INF/tags/form/fields/column.tagx deleted file mode 100755 index cfaddabd0..000000000 --- a/src/main/webapp/WEB-INF/tags/form/fields/column.tagx +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/fields/datetime.tagx b/src/main/webapp/WEB-INF/tags/form/fields/datetime.tagx deleted file mode 100755 index 934661283..000000000 --- a/src/main/webapp/WEB-INF/tags/form/fields/datetime.tagx +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${field} - - - - - - - -
- - - - - - - -
- -
-
- - - - - - - - - - - -
-
-
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/fields/display.tagx b/src/main/webapp/WEB-INF/tags/form/fields/display.tagx deleted file mode 100755 index a6e8f43c4..000000000 --- a/src/main/webapp/WEB-INF/tags/form/fields/display.tagx +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - -
-
-
-
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/fields/editor.tagx b/src/main/webapp/WEB-INF/tags/form/fields/editor.tagx deleted file mode 100755 index c4c619285..000000000 --- a/src/main/webapp/WEB-INF/tags/form/fields/editor.tagx +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${field} - - - -
- - -
-
- -
-
- -
-
-
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/fields/input.tagx b/src/main/webapp/WEB-INF/tags/form/fields/input.tagx deleted file mode 100755 index aff5ea181..000000000 --- a/src/main/webapp/WEB-INF/tags/form/fields/input.tagx +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${field} - - -
- - - - - - - - - - - - - - -
- -
-
- - - - - - - - - - - ${field_validation} - - - ${field_invalid} - - - ${field_required} - - - - - - -
-
-
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/fields/reference.tagx b/src/main/webapp/WEB-INF/tags/form/fields/reference.tagx deleted file mode 100755 index a99eb1ca3..000000000 --- a/src/main/webapp/WEB-INF/tags/form/fields/reference.tagx +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - -
- - - - - - - - ${fn:escapeXml(add_message)} - - - - - ( - - ) - -
-
-
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/fields/select.tagx b/src/main/webapp/WEB-INF/tags/form/fields/select.tagx deleted file mode 100755 index e454985b2..000000000 --- a/src/main/webapp/WEB-INF/tags/form/fields/select.tagx +++ /dev/null @@ -1,199 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${field} - - - - ${itemLabel} - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
-
-
- - - - - - -
- - - -
-
-
-
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/fields/simple.tagx b/src/main/webapp/WEB-INF/tags/form/fields/simple.tagx deleted file mode 100755 index f8a86f328..000000000 --- a/src/main/webapp/WEB-INF/tags/form/fields/simple.tagx +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - -
- - - - - - - - - -
-
-
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/fields/table.tagx b/src/main/webapp/WEB-INF/tags/form/fields/table.tagx deleted file mode 100755 index 80962b33a..000000000 --- a/src/main/webapp/WEB-INF/tags/form/fields/table.tagx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - ${fn:escapeXml(show_label)} - - - - - - - - - ${fn:escapeXml(update_label)} - - - - - - - - - - - - - - - - - - - -
- -
- -
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/fields/textarea.tagx b/src/main/webapp/WEB-INF/tags/form/fields/textarea.tagx deleted file mode 100755 index 1b5ba2384..000000000 --- a/src/main/webapp/WEB-INF/tags/form/fields/textarea.tagx +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${field} - - - -
- - -
- - -
-
- -
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/find.tagx b/src/main/webapp/WEB-INF/tags/form/find.tagx deleted file mode 100755 index 095f20fdf..000000000 --- a/src/main/webapp/WEB-INF/tags/form/find.tagx +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-
-
-
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/list.tagx b/src/main/webapp/WEB-INF/tags/form/list.tagx deleted file mode 100755 index b81d25669..000000000 --- a/src/main/webapp/WEB-INF/tags/form/list.tagx +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/show.tagx b/src/main/webapp/WEB-INF/tags/form/show.tagx deleted file mode 100755 index 47cc06aa5..000000000 --- a/src/main/webapp/WEB-INF/tags/form/show.tagx +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/form/update.tagx b/src/main/webapp/WEB-INF/tags/form/update.tagx deleted file mode 100755 index 01217c518..000000000 --- a/src/main/webapp/WEB-INF/tags/form/update.tagx +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- - - - -
-
-
-
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/menu/category.tagx b/src/main/webapp/WEB-INF/tags/menu/category.tagx deleted file mode 100755 index f78f81f39..000000000 --- a/src/main/webapp/WEB-INF/tags/menu/category.tagx +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - -
  • -

    - -

    -
      - -
    -
  • - -
    -
    \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/menu/gvnixitem.tagx b/src/main/webapp/WEB-INF/tags/menu/gvnixitem.tagx deleted file mode 100644 index c58b9c6ff..000000000 --- a/src/main/webapp/WEB-INF/tags/menu/gvnixitem.tagx +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/tags/menu/gvnixmenu.tagx b/src/main/webapp/WEB-INF/tags/menu/gvnixmenu.tagx deleted file mode 100644 index 581fb1f71..000000000 --- a/src/main/webapp/WEB-INF/tags/menu/gvnixmenu.tagx +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/tags/menu/item.tagx b/src/main/webapp/WEB-INF/tags/menu/item.tagx deleted file mode 100755 index b1768a11a..000000000 --- a/src/main/webapp/WEB-INF/tags/menu/item.tagx +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - -
  • - - - - -
  • - -
    -
    diff --git a/src/main/webapp/WEB-INF/tags/menu/menu.tagx b/src/main/webapp/WEB-INF/tags/menu/menu.tagx deleted file mode 100755 index f16269aa7..000000000 --- a/src/main/webapp/WEB-INF/tags/menu/menu.tagx +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - -
      - -
    -
    -
    \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/util/language.tagx b/src/main/webapp/WEB-INF/tags/util/language.tagx deleted file mode 100755 index c894b75d6..000000000 --- a/src/main/webapp/WEB-INF/tags/util/language.tagx +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - ${fn:escapeXml(lang_label)} - - - - diff --git a/src/main/webapp/WEB-INF/tags/util/load-scripts.tagx b/src/main/webapp/WEB-INF/tags/util/load-scripts.tagx deleted file mode 100755 index 3aa5ace4b..000000000 --- a/src/main/webapp/WEB-INF/tags/util/load-scripts.tagx +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - ${pageContext.response.locale} - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/util/pagination.tagx b/src/main/webapp/WEB-INF/tags/util/pagination.tagx deleted file mode 100755 index 5c6a3ddfe..000000000 --- a/src/main/webapp/WEB-INF/tags/util/pagination.tagx +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${i} - - - - - - - - - - - - - - - ${fn:escapeXml(first_label)} - - - - - - - - - - - ${fn:escapeXml(previous_label)} - - - - - - - - - - - - - - ${fn:escapeXml(next_label)} - - - - - - - - - - - ${fn:escapeXml(last_label)} - - - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/util/panel.tagx b/src/main/webapp/WEB-INF/tags/util/panel.tagx deleted file mode 100755 index a1d58257a..000000000 --- a/src/main/webapp/WEB-INF/tags/util/panel.tagx +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - ${id} - - - - ${openPane} - - - - ${title} - - - -
    - - -
    -
    -
    diff --git a/src/main/webapp/WEB-INF/tags/util/placeholder.tagx b/src/main/webapp/WEB-INF/tags/util/placeholder.tagx deleted file mode 100755 index 0ff9617d9..000000000 --- a/src/main/webapp/WEB-INF/tags/util/placeholder.tagx +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/util/theme.tagx b/src/main/webapp/WEB-INF/tags/util/theme.tagx deleted file mode 100755 index 6fe7723fe..000000000 --- a/src/main/webapp/WEB-INF/tags/util/theme.tagx +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - ${fn:escapeXml(theme_standard)} - - - - - - - - - - - - ${fn:escapeXml(theme_alt)} - - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/analysisgrouplabels/create.jspx b/src/main/webapp/WEB-INF/views/analysisgrouplabels/create.jspx deleted file mode 100755 index 36b2ccf78..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgrouplabels/create.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgrouplabels/findAnalysisGroupLabelsByAnalysisGroup.jspx b/src/main/webapp/WEB-INF/views/analysisgrouplabels/findAnalysisGroupLabelsByAnalysisGroup.jspx deleted file mode 100755 index e16c5332b..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgrouplabels/findAnalysisGroupLabelsByAnalysisGroup.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgrouplabels/findAnalysisGroupLabelsByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/analysisgrouplabels/findAnalysisGroupLabelsByLsTransactionEquals.jspx deleted file mode 100755 index 7fd1b4a7e..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgrouplabels/findAnalysisGroupLabelsByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgrouplabels/list.jspx b/src/main/webapp/WEB-INF/views/analysisgrouplabels/list.jspx deleted file mode 100755 index b4bbeb9ec..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgrouplabels/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgrouplabels/show.jspx b/src/main/webapp/WEB-INF/views/analysisgrouplabels/show.jspx deleted file mode 100755 index 2380811b7..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgrouplabels/show.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgrouplabels/update.jspx b/src/main/webapp/WEB-INF/views/analysisgrouplabels/update.jspx deleted file mode 100755 index c330828e9..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgrouplabels/update.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgrouplabels/views.xml b/src/main/webapp/WEB-INF/views/analysisgrouplabels/views.xml deleted file mode 100755 index cc312f314..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgrouplabels/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/analysisgroups/create.jspx b/src/main/webapp/WEB-INF/views/analysisgroups/create.jspx deleted file mode 100755 index b0afde45e..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroups/create.jspx +++ /dev/null @@ -1,24 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByExperiment.jspx b/src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByExperiment.jspx deleted file mode 100755 index ef85611fe..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByExperiment.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByExperiments.jspx b/src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByExperiments.jspx deleted file mode 100644 index 3169bba2b..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByExperiments.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByExperimentsAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByExperimentsAndIgnoredNot.jspx deleted file mode 100644 index e1d6e5b60..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByExperimentsAndIgnoredNot.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByLsTransactionEquals.jspx deleted file mode 100755 index 9298c3692..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroups/findAnalysisGroupsByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroups/list.jspx b/src/main/webapp/WEB-INF/views/analysisgroups/list.jspx deleted file mode 100755 index 8aca0a319..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroups/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroups/show.jspx b/src/main/webapp/WEB-INF/views/analysisgroups/show.jspx deleted file mode 100755 index 3b4b025c8..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroups/show.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroups/update.jspx b/src/main/webapp/WEB-INF/views/analysisgroups/update.jspx deleted file mode 100755 index 70badae12..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroups/update.jspx +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroups/views.xml b/src/main/webapp/WEB-INF/views/analysisgroups/views.xml deleted file mode 100755 index 552c1562f..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroups/views.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/analysisgroupstates/create.jspx b/src/main/webapp/WEB-INF/views/analysisgroupstates/create.jspx deleted file mode 100755 index 4410fc7c7..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByAnalysisGroup.jspx b/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByAnalysisGroup.jspx deleted file mode 100755 index 52f7f12c2..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByAnalysisGroup.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot.jspx deleted file mode 100644 index 431096a43..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByAnalysisGroupAndLsTypeEqualsAndLsKindEqualsAndIgnoredNot.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByLsTransactionEquals.jspx deleted file mode 100755 index ed28c7295..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByLsTypeAndKindEquals.jspx b/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByLsTypeAndKindEquals.jspx deleted file mode 100755 index c2ba62e5f..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByLsTypeAndKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index 9544dadc0..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupstates/findAnalysisGroupStatesByLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupstates/list.jspx b/src/main/webapp/WEB-INF/views/analysisgroupstates/list.jspx deleted file mode 100755 index 8128e6bb1..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupstates/show.jspx b/src/main/webapp/WEB-INF/views/analysisgroupstates/show.jspx deleted file mode 100755 index 41db4baab..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupstates/update.jspx b/src/main/webapp/WEB-INF/views/analysisgroupstates/update.jspx deleted file mode 100755 index 3d4f1238a..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupstates/views.xml b/src/main/webapp/WEB-INF/views/analysisgroupstates/views.xml deleted file mode 100755 index b8ecb9789..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupstates/views.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/analysisgroupvalues/create.jspx b/src/main/webapp/WEB-INF/views/analysisgroupvalues/create.jspx deleted file mode 100755 index 01692edcf..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupvalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByCodeValueEquals.jspx b/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByCodeValueEquals.jspx deleted file mode 100755 index 650a56cf3..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByCodeValueEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByIgnoredNotAndCodeValueEquals.jspx b/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByIgnoredNotAndCodeValueEquals.jspx deleted file mode 100755 index b160b283f..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByIgnoredNotAndCodeValueEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsState.jspx b/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsState.jspx deleted file mode 100755 index 15e69ef43..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsState.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsTransactionEquals.jspx deleted file mode 100755 index 9648520d9..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index 66f019c16..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot.jspx deleted file mode 100644 index dfc69b671..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupvalues/findAnalysisGroupValuesByLsTypeEqualsAndLsKindEqualsAndStringValueLikeAndIgnoredNot.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupvalues/list.jspx b/src/main/webapp/WEB-INF/views/analysisgroupvalues/list.jspx deleted file mode 100755 index fa70553ee..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupvalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupvalues/show.jspx b/src/main/webapp/WEB-INF/views/analysisgroupvalues/show.jspx deleted file mode 100755 index 7b7b6840f..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupvalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupvalues/update.jspx b/src/main/webapp/WEB-INF/views/analysisgroupvalues/update.jspx deleted file mode 100755 index 8803722c4..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupvalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/analysisgroupvalues/views.xml b/src/main/webapp/WEB-INF/views/analysisgroupvalues/views.xml deleted file mode 100755 index 7ba04a9f3..000000000 --- a/src/main/webapp/WEB-INF/views/analysisgroupvalues/views.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/applicationsettings/create.jspx b/src/main/webapp/WEB-INF/views/applicationsettings/create.jspx deleted file mode 100755 index a8898920f..000000000 --- a/src/main/webapp/WEB-INF/views/applicationsettings/create.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/applicationsettings/findApplicationSettingsByPropNameEquals.jspx b/src/main/webapp/WEB-INF/views/applicationsettings/findApplicationSettingsByPropNameEquals.jspx deleted file mode 100755 index 5e713c082..000000000 --- a/src/main/webapp/WEB-INF/views/applicationsettings/findApplicationSettingsByPropNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/applicationsettings/findApplicationSettingsByPropNameEqualsAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/applicationsettings/findApplicationSettingsByPropNameEqualsAndIgnoredNot.jspx deleted file mode 100755 index fbc2de3c5..000000000 --- a/src/main/webapp/WEB-INF/views/applicationsettings/findApplicationSettingsByPropNameEqualsAndIgnoredNot.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/applicationsettings/list.jspx b/src/main/webapp/WEB-INF/views/applicationsettings/list.jspx deleted file mode 100755 index a933930bf..000000000 --- a/src/main/webapp/WEB-INF/views/applicationsettings/list.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/applicationsettings/show.jspx b/src/main/webapp/WEB-INF/views/applicationsettings/show.jspx deleted file mode 100755 index df9426c23..000000000 --- a/src/main/webapp/WEB-INF/views/applicationsettings/show.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/applicationsettings/update.jspx b/src/main/webapp/WEB-INF/views/applicationsettings/update.jspx deleted file mode 100755 index 24465eb72..000000000 --- a/src/main/webapp/WEB-INF/views/applicationsettings/update.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/applicationsettings/views.xml b/src/main/webapp/WEB-INF/views/applicationsettings/views.xml deleted file mode 100755 index 63a59995d..000000000 --- a/src/main/webapp/WEB-INF/views/applicationsettings/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/authorlabels/create.jspx b/src/main/webapp/WEB-INF/views/authorlabels/create.jspx deleted file mode 100644 index 53990426c..000000000 --- a/src/main/webapp/WEB-INF/views/authorlabels/create.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorlabels/list.jspx b/src/main/webapp/WEB-INF/views/authorlabels/list.jspx deleted file mode 100644 index 7970e43f9..000000000 --- a/src/main/webapp/WEB-INF/views/authorlabels/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorlabels/show.jspx b/src/main/webapp/WEB-INF/views/authorlabels/show.jspx deleted file mode 100644 index 098447c5d..000000000 --- a/src/main/webapp/WEB-INF/views/authorlabels/show.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorlabels/update.jspx b/src/main/webapp/WEB-INF/views/authorlabels/update.jspx deleted file mode 100644 index 39c4693bc..000000000 --- a/src/main/webapp/WEB-INF/views/authorlabels/update.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorlabels/views.xml b/src/main/webapp/WEB-INF/views/authorlabels/views.xml deleted file mode 100644 index d4affa633..000000000 --- a/src/main/webapp/WEB-INF/views/authorlabels/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/authorroles/create.jspx b/src/main/webapp/WEB-INF/views/authorroles/create.jspx deleted file mode 100755 index 4c8d9228d..000000000 --- a/src/main/webapp/WEB-INF/views/authorroles/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorroles/findAuthorRolesByRoleEntry.jspx b/src/main/webapp/WEB-INF/views/authorroles/findAuthorRolesByRoleEntry.jspx deleted file mode 100755 index 12d53efdc..000000000 --- a/src/main/webapp/WEB-INF/views/authorroles/findAuthorRolesByRoleEntry.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorroles/findAuthorRolesByRoleEntryAndUserEntry.jspx b/src/main/webapp/WEB-INF/views/authorroles/findAuthorRolesByRoleEntryAndUserEntry.jspx deleted file mode 100755 index db086484f..000000000 --- a/src/main/webapp/WEB-INF/views/authorroles/findAuthorRolesByRoleEntryAndUserEntry.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorroles/findAuthorRolesByUserEntry.jspx b/src/main/webapp/WEB-INF/views/authorroles/findAuthorRolesByUserEntry.jspx deleted file mode 100755 index 00d38af2b..000000000 --- a/src/main/webapp/WEB-INF/views/authorroles/findAuthorRolesByUserEntry.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorroles/list.jspx b/src/main/webapp/WEB-INF/views/authorroles/list.jspx deleted file mode 100755 index d715c6fe9..000000000 --- a/src/main/webapp/WEB-INF/views/authorroles/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorroles/show.jspx b/src/main/webapp/WEB-INF/views/authorroles/show.jspx deleted file mode 100755 index 3e5aa3f47..000000000 --- a/src/main/webapp/WEB-INF/views/authorroles/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorroles/update.jspx b/src/main/webapp/WEB-INF/views/authorroles/update.jspx deleted file mode 100755 index fcf6a1166..000000000 --- a/src/main/webapp/WEB-INF/views/authorroles/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorroles/views.xml b/src/main/webapp/WEB-INF/views/authorroles/views.xml deleted file mode 100755 index 61bdb8b21..000000000 --- a/src/main/webapp/WEB-INF/views/authorroles/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/authors/create.jspx b/src/main/webapp/WEB-INF/views/authors/create.jspx deleted file mode 100755 index 91fba7ec0..000000000 --- a/src/main/webapp/WEB-INF/views/authors/create.jspx +++ /dev/null @@ -1,32 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authors/findAuthorsByActivationKeyAndEmailAddress.jspx b/src/main/webapp/WEB-INF/views/authors/findAuthorsByActivationKeyAndEmailAddress.jspx deleted file mode 100755 index 864bedc30..000000000 --- a/src/main/webapp/WEB-INF/views/authors/findAuthorsByActivationKeyAndEmailAddress.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authors/findAuthorsByEmailAddress.jspx b/src/main/webapp/WEB-INF/views/authors/findAuthorsByEmailAddress.jspx deleted file mode 100755 index 36159823d..000000000 --- a/src/main/webapp/WEB-INF/views/authors/findAuthorsByEmailAddress.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authors/findAuthorsByUserName.jspx b/src/main/webapp/WEB-INF/views/authors/findAuthorsByUserName.jspx deleted file mode 100755 index a55a3e380..000000000 --- a/src/main/webapp/WEB-INF/views/authors/findAuthorsByUserName.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authors/list.jspx b/src/main/webapp/WEB-INF/views/authors/list.jspx deleted file mode 100755 index 35be68df4..000000000 --- a/src/main/webapp/WEB-INF/views/authors/list.jspx +++ /dev/null @@ -1,16 +0,0 @@ - -
    - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authors/show.jspx b/src/main/webapp/WEB-INF/views/authors/show.jspx deleted file mode 100755 index 132946e42..000000000 --- a/src/main/webapp/WEB-INF/views/authors/show.jspx +++ /dev/null @@ -1,27 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authors/update.jspx b/src/main/webapp/WEB-INF/views/authors/update.jspx deleted file mode 100755 index f14430f9d..000000000 --- a/src/main/webapp/WEB-INF/views/authors/update.jspx +++ /dev/null @@ -1,31 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authors/views.xml b/src/main/webapp/WEB-INF/views/authors/views.xml deleted file mode 100755 index da0d7a23b..000000000 --- a/src/main/webapp/WEB-INF/views/authors/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/authorstates/create.jspx b/src/main/webapp/WEB-INF/views/authorstates/create.jspx deleted file mode 100644 index 48988120f..000000000 --- a/src/main/webapp/WEB-INF/views/authorstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorstates/list.jspx b/src/main/webapp/WEB-INF/views/authorstates/list.jspx deleted file mode 100644 index a3a079f04..000000000 --- a/src/main/webapp/WEB-INF/views/authorstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorstates/show.jspx b/src/main/webapp/WEB-INF/views/authorstates/show.jspx deleted file mode 100644 index 365e6d8ec..000000000 --- a/src/main/webapp/WEB-INF/views/authorstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorstates/update.jspx b/src/main/webapp/WEB-INF/views/authorstates/update.jspx deleted file mode 100644 index 0761d0315..000000000 --- a/src/main/webapp/WEB-INF/views/authorstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorstates/views.xml b/src/main/webapp/WEB-INF/views/authorstates/views.xml deleted file mode 100644 index 8f6395d77..000000000 --- a/src/main/webapp/WEB-INF/views/authorstates/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/authorvalues/create.jspx b/src/main/webapp/WEB-INF/views/authorvalues/create.jspx deleted file mode 100644 index b8dfa946b..000000000 --- a/src/main/webapp/WEB-INF/views/authorvalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorvalues/list.jspx b/src/main/webapp/WEB-INF/views/authorvalues/list.jspx deleted file mode 100644 index 03f261714..000000000 --- a/src/main/webapp/WEB-INF/views/authorvalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorvalues/show.jspx b/src/main/webapp/WEB-INF/views/authorvalues/show.jspx deleted file mode 100644 index c050945c7..000000000 --- a/src/main/webapp/WEB-INF/views/authorvalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorvalues/update.jspx b/src/main/webapp/WEB-INF/views/authorvalues/update.jspx deleted file mode 100644 index 55b4fa6ae..000000000 --- a/src/main/webapp/WEB-INF/views/authorvalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/authorvalues/views.xml b/src/main/webapp/WEB-INF/views/authorvalues/views.xml deleted file mode 100644 index ea838f290..000000000 --- a/src/main/webapp/WEB-INF/views/authorvalues/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/bulkloadfiles/create.jspx b/src/main/webapp/WEB-INF/views/bulkloadfiles/create.jspx deleted file mode 100644 index 4c00694ef..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadfiles/create.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadfiles/findBulkLoadFilesByFileNameEquals.jspx b/src/main/webapp/WEB-INF/views/bulkloadfiles/findBulkLoadFilesByFileNameEquals.jspx deleted file mode 100644 index 434c18c82..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadfiles/findBulkLoadFilesByFileNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadfiles/findBulkLoadFilesByRecordedByEquals.jspx b/src/main/webapp/WEB-INF/views/bulkloadfiles/findBulkLoadFilesByRecordedByEquals.jspx deleted file mode 100644 index a4233f663..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadfiles/findBulkLoadFilesByRecordedByEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadfiles/list.jspx b/src/main/webapp/WEB-INF/views/bulkloadfiles/list.jspx deleted file mode 100644 index bcf375217..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadfiles/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadfiles/show.jspx b/src/main/webapp/WEB-INF/views/bulkloadfiles/show.jspx deleted file mode 100644 index c6fff5eea..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadfiles/show.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadfiles/update.jspx b/src/main/webapp/WEB-INF/views/bulkloadfiles/update.jspx deleted file mode 100644 index addc93b1d..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadfiles/update.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadfiles/views.xml b/src/main/webapp/WEB-INF/views/bulkloadfiles/views.xml deleted file mode 100644 index f0b611628..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadfiles/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/bulkloadtemplates/create.jspx b/src/main/webapp/WEB-INF/views/bulkloadtemplates/create.jspx deleted file mode 100644 index 3fd05cf0e..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadtemplates/create.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadtemplates/findBulkLoadTemplatesByRecordedByEquals.jspx b/src/main/webapp/WEB-INF/views/bulkloadtemplates/findBulkLoadTemplatesByRecordedByEquals.jspx deleted file mode 100644 index ba4de7683..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadtemplates/findBulkLoadTemplatesByRecordedByEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadtemplates/findBulkLoadTemplatesByTemplateNameEquals.jspx b/src/main/webapp/WEB-INF/views/bulkloadtemplates/findBulkLoadTemplatesByTemplateNameEquals.jspx deleted file mode 100644 index 165f4c0a5..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadtemplates/findBulkLoadTemplatesByTemplateNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadtemplates/findBulkLoadTemplatesByTemplateNameEqualsAndRecordedByEquals.jspx b/src/main/webapp/WEB-INF/views/bulkloadtemplates/findBulkLoadTemplatesByTemplateNameEqualsAndRecordedByEquals.jspx deleted file mode 100644 index b7b8bcc12..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadtemplates/findBulkLoadTemplatesByTemplateNameEqualsAndRecordedByEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadtemplates/list.jspx b/src/main/webapp/WEB-INF/views/bulkloadtemplates/list.jspx deleted file mode 100644 index 877c34f5a..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadtemplates/list.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadtemplates/show.jspx b/src/main/webapp/WEB-INF/views/bulkloadtemplates/show.jspx deleted file mode 100644 index 41628aadd..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadtemplates/show.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadtemplates/update.jspx b/src/main/webapp/WEB-INF/views/bulkloadtemplates/update.jspx deleted file mode 100644 index ab8034e2a..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadtemplates/update.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/bulkloadtemplates/views.xml b/src/main/webapp/WEB-INF/views/bulkloadtemplates/views.xml deleted file mode 100644 index 197bef9a5..000000000 --- a/src/main/webapp/WEB-INF/views/bulkloadtemplates/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/changepassword/index.jspx b/src/main/webapp/WEB-INF/views/changepassword/index.jspx deleted file mode 100755 index 9c19304f6..000000000 --- a/src/main/webapp/WEB-INF/views/changepassword/index.jspx +++ /dev/null @@ -1,47 +0,0 @@ - -
    - - - -
    - Change Password - - - Change Password - - -
    -
    - - -
    - -
    -
    -
    - - -
    - -
    -
    -
    - - -
    - -
    -

    -
    - - - -
    -
    - -
    -
    -
    \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/changepassword/thanks.jspx b/src/main/webapp/WEB-INF/views/changepassword/thanks.jspx deleted file mode 100755 index 4513f674c..000000000 --- a/src/main/webapp/WEB-INF/views/changepassword/thanks.jspx +++ /dev/null @@ -1,16 +0,0 @@ -
    - - -
    - Change Password - - - Change Password - - -

    You password has been successfully been changed.

    -
    -
    \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/changepassword/views.xml b/src/main/webapp/WEB-INF/views/changepassword/views.xml deleted file mode 100755 index 8c084df24..000000000 --- a/src/main/webapp/WEB-INF/views/changepassword/views.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/chemstructures/create.jspx b/src/main/webapp/WEB-INF/views/chemstructures/create.jspx deleted file mode 100644 index 920acd02c..000000000 --- a/src/main/webapp/WEB-INF/views/chemstructures/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/chemstructures/list.jspx b/src/main/webapp/WEB-INF/views/chemstructures/list.jspx deleted file mode 100644 index d4726915c..000000000 --- a/src/main/webapp/WEB-INF/views/chemstructures/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/chemstructures/show.jspx b/src/main/webapp/WEB-INF/views/chemstructures/show.jspx deleted file mode 100644 index 41499321e..000000000 --- a/src/main/webapp/WEB-INF/views/chemstructures/show.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/chemstructures/update.jspx b/src/main/webapp/WEB-INF/views/chemstructures/update.jspx deleted file mode 100644 index 963131496..000000000 --- a/src/main/webapp/WEB-INF/views/chemstructures/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/chemstructures/views.xml b/src/main/webapp/WEB-INF/views/chemstructures/views.xml deleted file mode 100644 index 38df60497..000000000 --- a/src/main/webapp/WEB-INF/views/chemstructures/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/cmpdregappsettings/create.jspx b/src/main/webapp/WEB-INF/views/cmpdregappsettings/create.jspx deleted file mode 100644 index abafafaf3..000000000 --- a/src/main/webapp/WEB-INF/views/cmpdregappsettings/create.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/cmpdregappsettings/list.jspx b/src/main/webapp/WEB-INF/views/cmpdregappsettings/list.jspx deleted file mode 100644 index 18fd141ce..000000000 --- a/src/main/webapp/WEB-INF/views/cmpdregappsettings/list.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/cmpdregappsettings/show.jspx b/src/main/webapp/WEB-INF/views/cmpdregappsettings/show.jspx deleted file mode 100644 index 76f3348e3..000000000 --- a/src/main/webapp/WEB-INF/views/cmpdregappsettings/show.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/cmpdregappsettings/update.jspx b/src/main/webapp/WEB-INF/views/cmpdregappsettings/update.jspx deleted file mode 100644 index 2aa3d38cd..000000000 --- a/src/main/webapp/WEB-INF/views/cmpdregappsettings/update.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/cmpdregappsettings/views.xml b/src/main/webapp/WEB-INF/views/cmpdregappsettings/views.xml deleted file mode 100644 index c10329b8c..000000000 --- a/src/main/webapp/WEB-INF/views/cmpdregappsettings/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/codekinds/create.jspx b/src/main/webapp/WEB-INF/views/codekinds/create.jspx deleted file mode 100755 index 056aea04b..000000000 --- a/src/main/webapp/WEB-INF/views/codekinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codekinds/findCodeKindsByKindNameEqualsAndLsType.jspx b/src/main/webapp/WEB-INF/views/codekinds/findCodeKindsByKindNameEqualsAndLsType.jspx deleted file mode 100755 index 197ff8900..000000000 --- a/src/main/webapp/WEB-INF/views/codekinds/findCodeKindsByKindNameEqualsAndLsType.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codekinds/findCodeKindsByLsType.jspx b/src/main/webapp/WEB-INF/views/codekinds/findCodeKindsByLsType.jspx deleted file mode 100755 index 357d850e3..000000000 --- a/src/main/webapp/WEB-INF/views/codekinds/findCodeKindsByLsType.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codekinds/findCodeKindsByLsTypeAndKindEquals.jspx b/src/main/webapp/WEB-INF/views/codekinds/findCodeKindsByLsTypeAndKindEquals.jspx deleted file mode 100755 index f9ff2342d..000000000 --- a/src/main/webapp/WEB-INF/views/codekinds/findCodeKindsByLsTypeAndKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codekinds/list.jspx b/src/main/webapp/WEB-INF/views/codekinds/list.jspx deleted file mode 100755 index c9fee15bf..000000000 --- a/src/main/webapp/WEB-INF/views/codekinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codekinds/show.jspx b/src/main/webapp/WEB-INF/views/codekinds/show.jspx deleted file mode 100755 index 7af7b3f9c..000000000 --- a/src/main/webapp/WEB-INF/views/codekinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codekinds/update.jspx b/src/main/webapp/WEB-INF/views/codekinds/update.jspx deleted file mode 100755 index 78b7555e4..000000000 --- a/src/main/webapp/WEB-INF/views/codekinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codekinds/views.xml b/src/main/webapp/WEB-INF/views/codekinds/views.xml deleted file mode 100755 index 70f0ce5be..000000000 --- a/src/main/webapp/WEB-INF/views/codekinds/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/codeorigins/create.jspx b/src/main/webapp/WEB-INF/views/codeorigins/create.jspx deleted file mode 100644 index 9146b5f5d..000000000 --- a/src/main/webapp/WEB-INF/views/codeorigins/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codeorigins/list.jspx b/src/main/webapp/WEB-INF/views/codeorigins/list.jspx deleted file mode 100644 index 3e80976ed..000000000 --- a/src/main/webapp/WEB-INF/views/codeorigins/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codeorigins/show.jspx b/src/main/webapp/WEB-INF/views/codeorigins/show.jspx deleted file mode 100644 index 9a5d8693b..000000000 --- a/src/main/webapp/WEB-INF/views/codeorigins/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codeorigins/update.jspx b/src/main/webapp/WEB-INF/views/codeorigins/update.jspx deleted file mode 100644 index 96b6eb722..000000000 --- a/src/main/webapp/WEB-INF/views/codeorigins/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codeorigins/views.xml b/src/main/webapp/WEB-INF/views/codeorigins/views.xml deleted file mode 100644 index 6eaaf6723..000000000 --- a/src/main/webapp/WEB-INF/views/codeorigins/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/codetypes/create.jspx b/src/main/webapp/WEB-INF/views/codetypes/create.jspx deleted file mode 100755 index d58ace408..000000000 --- a/src/main/webapp/WEB-INF/views/codetypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codetypes/findCodeTypesByTypeNameEquals.jspx b/src/main/webapp/WEB-INF/views/codetypes/findCodeTypesByTypeNameEquals.jspx deleted file mode 100755 index 932678189..000000000 --- a/src/main/webapp/WEB-INF/views/codetypes/findCodeTypesByTypeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codetypes/list.jspx b/src/main/webapp/WEB-INF/views/codetypes/list.jspx deleted file mode 100755 index 562c72c75..000000000 --- a/src/main/webapp/WEB-INF/views/codetypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codetypes/show.jspx b/src/main/webapp/WEB-INF/views/codetypes/show.jspx deleted file mode 100755 index 07f092023..000000000 --- a/src/main/webapp/WEB-INF/views/codetypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codetypes/update.jspx b/src/main/webapp/WEB-INF/views/codetypes/update.jspx deleted file mode 100755 index b8ec2402c..000000000 --- a/src/main/webapp/WEB-INF/views/codetypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/codetypes/views.xml b/src/main/webapp/WEB-INF/views/codetypes/views.xml deleted file mode 100755 index 298e22d17..000000000 --- a/src/main/webapp/WEB-INF/views/codetypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/compoundTypes/create.jspx b/src/main/webapp/WEB-INF/views/compoundTypes/create.jspx deleted file mode 100644 index e68b95d74..000000000 --- a/src/main/webapp/WEB-INF/views/compoundTypes/create.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/compoundTypes/findCompoundTypesByCodeEquals.jspx b/src/main/webapp/WEB-INF/views/compoundTypes/findCompoundTypesByCodeEquals.jspx deleted file mode 100644 index 27b4f929c..000000000 --- a/src/main/webapp/WEB-INF/views/compoundTypes/findCompoundTypesByCodeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/compoundTypes/list.jspx b/src/main/webapp/WEB-INF/views/compoundTypes/list.jspx deleted file mode 100644 index a4007ffbb..000000000 --- a/src/main/webapp/WEB-INF/views/compoundTypes/list.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/compoundTypes/show.jspx b/src/main/webapp/WEB-INF/views/compoundTypes/show.jspx deleted file mode 100644 index bdb8fb2ce..000000000 --- a/src/main/webapp/WEB-INF/views/compoundTypes/show.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/compoundTypes/update.jspx b/src/main/webapp/WEB-INF/views/compoundTypes/update.jspx deleted file mode 100644 index db6eb3077..000000000 --- a/src/main/webapp/WEB-INF/views/compoundTypes/update.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/compoundTypes/views.xml b/src/main/webapp/WEB-INF/views/compoundTypes/views.xml deleted file mode 100644 index b17381a93..000000000 --- a/src/main/webapp/WEB-INF/views/compoundTypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/compounds/create.jspx b/src/main/webapp/WEB-INF/views/compounds/create.jspx deleted file mode 100644 index 5da82d9e6..000000000 --- a/src/main/webapp/WEB-INF/views/compounds/create.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/compounds/findCompoundsByCdId.jspx b/src/main/webapp/WEB-INF/views/compounds/findCompoundsByCdId.jspx deleted file mode 100644 index df3d47bed..000000000 --- a/src/main/webapp/WEB-INF/views/compounds/findCompoundsByCdId.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/compounds/findCompoundsByExternal_idEquals.jspx b/src/main/webapp/WEB-INF/views/compounds/findCompoundsByExternal_idEquals.jspx deleted file mode 100644 index 5cdb5ab90..000000000 --- a/src/main/webapp/WEB-INF/views/compounds/findCompoundsByExternal_idEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/compounds/list.jspx b/src/main/webapp/WEB-INF/views/compounds/list.jspx deleted file mode 100644 index 82a60aeca..000000000 --- a/src/main/webapp/WEB-INF/views/compounds/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/compounds/show.jspx b/src/main/webapp/WEB-INF/views/compounds/show.jspx deleted file mode 100644 index 0730a34d7..000000000 --- a/src/main/webapp/WEB-INF/views/compounds/show.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/compounds/update.jspx b/src/main/webapp/WEB-INF/views/compounds/update.jspx deleted file mode 100644 index 9a6e8e67b..000000000 --- a/src/main/webapp/WEB-INF/views/compounds/update.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/compounds/views.xml b/src/main/webapp/WEB-INF/views/compounds/views.xml deleted file mode 100644 index c4f863fd0..000000000 --- a/src/main/webapp/WEB-INF/views/compounds/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/containerkinds/create.jspx b/src/main/webapp/WEB-INF/views/containerkinds/create.jspx deleted file mode 100755 index f2f6697e5..000000000 --- a/src/main/webapp/WEB-INF/views/containerkinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerkinds/list.jspx b/src/main/webapp/WEB-INF/views/containerkinds/list.jspx deleted file mode 100755 index 56c6d4130..000000000 --- a/src/main/webapp/WEB-INF/views/containerkinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerkinds/show.jspx b/src/main/webapp/WEB-INF/views/containerkinds/show.jspx deleted file mode 100755 index ea10e8ba9..000000000 --- a/src/main/webapp/WEB-INF/views/containerkinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerkinds/update.jspx b/src/main/webapp/WEB-INF/views/containerkinds/update.jspx deleted file mode 100755 index 773a6962b..000000000 --- a/src/main/webapp/WEB-INF/views/containerkinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerkinds/views.xml b/src/main/webapp/WEB-INF/views/containerkinds/views.xml deleted file mode 100755 index 396342472..000000000 --- a/src/main/webapp/WEB-INF/views/containerkinds/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/containerlabels/create.jspx b/src/main/webapp/WEB-INF/views/containerlabels/create.jspx deleted file mode 100755 index cff961ee4..000000000 --- a/src/main/webapp/WEB-INF/views/containerlabels/create.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByContainerAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByContainerAndIgnoredNot.jspx deleted file mode 100755 index 59aa8004f..000000000 --- a/src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByContainerAndIgnoredNot.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByLabelTextEqualsAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByLabelTextEqualsAndIgnoredNot.jspx deleted file mode 100755 index fb58d8d43..000000000 --- a/src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByLabelTextEqualsAndIgnoredNot.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByLsTransactionEquals.jspx deleted file mode 100755 index 070f1c359..000000000 --- a/src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot.jspx deleted file mode 100644 index d02977040..000000000 --- a/src/main/webapp/WEB-INF/views/containerlabels/findContainerLabelsByLsTypeEqualsAndLabelTextEqualsAndIgnoredNot.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerlabels/list.jspx b/src/main/webapp/WEB-INF/views/containerlabels/list.jspx deleted file mode 100755 index d2eca46d0..000000000 --- a/src/main/webapp/WEB-INF/views/containerlabels/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerlabels/show.jspx b/src/main/webapp/WEB-INF/views/containerlabels/show.jspx deleted file mode 100755 index 5bba35844..000000000 --- a/src/main/webapp/WEB-INF/views/containerlabels/show.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerlabels/update.jspx b/src/main/webapp/WEB-INF/views/containerlabels/update.jspx deleted file mode 100755 index f9d4f7d1d..000000000 --- a/src/main/webapp/WEB-INF/views/containerlabels/update.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerlabels/views.xml b/src/main/webapp/WEB-INF/views/containerlabels/views.xml deleted file mode 100755 index 70b226f23..000000000 --- a/src/main/webapp/WEB-INF/views/containerlabels/views.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/containers/create.jspx b/src/main/webapp/WEB-INF/views/containers/create.jspx deleted file mode 100755 index 1b34032e8..000000000 --- a/src/main/webapp/WEB-INF/views/containers/create.jspx +++ /dev/null @@ -1,28 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containers/list.jspx b/src/main/webapp/WEB-INF/views/containers/list.jspx deleted file mode 100755 index 1fd2927f0..000000000 --- a/src/main/webapp/WEB-INF/views/containers/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containers/show.jspx b/src/main/webapp/WEB-INF/views/containers/show.jspx deleted file mode 100755 index 767cf3c7b..000000000 --- a/src/main/webapp/WEB-INF/views/containers/show.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containers/update.jspx b/src/main/webapp/WEB-INF/views/containers/update.jspx deleted file mode 100755 index 0163d148c..000000000 --- a/src/main/webapp/WEB-INF/views/containers/update.jspx +++ /dev/null @@ -1,27 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containers/views.xml b/src/main/webapp/WEB-INF/views/containers/views.xml deleted file mode 100755 index a3125c8cd..000000000 --- a/src/main/webapp/WEB-INF/views/containers/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/containerstates/create.jspx b/src/main/webapp/WEB-INF/views/containerstates/create.jspx deleted file mode 100755 index 65c0482b9..000000000 --- a/src/main/webapp/WEB-INF/views/containerstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerstates/findContainerStatesByContainer.jspx b/src/main/webapp/WEB-INF/views/containerstates/findContainerStatesByContainer.jspx deleted file mode 100755 index a3cbe11dd..000000000 --- a/src/main/webapp/WEB-INF/views/containerstates/findContainerStatesByContainer.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerstates/findContainerStatesByContainerAndLsKindEqualsAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/containerstates/findContainerStatesByContainerAndLsKindEqualsAndIgnoredNot.jspx deleted file mode 100755 index 7279c6c0d..000000000 --- a/src/main/webapp/WEB-INF/views/containerstates/findContainerStatesByContainerAndLsKindEqualsAndIgnoredNot.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerstates/findContainerStatesByIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/containerstates/findContainerStatesByIgnoredNot.jspx deleted file mode 100755 index f2032308f..000000000 --- a/src/main/webapp/WEB-INF/views/containerstates/findContainerStatesByIgnoredNot.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerstates/list.jspx b/src/main/webapp/WEB-INF/views/containerstates/list.jspx deleted file mode 100755 index 8e11eac91..000000000 --- a/src/main/webapp/WEB-INF/views/containerstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerstates/show.jspx b/src/main/webapp/WEB-INF/views/containerstates/show.jspx deleted file mode 100755 index 9a6423278..000000000 --- a/src/main/webapp/WEB-INF/views/containerstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerstates/update.jspx b/src/main/webapp/WEB-INF/views/containerstates/update.jspx deleted file mode 100755 index f36ba2feb..000000000 --- a/src/main/webapp/WEB-INF/views/containerstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containerstates/views.xml b/src/main/webapp/WEB-INF/views/containerstates/views.xml deleted file mode 100755 index 1b4f4d5fb..000000000 --- a/src/main/webapp/WEB-INF/views/containerstates/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/containertypes/create.jspx b/src/main/webapp/WEB-INF/views/containertypes/create.jspx deleted file mode 100755 index f58b91a53..000000000 --- a/src/main/webapp/WEB-INF/views/containertypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containertypes/findContainerTypesByTypeNameEquals.jspx b/src/main/webapp/WEB-INF/views/containertypes/findContainerTypesByTypeNameEquals.jspx deleted file mode 100755 index 4a9da3cde..000000000 --- a/src/main/webapp/WEB-INF/views/containertypes/findContainerTypesByTypeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containertypes/list.jspx b/src/main/webapp/WEB-INF/views/containertypes/list.jspx deleted file mode 100755 index 9c0099535..000000000 --- a/src/main/webapp/WEB-INF/views/containertypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containertypes/show.jspx b/src/main/webapp/WEB-INF/views/containertypes/show.jspx deleted file mode 100755 index 2244b4ece..000000000 --- a/src/main/webapp/WEB-INF/views/containertypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containertypes/update.jspx b/src/main/webapp/WEB-INF/views/containertypes/update.jspx deleted file mode 100755 index 4fff6b5b0..000000000 --- a/src/main/webapp/WEB-INF/views/containertypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containertypes/views.xml b/src/main/webapp/WEB-INF/views/containertypes/views.xml deleted file mode 100755 index 4fac2e49f..000000000 --- a/src/main/webapp/WEB-INF/views/containertypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/containervalues/create.jspx b/src/main/webapp/WEB-INF/views/containervalues/create.jspx deleted file mode 100755 index 4f50b6b3f..000000000 --- a/src/main/webapp/WEB-INF/views/containervalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containervalues/findContainerValuesByIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/containervalues/findContainerValuesByIgnoredNot.jspx deleted file mode 100755 index d0324e183..000000000 --- a/src/main/webapp/WEB-INF/views/containervalues/findContainerValuesByIgnoredNot.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containervalues/findContainerValuesByLsState.jspx b/src/main/webapp/WEB-INF/views/containervalues/findContainerValuesByLsState.jspx deleted file mode 100755 index a338e3696..000000000 --- a/src/main/webapp/WEB-INF/views/containervalues/findContainerValuesByLsState.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containervalues/list.jspx b/src/main/webapp/WEB-INF/views/containervalues/list.jspx deleted file mode 100755 index f102901ee..000000000 --- a/src/main/webapp/WEB-INF/views/containervalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containervalues/show.jspx b/src/main/webapp/WEB-INF/views/containervalues/show.jspx deleted file mode 100755 index 9ade2ad58..000000000 --- a/src/main/webapp/WEB-INF/views/containervalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containervalues/update.jspx b/src/main/webapp/WEB-INF/views/containervalues/update.jspx deleted file mode 100755 index 7358873d3..000000000 --- a/src/main/webapp/WEB-INF/views/containervalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/containervalues/views.xml b/src/main/webapp/WEB-INF/views/containervalues/views.xml deleted file mode 100755 index c9e311821..000000000 --- a/src/main/webapp/WEB-INF/views/containervalues/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/corpnames/create.jspx b/src/main/webapp/WEB-INF/views/corpnames/create.jspx deleted file mode 100644 index 82da7919b..000000000 --- a/src/main/webapp/WEB-INF/views/corpnames/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/corpnames/list.jspx b/src/main/webapp/WEB-INF/views/corpnames/list.jspx deleted file mode 100644 index f5488669b..000000000 --- a/src/main/webapp/WEB-INF/views/corpnames/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/corpnames/show.jspx b/src/main/webapp/WEB-INF/views/corpnames/show.jspx deleted file mode 100644 index d22a7b7f5..000000000 --- a/src/main/webapp/WEB-INF/views/corpnames/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/corpnames/update.jspx b/src/main/webapp/WEB-INF/views/corpnames/update.jspx deleted file mode 100644 index f60f22073..000000000 --- a/src/main/webapp/WEB-INF/views/corpnames/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/corpnames/views.xml b/src/main/webapp/WEB-INF/views/corpnames/views.xml deleted file mode 100644 index beb5e0e8e..000000000 --- a/src/main/webapp/WEB-INF/views/corpnames/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/cronjobs/create.jspx b/src/main/webapp/WEB-INF/views/cronjobs/create.jspx deleted file mode 100644 index 6c6a39055..000000000 --- a/src/main/webapp/WEB-INF/views/cronjobs/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/cronjobs/list.jspx b/src/main/webapp/WEB-INF/views/cronjobs/list.jspx deleted file mode 100644 index ad6bd2446..000000000 --- a/src/main/webapp/WEB-INF/views/cronjobs/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/cronjobs/show.jspx b/src/main/webapp/WEB-INF/views/cronjobs/show.jspx deleted file mode 100644 index 9fad14b44..000000000 --- a/src/main/webapp/WEB-INF/views/cronjobs/show.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/cronjobs/update.jspx b/src/main/webapp/WEB-INF/views/cronjobs/update.jspx deleted file mode 100644 index 01ef5b03f..000000000 --- a/src/main/webapp/WEB-INF/views/cronjobs/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/cronjobs/views.xml b/src/main/webapp/WEB-INF/views/cronjobs/views.xml deleted file mode 100644 index 62a9a57a6..000000000 --- a/src/main/webapp/WEB-INF/views/cronjobs/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/dataAccessFailure.jspx b/src/main/webapp/WEB-INF/views/dataAccessFailure.jspx deleted file mode 100755 index 15d9b23ee..000000000 --- a/src/main/webapp/WEB-INF/views/dataAccessFailure.jspx +++ /dev/null @@ -1,30 +0,0 @@ -
    - - - - -

    ${fn:escapeXml(title)}

    -

    - -

    - -

    -

    - -

    - - - - - - - - -
    -
    -
    -

    -
    -
    -
    - diff --git a/src/main/webapp/WEB-INF/views/ddictkinds/create.jspx b/src/main/webapp/WEB-INF/views/ddictkinds/create.jspx deleted file mode 100644 index 356cfc7bf..000000000 --- a/src/main/webapp/WEB-INF/views/ddictkinds/create.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictkinds/findDDictKindsByLsTypeEqualsAndNameEquals.jspx b/src/main/webapp/WEB-INF/views/ddictkinds/findDDictKindsByLsTypeEqualsAndNameEquals.jspx deleted file mode 100644 index 467f432a4..000000000 --- a/src/main/webapp/WEB-INF/views/ddictkinds/findDDictKindsByLsTypeEqualsAndNameEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictkinds/list.jspx b/src/main/webapp/WEB-INF/views/ddictkinds/list.jspx deleted file mode 100644 index 75f6c1e29..000000000 --- a/src/main/webapp/WEB-INF/views/ddictkinds/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictkinds/show.jspx b/src/main/webapp/WEB-INF/views/ddictkinds/show.jspx deleted file mode 100644 index f04bdcd76..000000000 --- a/src/main/webapp/WEB-INF/views/ddictkinds/show.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictkinds/update.jspx b/src/main/webapp/WEB-INF/views/ddictkinds/update.jspx deleted file mode 100644 index 31a4db149..000000000 --- a/src/main/webapp/WEB-INF/views/ddictkinds/update.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictkinds/views.xml b/src/main/webapp/WEB-INF/views/ddictkinds/views.xml deleted file mode 100644 index 7e6bb7ad0..000000000 --- a/src/main/webapp/WEB-INF/views/ddictkinds/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/ddicttypes/create.jspx b/src/main/webapp/WEB-INF/views/ddicttypes/create.jspx deleted file mode 100644 index bdfb621a0..000000000 --- a/src/main/webapp/WEB-INF/views/ddicttypes/create.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddicttypes/findDDictTypesByNameEquals.jspx b/src/main/webapp/WEB-INF/views/ddicttypes/findDDictTypesByNameEquals.jspx deleted file mode 100644 index 1ff93cb13..000000000 --- a/src/main/webapp/WEB-INF/views/ddicttypes/findDDictTypesByNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddicttypes/list.jspx b/src/main/webapp/WEB-INF/views/ddicttypes/list.jspx deleted file mode 100644 index bc3b96a12..000000000 --- a/src/main/webapp/WEB-INF/views/ddicttypes/list.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddicttypes/show.jspx b/src/main/webapp/WEB-INF/views/ddicttypes/show.jspx deleted file mode 100644 index f24084947..000000000 --- a/src/main/webapp/WEB-INF/views/ddicttypes/show.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddicttypes/update.jspx b/src/main/webapp/WEB-INF/views/ddicttypes/update.jspx deleted file mode 100644 index f0c0a0456..000000000 --- a/src/main/webapp/WEB-INF/views/ddicttypes/update.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddicttypes/views.xml b/src/main/webapp/WEB-INF/views/ddicttypes/views.xml deleted file mode 100644 index eae1320bf..000000000 --- a/src/main/webapp/WEB-INF/views/ddicttypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/ddictvalues/create.jspx b/src/main/webapp/WEB-INF/views/ddictvalues/create.jspx deleted file mode 100644 index 18883cd79..000000000 --- a/src/main/webapp/WEB-INF/views/ddictvalues/create.jspx +++ /dev/null @@ -1,18 +0,0 @@ - -
    - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByCodeNameEquals.jspx b/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByCodeNameEquals.jspx deleted file mode 100644 index d44a9cdb6..000000000 --- a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByCodeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByIgnoredNot.jspx deleted file mode 100644 index 9264c5263..000000000 --- a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByIgnoredNot.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLabelTextLike.jspx b/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLabelTextLike.jspx deleted file mode 100644 index bb378e65e..000000000 --- a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLabelTextLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsKindEquals.jspx deleted file mode 100644 index 861663c75..000000000 --- a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsTypeEquals.jspx b/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsTypeEquals.jspx deleted file mode 100644 index 0ad4ac73e..000000000 --- a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsTypeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index 2d34bc52d..000000000 --- a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsTypeEqualsAndLsKindEqualsAndShortNameEquals.jspx b/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsTypeEqualsAndLsKindEqualsAndShortNameEquals.jspx deleted file mode 100644 index 87902df6f..000000000 --- a/src/main/webapp/WEB-INF/views/ddictvalues/findDDictValuesByLsTypeEqualsAndLsKindEqualsAndShortNameEquals.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictvalues/list.jspx b/src/main/webapp/WEB-INF/views/ddictvalues/list.jspx deleted file mode 100644 index 7768b3671..000000000 --- a/src/main/webapp/WEB-INF/views/ddictvalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictvalues/show.jspx b/src/main/webapp/WEB-INF/views/ddictvalues/show.jspx deleted file mode 100644 index 12814d7e5..000000000 --- a/src/main/webapp/WEB-INF/views/ddictvalues/show.jspx +++ /dev/null @@ -1,17 +0,0 @@ - -
    - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictvalues/update.jspx b/src/main/webapp/WEB-INF/views/ddictvalues/update.jspx deleted file mode 100644 index 384de61b0..000000000 --- a/src/main/webapp/WEB-INF/views/ddictvalues/update.jspx +++ /dev/null @@ -1,17 +0,0 @@ - -
    - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/ddictvalues/views.xml b/src/main/webapp/WEB-INF/views/ddictvalues/views.xml deleted file mode 100644 index 5dc1b5914..000000000 --- a/src/main/webapp/WEB-INF/views/ddictvalues/views.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/experimentkinds/create.jspx b/src/main/webapp/WEB-INF/views/experimentkinds/create.jspx deleted file mode 100755 index ac4acc7b7..000000000 --- a/src/main/webapp/WEB-INF/views/experimentkinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentkinds/list.jspx b/src/main/webapp/WEB-INF/views/experimentkinds/list.jspx deleted file mode 100755 index 50824161e..000000000 --- a/src/main/webapp/WEB-INF/views/experimentkinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentkinds/show.jspx b/src/main/webapp/WEB-INF/views/experimentkinds/show.jspx deleted file mode 100755 index 6704f47a4..000000000 --- a/src/main/webapp/WEB-INF/views/experimentkinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentkinds/update.jspx b/src/main/webapp/WEB-INF/views/experimentkinds/update.jspx deleted file mode 100755 index 703ba5b76..000000000 --- a/src/main/webapp/WEB-INF/views/experimentkinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentkinds/views.xml b/src/main/webapp/WEB-INF/views/experimentkinds/views.xml deleted file mode 100755 index 5efdfcb30..000000000 --- a/src/main/webapp/WEB-INF/views/experimentkinds/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/experimentlabels/create.jspx b/src/main/webapp/WEB-INF/views/experimentlabels/create.jspx deleted file mode 100755 index 8eedb01b1..000000000 --- a/src/main/webapp/WEB-INF/views/experimentlabels/create.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByExperiment.jspx b/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByExperiment.jspx deleted file mode 100755 index aeb6ffae4..000000000 --- a/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByExperiment.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByExperimentAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByExperimentAndIgnoredNot.jspx deleted file mode 100644 index 1970c53de..000000000 --- a/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByExperimentAndIgnoredNot.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLabelTextLike.jspx b/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLabelTextLike.jspx deleted file mode 100644 index 29c288a46..000000000 --- a/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLabelTextLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLabelTextLikeAndLabelTypeAndKindEqualsAndPreferredNotAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLabelTextLikeAndLabelTypeAndKindEqualsAndPreferredNotAndIgnoredNot.jspx deleted file mode 100755 index b1ac7c4a9..000000000 --- a/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLabelTextLikeAndLabelTypeAndKindEqualsAndPreferredNotAndIgnoredNot.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot.jspx deleted file mode 100755 index 300a311f5..000000000 --- a/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLabelTextLikeAndLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot.jspx deleted file mode 100755 index 19ff735b5..000000000 --- a/src/main/webapp/WEB-INF/views/experimentlabels/findExperimentLabelsByLsTypeAndKindEqualsAndPreferredNotAndIgnoredNot.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentlabels/list.jspx b/src/main/webapp/WEB-INF/views/experimentlabels/list.jspx deleted file mode 100755 index f29ef3bec..000000000 --- a/src/main/webapp/WEB-INF/views/experimentlabels/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentlabels/show.jspx b/src/main/webapp/WEB-INF/views/experimentlabels/show.jspx deleted file mode 100755 index 3946f1a8c..000000000 --- a/src/main/webapp/WEB-INF/views/experimentlabels/show.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentlabels/update.jspx b/src/main/webapp/WEB-INF/views/experimentlabels/update.jspx deleted file mode 100755 index acedaf056..000000000 --- a/src/main/webapp/WEB-INF/views/experimentlabels/update.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentlabels/views.xml b/src/main/webapp/WEB-INF/views/experimentlabels/views.xml deleted file mode 100755 index d928d7b8a..000000000 --- a/src/main/webapp/WEB-INF/views/experimentlabels/views.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/experiments/create.jspx b/src/main/webapp/WEB-INF/views/experiments/create.jspx deleted file mode 100755 index a0253a333..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/create.jspx +++ /dev/null @@ -1,28 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByCodeNameEquals.jspx b/src/main/webapp/WEB-INF/views/experiments/findExperimentsByCodeNameEquals.jspx deleted file mode 100755 index 1e499347a..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByCodeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByCodeNameLike.jspx b/src/main/webapp/WEB-INF/views/experiments/findExperimentsByCodeNameLike.jspx deleted file mode 100644 index 179692233..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByCodeNameLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsKindEquals.jspx deleted file mode 100644 index 665f7333c..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsKindLike.jspx b/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsKindLike.jspx deleted file mode 100644 index 4cae68c24..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsKindLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTransaction.jspx b/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTransaction.jspx deleted file mode 100755 index 3eb08a537..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTransaction.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTypeEquals.jspx b/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTypeEquals.jspx deleted file mode 100644 index 759ab9e01..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTypeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index 362a6bd6a..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTypeLike.jspx b/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTypeLike.jspx deleted file mode 100644 index ed4d2ce32..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByLsTypeLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByProtocol.jspx b/src/main/webapp/WEB-INF/views/experiments/findExperimentsByProtocol.jspx deleted file mode 100755 index e656d280a..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByProtocol.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByRecordedByLike.jspx b/src/main/webapp/WEB-INF/views/experiments/findExperimentsByRecordedByLike.jspx deleted file mode 100644 index 79c33afd1..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/findExperimentsByRecordedByLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/list.jspx b/src/main/webapp/WEB-INF/views/experiments/list.jspx deleted file mode 100755 index 78b0d40f5..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/show.jspx b/src/main/webapp/WEB-INF/views/experiments/show.jspx deleted file mode 100755 index 17792274b..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/show.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/update.jspx b/src/main/webapp/WEB-INF/views/experiments/update.jspx deleted file mode 100755 index f6f53d178..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/update.jspx +++ /dev/null @@ -1,27 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experiments/views.xml b/src/main/webapp/WEB-INF/views/experiments/views.xml deleted file mode 100755 index 7da32edb3..000000000 --- a/src/main/webapp/WEB-INF/views/experiments/views.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/experimentstates/create.jspx b/src/main/webapp/WEB-INF/views/experimentstates/create.jspx deleted file mode 100755 index 3cb8d8bca..000000000 --- a/src/main/webapp/WEB-INF/views/experimentstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentstates/findExperimentStatesByExperiment.jspx b/src/main/webapp/WEB-INF/views/experimentstates/findExperimentStatesByExperiment.jspx deleted file mode 100755 index 688b27256..000000000 --- a/src/main/webapp/WEB-INF/views/experimentstates/findExperimentStatesByExperiment.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentstates/list.jspx b/src/main/webapp/WEB-INF/views/experimentstates/list.jspx deleted file mode 100755 index e6fe5846e..000000000 --- a/src/main/webapp/WEB-INF/views/experimentstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentstates/show.jspx b/src/main/webapp/WEB-INF/views/experimentstates/show.jspx deleted file mode 100755 index a29beff39..000000000 --- a/src/main/webapp/WEB-INF/views/experimentstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentstates/update.jspx b/src/main/webapp/WEB-INF/views/experimentstates/update.jspx deleted file mode 100755 index 6c8ea48e0..000000000 --- a/src/main/webapp/WEB-INF/views/experimentstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentstates/views.xml b/src/main/webapp/WEB-INF/views/experimentstates/views.xml deleted file mode 100755 index 80e536607..000000000 --- a/src/main/webapp/WEB-INF/views/experimentstates/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/experimenttypes/create.jspx b/src/main/webapp/WEB-INF/views/experimenttypes/create.jspx deleted file mode 100755 index 78fcf445a..000000000 --- a/src/main/webapp/WEB-INF/views/experimenttypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimenttypes/findExperimentTypesByTypeNameEquals.jspx b/src/main/webapp/WEB-INF/views/experimenttypes/findExperimentTypesByTypeNameEquals.jspx deleted file mode 100755 index b87471f2e..000000000 --- a/src/main/webapp/WEB-INF/views/experimenttypes/findExperimentTypesByTypeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimenttypes/list.jspx b/src/main/webapp/WEB-INF/views/experimenttypes/list.jspx deleted file mode 100755 index 31b7d9650..000000000 --- a/src/main/webapp/WEB-INF/views/experimenttypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimenttypes/show.jspx b/src/main/webapp/WEB-INF/views/experimenttypes/show.jspx deleted file mode 100755 index 9c0f992be..000000000 --- a/src/main/webapp/WEB-INF/views/experimenttypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimenttypes/update.jspx b/src/main/webapp/WEB-INF/views/experimenttypes/update.jspx deleted file mode 100755 index e6ca1cfd1..000000000 --- a/src/main/webapp/WEB-INF/views/experimenttypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimenttypes/views.xml b/src/main/webapp/WEB-INF/views/experimenttypes/views.xml deleted file mode 100755 index be2bc5817..000000000 --- a/src/main/webapp/WEB-INF/views/experimenttypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/experimentvalues/create.jspx b/src/main/webapp/WEB-INF/views/experimentvalues/create.jspx deleted file mode 100755 index 2eee90cef..000000000 --- a/src/main/webapp/WEB-INF/views/experimentvalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndCodeValueLike.jspx b/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndCodeValueLike.jspx deleted file mode 100644 index b287e726a..000000000 --- a/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndCodeValueLike.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndDateValueEquals.jspx b/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndDateValueEquals.jspx deleted file mode 100644 index 618c09ce8..000000000 --- a/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndDateValueEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndDateValueLike.jspx b/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndDateValueLike.jspx deleted file mode 100644 index 7b229b4ef..000000000 --- a/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndDateValueLike.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndStringValueLike.jspx b/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndStringValueLike.jspx deleted file mode 100644 index bd25b34d0..000000000 --- a/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsKindEqualsAndStringValueLike.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsState.jspx b/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsState.jspx deleted file mode 100755 index 95f638cf7..000000000 --- a/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsState.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals.jspx b/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals.jspx deleted file mode 100755 index ccdcdba18..000000000 --- a/src/main/webapp/WEB-INF/views/experimentvalues/findExperimentValuesByLsStateAndIgnoredNotAndLsKindEqualsAndLsTypeEqualsAndStringValueEquals.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentvalues/list.jspx b/src/main/webapp/WEB-INF/views/experimentvalues/list.jspx deleted file mode 100755 index 1b813b417..000000000 --- a/src/main/webapp/WEB-INF/views/experimentvalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentvalues/show.jspx b/src/main/webapp/WEB-INF/views/experimentvalues/show.jspx deleted file mode 100755 index 6d5c44e55..000000000 --- a/src/main/webapp/WEB-INF/views/experimentvalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentvalues/update.jspx b/src/main/webapp/WEB-INF/views/experimentvalues/update.jspx deleted file mode 100755 index e6f02b1c2..000000000 --- a/src/main/webapp/WEB-INF/views/experimentvalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/experimentvalues/views.xml b/src/main/webapp/WEB-INF/views/experimentvalues/views.xml deleted file mode 100755 index 649b6c148..000000000 --- a/src/main/webapp/WEB-INF/views/experimentvalues/views.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/filelists/create.jspx b/src/main/webapp/WEB-INF/views/filelists/create.jspx deleted file mode 100644 index 8111e1297..000000000 --- a/src/main/webapp/WEB-INF/views/filelists/create.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filelists/findFileListsByLot.jspx b/src/main/webapp/WEB-INF/views/filelists/findFileListsByLot.jspx deleted file mode 100644 index b52de3ced..000000000 --- a/src/main/webapp/WEB-INF/views/filelists/findFileListsByLot.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filelists/findFileListsByUrlEquals.jspx b/src/main/webapp/WEB-INF/views/filelists/findFileListsByUrlEquals.jspx deleted file mode 100644 index f6932cf29..000000000 --- a/src/main/webapp/WEB-INF/views/filelists/findFileListsByUrlEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filelists/list.jspx b/src/main/webapp/WEB-INF/views/filelists/list.jspx deleted file mode 100644 index 64355ba90..000000000 --- a/src/main/webapp/WEB-INF/views/filelists/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filelists/show.jspx b/src/main/webapp/WEB-INF/views/filelists/show.jspx deleted file mode 100644 index ff7ff83db..000000000 --- a/src/main/webapp/WEB-INF/views/filelists/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filelists/update.jspx b/src/main/webapp/WEB-INF/views/filelists/update.jspx deleted file mode 100644 index 1dc564828..000000000 --- a/src/main/webapp/WEB-INF/views/filelists/update.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filelists/views.xml b/src/main/webapp/WEB-INF/views/filelists/views.xml deleted file mode 100644 index 8d1198822..000000000 --- a/src/main/webapp/WEB-INF/views/filelists/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/filethings/create.jspx b/src/main/webapp/WEB-INF/views/filethings/create.jspx deleted file mode 100755 index 81a7c460a..000000000 --- a/src/main/webapp/WEB-INF/views/filethings/create.jspx +++ /dev/null @@ -1,27 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filethings/list.jspx b/src/main/webapp/WEB-INF/views/filethings/list.jspx deleted file mode 100755 index e88856f23..000000000 --- a/src/main/webapp/WEB-INF/views/filethings/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filethings/show.jspx b/src/main/webapp/WEB-INF/views/filethings/show.jspx deleted file mode 100755 index 67d4694bb..000000000 --- a/src/main/webapp/WEB-INF/views/filethings/show.jspx +++ /dev/null @@ -1,25 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filethings/update.jspx b/src/main/webapp/WEB-INF/views/filethings/update.jspx deleted file mode 100755 index dce93a1c2..000000000 --- a/src/main/webapp/WEB-INF/views/filethings/update.jspx +++ /dev/null @@ -1,26 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filethings/views.xml b/src/main/webapp/WEB-INF/views/filethings/views.xml deleted file mode 100755 index ef318ae2d..000000000 --- a/src/main/webapp/WEB-INF/views/filethings/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/filetypes/create.jspx b/src/main/webapp/WEB-INF/views/filetypes/create.jspx deleted file mode 100644 index d8208d0c5..000000000 --- a/src/main/webapp/WEB-INF/views/filetypes/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filetypes/findFileTypesByCodeEquals.jspx b/src/main/webapp/WEB-INF/views/filetypes/findFileTypesByCodeEquals.jspx deleted file mode 100644 index b65a3db53..000000000 --- a/src/main/webapp/WEB-INF/views/filetypes/findFileTypesByCodeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filetypes/list.jspx b/src/main/webapp/WEB-INF/views/filetypes/list.jspx deleted file mode 100644 index 18e496083..000000000 --- a/src/main/webapp/WEB-INF/views/filetypes/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filetypes/show.jspx b/src/main/webapp/WEB-INF/views/filetypes/show.jspx deleted file mode 100644 index 50f834552..000000000 --- a/src/main/webapp/WEB-INF/views/filetypes/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filetypes/update.jspx b/src/main/webapp/WEB-INF/views/filetypes/update.jspx deleted file mode 100644 index 9bfdcd606..000000000 --- a/src/main/webapp/WEB-INF/views/filetypes/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/filetypes/views.xml b/src/main/webapp/WEB-INF/views/filetypes/views.xml deleted file mode 100644 index 3ac4516ec..000000000 --- a/src/main/webapp/WEB-INF/views/filetypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/footer.jspx b/src/main/webapp/WEB-INF/views/footer.jspx deleted file mode 100755 index 7540acf5b..000000000 --- a/src/main/webapp/WEB-INF/views/footer.jspx +++ /dev/null @@ -1,43 +0,0 @@ - - diff --git a/src/main/webapp/WEB-INF/views/forgotpassword/index.jspx b/src/main/webapp/WEB-INF/views/forgotpassword/index.jspx deleted file mode 100755 index 480737175..000000000 --- a/src/main/webapp/WEB-INF/views/forgotpassword/index.jspx +++ /dev/null @@ -1,34 +0,0 @@ - -
    - - - - -
    - Forgot Password - - - Forgot Password - - -
    -
    - - -
    - -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/forgotpassword/thanks.jspx b/src/main/webapp/WEB-INF/views/forgotpassword/thanks.jspx deleted file mode 100755 index 8b3ca3f74..000000000 --- a/src/main/webapp/WEB-INF/views/forgotpassword/thanks.jspx +++ /dev/null @@ -1,16 +0,0 @@ -
    - - -
    - - - - Forgot Password - - -

    Your new password has been sent to your email address.

    -
    -
    \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/forgotpassword/views.xml b/src/main/webapp/WEB-INF/views/forgotpassword/views.xml deleted file mode 100755 index 083b5ddeb..000000000 --- a/src/main/webapp/WEB-INF/views/forgotpassword/views.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/header.jspx b/src/main/webapp/WEB-INF/views/header.jspx deleted file mode 100755 index dbcf95042..000000000 --- a/src/main/webapp/WEB-INF/views/header.jspx +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/index-template.jspx b/src/main/webapp/WEB-INF/views/index-template.jspx deleted file mode 100755 index 07000646a..000000000 --- a/src/main/webapp/WEB-INF/views/index-template.jspx +++ /dev/null @@ -1,11 +0,0 @@ -
    - - - - - -

    - -

    -
    -
    \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/index.jspx b/src/main/webapp/WEB-INF/views/index.jspx deleted file mode 100755 index 12b501465..000000000 --- a/src/main/webapp/WEB-INF/views/index.jspx +++ /dev/null @@ -1,14 +0,0 @@ -
    - - - - - -

    - -

    -

    - -

    -
    -
    \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/interactionkinds/create.jspx b/src/main/webapp/WEB-INF/views/interactionkinds/create.jspx deleted file mode 100755 index 78d578c6e..000000000 --- a/src/main/webapp/WEB-INF/views/interactionkinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/interactionkinds/list.jspx b/src/main/webapp/WEB-INF/views/interactionkinds/list.jspx deleted file mode 100755 index ce30e11d9..000000000 --- a/src/main/webapp/WEB-INF/views/interactionkinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/interactionkinds/show.jspx b/src/main/webapp/WEB-INF/views/interactionkinds/show.jspx deleted file mode 100755 index fb8f89307..000000000 --- a/src/main/webapp/WEB-INF/views/interactionkinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/interactionkinds/update.jspx b/src/main/webapp/WEB-INF/views/interactionkinds/update.jspx deleted file mode 100755 index 8798001bb..000000000 --- a/src/main/webapp/WEB-INF/views/interactionkinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/interactionkinds/views.xml b/src/main/webapp/WEB-INF/views/interactionkinds/views.xml deleted file mode 100755 index 1964c7b44..000000000 --- a/src/main/webapp/WEB-INF/views/interactionkinds/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/interactiontypes/create.jspx b/src/main/webapp/WEB-INF/views/interactiontypes/create.jspx deleted file mode 100755 index fa7effe3b..000000000 --- a/src/main/webapp/WEB-INF/views/interactiontypes/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/interactiontypes/list.jspx b/src/main/webapp/WEB-INF/views/interactiontypes/list.jspx deleted file mode 100755 index c7199c705..000000000 --- a/src/main/webapp/WEB-INF/views/interactiontypes/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/interactiontypes/show.jspx b/src/main/webapp/WEB-INF/views/interactiontypes/show.jspx deleted file mode 100755 index dc9094d4c..000000000 --- a/src/main/webapp/WEB-INF/views/interactiontypes/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/interactiontypes/update.jspx b/src/main/webapp/WEB-INF/views/interactiontypes/update.jspx deleted file mode 100755 index 0d574af86..000000000 --- a/src/main/webapp/WEB-INF/views/interactiontypes/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/interactiontypes/views.xml b/src/main/webapp/WEB-INF/views/interactiontypes/views.xml deleted file mode 100755 index 8e7c93f7e..000000000 --- a/src/main/webapp/WEB-INF/views/interactiontypes/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/isosalts/create.jspx b/src/main/webapp/WEB-INF/views/isosalts/create.jspx deleted file mode 100644 index 9f7936446..000000000 --- a/src/main/webapp/WEB-INF/views/isosalts/create.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isosalts/findIsoSaltsBySaltForm.jspx b/src/main/webapp/WEB-INF/views/isosalts/findIsoSaltsBySaltForm.jspx deleted file mode 100644 index d1e9830a9..000000000 --- a/src/main/webapp/WEB-INF/views/isosalts/findIsoSaltsBySaltForm.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isosalts/findIsoSaltsBySaltFormAndType.jspx b/src/main/webapp/WEB-INF/views/isosalts/findIsoSaltsBySaltFormAndType.jspx deleted file mode 100644 index 9ca581390..000000000 --- a/src/main/webapp/WEB-INF/views/isosalts/findIsoSaltsBySaltFormAndType.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isosalts/list.jspx b/src/main/webapp/WEB-INF/views/isosalts/list.jspx deleted file mode 100644 index af7cdefa2..000000000 --- a/src/main/webapp/WEB-INF/views/isosalts/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isosalts/show.jspx b/src/main/webapp/WEB-INF/views/isosalts/show.jspx deleted file mode 100644 index e23019994..000000000 --- a/src/main/webapp/WEB-INF/views/isosalts/show.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isosalts/update.jspx b/src/main/webapp/WEB-INF/views/isosalts/update.jspx deleted file mode 100644 index 6b8231cba..000000000 --- a/src/main/webapp/WEB-INF/views/isosalts/update.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isosalts/views.xml b/src/main/webapp/WEB-INF/views/isosalts/views.xml deleted file mode 100644 index 04f9aa9b1..000000000 --- a/src/main/webapp/WEB-INF/views/isosalts/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/isotopes/create.jspx b/src/main/webapp/WEB-INF/views/isotopes/create.jspx deleted file mode 100644 index 4c5096488..000000000 --- a/src/main/webapp/WEB-INF/views/isotopes/create.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isotopes/findIsotopesByAbbrevEquals.jspx b/src/main/webapp/WEB-INF/views/isotopes/findIsotopesByAbbrevEquals.jspx deleted file mode 100644 index 1112e4a8a..000000000 --- a/src/main/webapp/WEB-INF/views/isotopes/findIsotopesByAbbrevEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isotopes/findIsotopesByAbbrevEqualsAndNameEquals.jspx b/src/main/webapp/WEB-INF/views/isotopes/findIsotopesByAbbrevEqualsAndNameEquals.jspx deleted file mode 100644 index fc449cd3c..000000000 --- a/src/main/webapp/WEB-INF/views/isotopes/findIsotopesByAbbrevEqualsAndNameEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isotopes/findIsotopesByNameEquals.jspx b/src/main/webapp/WEB-INF/views/isotopes/findIsotopesByNameEquals.jspx deleted file mode 100644 index bebd972e3..000000000 --- a/src/main/webapp/WEB-INF/views/isotopes/findIsotopesByNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isotopes/list.jspx b/src/main/webapp/WEB-INF/views/isotopes/list.jspx deleted file mode 100644 index f68aebe72..000000000 --- a/src/main/webapp/WEB-INF/views/isotopes/list.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isotopes/show.jspx b/src/main/webapp/WEB-INF/views/isotopes/show.jspx deleted file mode 100644 index b3a298d08..000000000 --- a/src/main/webapp/WEB-INF/views/isotopes/show.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isotopes/update.jspx b/src/main/webapp/WEB-INF/views/isotopes/update.jspx deleted file mode 100644 index be9b4d905..000000000 --- a/src/main/webapp/WEB-INF/views/isotopes/update.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/isotopes/views.xml b/src/main/webapp/WEB-INF/views/isotopes/views.xml deleted file mode 100644 index c4fb100c5..000000000 --- a/src/main/webapp/WEB-INF/views/isotopes/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainers/create.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainers/create.jspx deleted file mode 100755 index 561af363c..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainers/create.jspx +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainers/findItxContainerContainersByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainers/findItxContainerContainersByLsTransactionEquals.jspx deleted file mode 100755 index f55d14e11..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainers/findItxContainerContainersByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainers/findItxContainerContainersByLsTypeEqualsAndFirstContainerEquals.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainers/findItxContainerContainersByLsTypeEqualsAndFirstContainerEquals.jspx deleted file mode 100644 index f0f454c45..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainers/findItxContainerContainersByLsTypeEqualsAndFirstContainerEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainers/findItxContainerContainersByLsTypeEqualsAndSecondContainerEquals.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainers/findItxContainerContainersByLsTypeEqualsAndSecondContainerEquals.jspx deleted file mode 100644 index 2dc78b5a3..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainers/findItxContainerContainersByLsTypeEqualsAndSecondContainerEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainers/list.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainers/list.jspx deleted file mode 100755 index d66b23d53..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainers/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainers/show.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainers/show.jspx deleted file mode 100755 index f968355b4..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainers/show.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainers/update.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainers/update.jspx deleted file mode 100755 index a6afb84f3..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainers/update.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainers/views.xml b/src/main/webapp/WEB-INF/views/itxcontainercontainers/views.xml deleted file mode 100755 index 4160de3c3..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainers/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/create.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/create.jspx deleted file mode 100755 index 0ad6af0b0..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/list.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/list.jspx deleted file mode 100755 index ea53b2e13..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/show.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/show.jspx deleted file mode 100755 index e92514634..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/update.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/update.jspx deleted file mode 100755 index 26de29086..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/views.xml b/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/views.xml deleted file mode 100755 index f34237617..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainerstates/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/create.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/create.jspx deleted file mode 100755 index 0cfed2972..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/list.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/list.jspx deleted file mode 100755 index 223dd9b7b..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/show.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/show.jspx deleted file mode 100755 index d2fbfee96..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/update.jspx b/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/update.jspx deleted file mode 100755 index 65e4709c4..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/views.xml b/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/views.xml deleted file mode 100755 index 17103ed1f..000000000 --- a/src/main/webapp/WEB-INF/views/itxcontainercontainervalues/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/create.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperiments/create.jspx deleted file mode 100644 index 6cfe0435a..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/create.jspx +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/findItxExperimentExperimentsByFirstExperiment.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperiments/findItxExperimentExperimentsByFirstExperiment.jspx deleted file mode 100644 index 170529d04..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/findItxExperimentExperimentsByFirstExperiment.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/findItxExperimentExperimentsByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperiments/findItxExperimentExperimentsByLsTransactionEquals.jspx deleted file mode 100644 index fffaeecfb..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/findItxExperimentExperimentsByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/findItxExperimentExperimentsBySecondExperiment.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperiments/findItxExperimentExperimentsBySecondExperiment.jspx deleted file mode 100644 index e5d25885e..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/findItxExperimentExperimentsBySecondExperiment.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/list.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperiments/list.jspx deleted file mode 100644 index e9b5fb447..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/show.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperiments/show.jspx deleted file mode 100644 index 8a210251c..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/show.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/update.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperiments/update.jspx deleted file mode 100644 index 273cfc8bf..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/update.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/views.xml b/src/main/webapp/WEB-INF/views/itxexperimentexperiments/views.xml deleted file mode 100644 index 8e03d8561..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperiments/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/create.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/create.jspx deleted file mode 100644 index 916e3b921..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/list.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/list.jspx deleted file mode 100644 index cc6bc1e32..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/show.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/show.jspx deleted file mode 100644 index 9b2efd1fa..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/update.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/update.jspx deleted file mode 100644 index 4b702c6cc..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/views.xml b/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/views.xml deleted file mode 100644 index fb1159847..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperimentstates/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/create.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/create.jspx deleted file mode 100644 index 324860871..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/list.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/list.jspx deleted file mode 100644 index 2cd613308..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/show.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/show.jspx deleted file mode 100644 index f67b81bd0..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/update.jspx b/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/update.jspx deleted file mode 100644 index f57412e0c..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/views.xml b/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/views.xml deleted file mode 100644 index ba1b8b0d3..000000000 --- a/src/main/webapp/WEB-INF/views/itxexperimentexperimentvalues/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/create.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthings/create.jspx deleted file mode 100644 index 4a02368a4..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/create.jspx +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/findItxLsThingLsThingsByCodeNameEquals.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthings/findItxLsThingLsThingsByCodeNameEquals.jspx deleted file mode 100644 index 05032ab7b..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/findItxLsThingLsThingsByCodeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/findItxLsThingLsThingsByFirstLsThing.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthings/findItxLsThingLsThingsByFirstLsThing.jspx deleted file mode 100644 index baf5c61d8..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/findItxLsThingLsThingsByFirstLsThing.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/findItxLsThingLsThingsBySecondLsThing.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthings/findItxLsThingLsThingsBySecondLsThing.jspx deleted file mode 100644 index 5a2737507..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/findItxLsThingLsThingsBySecondLsThing.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/list.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthings/list.jspx deleted file mode 100644 index 8fd1764c7..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/show.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthings/show.jspx deleted file mode 100644 index c02262c7e..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/show.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/update.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthings/update.jspx deleted file mode 100644 index 0e33e8fe1..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/update.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/views.xml b/src/main/webapp/WEB-INF/views/itxlsthinglsthings/views.xml deleted file mode 100644 index 941e8a19d..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthings/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/create.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/create.jspx deleted file mode 100644 index a61683d40..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/list.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/list.jspx deleted file mode 100644 index e4fc9e4ea..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/show.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/show.jspx deleted file mode 100644 index 72ce36a06..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/update.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/update.jspx deleted file mode 100644 index 11be18dd0..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/views.xml b/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/views.xml deleted file mode 100644 index 10d8a61b8..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthingstates/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/create.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/create.jspx deleted file mode 100644 index c17db6956..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/list.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/list.jspx deleted file mode 100644 index 5fc0a0b56..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/show.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/show.jspx deleted file mode 100644 index 1aa92a525..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/update.jspx b/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/update.jspx deleted file mode 100644 index f2f9165dc..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/views.xml b/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/views.xml deleted file mode 100644 index 64232a470..000000000 --- a/src/main/webapp/WEB-INF/views/itxlsthinglsthingvalues/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/create.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocols/create.jspx deleted file mode 100755 index 5ac273de8..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/create.jspx +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/findItxProtocolProtocolsByFirstProtocol.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocols/findItxProtocolProtocolsByFirstProtocol.jspx deleted file mode 100644 index bcae457ec..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/findItxProtocolProtocolsByFirstProtocol.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/findItxProtocolProtocolsByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocols/findItxProtocolProtocolsByLsTransactionEquals.jspx deleted file mode 100644 index c9c64fff7..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/findItxProtocolProtocolsByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/findItxProtocolProtocolsBySecondProtocol.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocols/findItxProtocolProtocolsBySecondProtocol.jspx deleted file mode 100644 index 51f0731c3..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/findItxProtocolProtocolsBySecondProtocol.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/list.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocols/list.jspx deleted file mode 100755 index c798ca6ee..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/show.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocols/show.jspx deleted file mode 100755 index 3c3c2b47c..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/show.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/update.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocols/update.jspx deleted file mode 100755 index d6d62d56a..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/update.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/views.xml b/src/main/webapp/WEB-INF/views/itxprotocolprotocols/views.xml deleted file mode 100755 index 692d09ddb..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocols/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/create.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/create.jspx deleted file mode 100755 index c5abea473..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/list.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/list.jspx deleted file mode 100755 index 3d8d44209..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/show.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/show.jspx deleted file mode 100755 index d784ee6a3..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/update.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/update.jspx deleted file mode 100755 index ba29249b3..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/views.xml b/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/views.xml deleted file mode 100755 index 85ad9c049..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocolstates/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/create.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/create.jspx deleted file mode 100755 index 44cc85834..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/list.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/list.jspx deleted file mode 100755 index 1f3a0b8ae..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/show.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/show.jspx deleted file mode 100755 index 2ffcb676c..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/update.jspx b/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/update.jspx deleted file mode 100755 index 85f189fe2..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/views.xml b/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/views.xml deleted file mode 100755 index 4b4cefa8a..000000000 --- a/src/main/webapp/WEB-INF/views/itxprotocolprotocolvalues/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/create.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainers/create.jspx deleted file mode 100755 index a477e9feb..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/create.jspx +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersByCodeNameEquals.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersByCodeNameEquals.jspx deleted file mode 100755 index 6e4d66ffe..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersByCodeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersByContainer.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersByContainer.jspx deleted file mode 100755 index 97e67bb29..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersByContainer.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersByLsTransactionEquals.jspx deleted file mode 100755 index 169758fd6..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersBySubject.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersBySubject.jspx deleted file mode 100755 index 4256ad18d..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/findItxSubjectContainersBySubject.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/list.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainers/list.jspx deleted file mode 100755 index 836ee2ae9..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/show.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainers/show.jspx deleted file mode 100755 index 8a91b25af..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/show.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/update.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainers/update.jspx deleted file mode 100755 index ee27d8e96..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/update.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/views.xml b/src/main/webapp/WEB-INF/views/itxsubjectcontainers/views.xml deleted file mode 100755 index 7e052afd8..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainers/views.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/create.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/create.jspx deleted file mode 100755 index 094bed1e8..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/list.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/list.jspx deleted file mode 100755 index ccd0faf82..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/show.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/show.jspx deleted file mode 100755 index 162457f28..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/update.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/update.jspx deleted file mode 100755 index 61b984bfb..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/views.xml b/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/views.xml deleted file mode 100755 index 170a7b90c..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainerstates/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/create.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/create.jspx deleted file mode 100755 index 4b2956e6f..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/list.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/list.jspx deleted file mode 100755 index 8cd6f3eea..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/show.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/show.jspx deleted file mode 100755 index 646f112ed..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/update.jspx b/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/update.jspx deleted file mode 100755 index eef671f35..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/views.xml b/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/views.xml deleted file mode 100755 index b645a446e..000000000 --- a/src/main/webapp/WEB-INF/views/itxsubjectcontainervalues/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/labelkinds/create.jspx b/src/main/webapp/WEB-INF/views/labelkinds/create.jspx deleted file mode 100755 index d7270f5de..000000000 --- a/src/main/webapp/WEB-INF/views/labelkinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelkinds/findLabelKindsByKindNameEquals.jspx b/src/main/webapp/WEB-INF/views/labelkinds/findLabelKindsByKindNameEquals.jspx deleted file mode 100755 index 32fea6dff..000000000 --- a/src/main/webapp/WEB-INF/views/labelkinds/findLabelKindsByKindNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelkinds/findLabelKindsByKindNameEqualsAndLsType.jspx b/src/main/webapp/WEB-INF/views/labelkinds/findLabelKindsByKindNameEqualsAndLsType.jspx deleted file mode 100755 index 54d782f1c..000000000 --- a/src/main/webapp/WEB-INF/views/labelkinds/findLabelKindsByKindNameEqualsAndLsType.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelkinds/findLabelKindsByLsType.jspx b/src/main/webapp/WEB-INF/views/labelkinds/findLabelKindsByLsType.jspx deleted file mode 100755 index b65aae7f3..000000000 --- a/src/main/webapp/WEB-INF/views/labelkinds/findLabelKindsByLsType.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelkinds/list.jspx b/src/main/webapp/WEB-INF/views/labelkinds/list.jspx deleted file mode 100755 index 2329de320..000000000 --- a/src/main/webapp/WEB-INF/views/labelkinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelkinds/show.jspx b/src/main/webapp/WEB-INF/views/labelkinds/show.jspx deleted file mode 100755 index 9fdc9b666..000000000 --- a/src/main/webapp/WEB-INF/views/labelkinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelkinds/update.jspx b/src/main/webapp/WEB-INF/views/labelkinds/update.jspx deleted file mode 100755 index 098a299f2..000000000 --- a/src/main/webapp/WEB-INF/views/labelkinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelkinds/views.xml b/src/main/webapp/WEB-INF/views/labelkinds/views.xml deleted file mode 100755 index 0a8d9e6e3..000000000 --- a/src/main/webapp/WEB-INF/views/labelkinds/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/labelsequenceroles/create.jspx b/src/main/webapp/WEB-INF/views/labelsequenceroles/create.jspx deleted file mode 100644 index 4fbe541ef..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequenceroles/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequenceroles/list.jspx b/src/main/webapp/WEB-INF/views/labelsequenceroles/list.jspx deleted file mode 100644 index ff3a573dc..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequenceroles/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequenceroles/show.jspx b/src/main/webapp/WEB-INF/views/labelsequenceroles/show.jspx deleted file mode 100644 index 63322743a..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequenceroles/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequenceroles/update.jspx b/src/main/webapp/WEB-INF/views/labelsequenceroles/update.jspx deleted file mode 100644 index 25e805118..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequenceroles/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequenceroles/views.xml b/src/main/webapp/WEB-INF/views/labelsequenceroles/views.xml deleted file mode 100644 index 6d0c52c0e..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequenceroles/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/labelsequences/create.jspx b/src/main/webapp/WEB-INF/views/labelsequences/create.jspx deleted file mode 100755 index f3d6f58c5..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequences/create.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByLabelTypeAndKindEquals.jspx b/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByLabelTypeAndKindEquals.jspx deleted file mode 100644 index 22d891ec9..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByLabelTypeAndKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeAndKindEquals.jspx b/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeAndKindEquals.jspx deleted file mode 100644 index c2ffda3de..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeAndKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEquals.jspx b/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEquals.jspx deleted file mode 100755 index 2c94a45e2..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals.jspx b/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals.jspx deleted file mode 100644 index 1a322d7a5..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeAndKindEqualsAndLabelTypeAndKindEqualsAndLabelPrefixEquals.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeEqualsAndThingKindEqualsAndLabelTypeEqualsAndLabelKindEquals.jspx b/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeEqualsAndThingKindEqualsAndLabelTypeEqualsAndLabelKindEquals.jspx deleted file mode 100755 index 5fae9bbc7..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequences/findLabelSequencesByThingTypeEqualsAndThingKindEqualsAndLabelTypeEqualsAndLabelKindEquals.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequences/list.jspx b/src/main/webapp/WEB-INF/views/labelsequences/list.jspx deleted file mode 100755 index e7b19d429..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequences/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequences/show.jspx b/src/main/webapp/WEB-INF/views/labelsequences/show.jspx deleted file mode 100755 index 3bf467ab5..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequences/show.jspx +++ /dev/null @@ -1,17 +0,0 @@ - -
    - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequences/update.jspx b/src/main/webapp/WEB-INF/views/labelsequences/update.jspx deleted file mode 100755 index 341e051af..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequences/update.jspx +++ /dev/null @@ -1,18 +0,0 @@ - -
    - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labelsequences/views.xml b/src/main/webapp/WEB-INF/views/labelsequences/views.xml deleted file mode 100755 index c932a3377..000000000 --- a/src/main/webapp/WEB-INF/views/labelsequences/views.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/labeltypes/create.jspx b/src/main/webapp/WEB-INF/views/labeltypes/create.jspx deleted file mode 100755 index dc9897688..000000000 --- a/src/main/webapp/WEB-INF/views/labeltypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labeltypes/findLabelTypesByTypeNameEquals.jspx b/src/main/webapp/WEB-INF/views/labeltypes/findLabelTypesByTypeNameEquals.jspx deleted file mode 100755 index 85f099a85..000000000 --- a/src/main/webapp/WEB-INF/views/labeltypes/findLabelTypesByTypeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labeltypes/list.jspx b/src/main/webapp/WEB-INF/views/labeltypes/list.jspx deleted file mode 100755 index 06c3fdbcd..000000000 --- a/src/main/webapp/WEB-INF/views/labeltypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labeltypes/show.jspx b/src/main/webapp/WEB-INF/views/labeltypes/show.jspx deleted file mode 100755 index 58fbf7a4d..000000000 --- a/src/main/webapp/WEB-INF/views/labeltypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labeltypes/update.jspx b/src/main/webapp/WEB-INF/views/labeltypes/update.jspx deleted file mode 100755 index ba3b46aa1..000000000 --- a/src/main/webapp/WEB-INF/views/labeltypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/labeltypes/views.xml b/src/main/webapp/WEB-INF/views/labeltypes/views.xml deleted file mode 100755 index 64734bb25..000000000 --- a/src/main/webapp/WEB-INF/views/labeltypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/login.jspx b/src/main/webapp/WEB-INF/views/login.jspx deleted file mode 100755 index b2c0ebb5c..000000000 --- a/src/main/webapp/WEB-INF/views/login.jspx +++ /dev/null @@ -1,61 +0,0 @@ - -
    - - - - - -
    -

    - - - . -

    -
    -
    - -

    - -

    -
    - -
    -
    - - - - -
    -
    -
    - - - - -
    -
    -
    - - - - - -
    -
    <br/><a href ="/acas/forgotpassword/index">Forgot Password</a> | Not a User Yet? <a href ="/acas/signup?form">Sign Up</a>
    -
    -
    -
    diff --git a/src/main/webapp/WEB-INF/views/lot/index.jspx b/src/main/webapp/WEB-INF/views/lot/index.jspx deleted file mode 100644 index 2ad2c2c7b..000000000 --- a/src/main/webapp/WEB-INF/views/lot/index.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - -

    - -

    -
    -
    diff --git a/src/main/webapp/WEB-INF/views/lot/views.xml b/src/main/webapp/WEB-INF/views/lot/views.xml deleted file mode 100644 index 546fedd39..000000000 --- a/src/main/webapp/WEB-INF/views/lot/views.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/lotaliases/create.jspx b/src/main/webapp/WEB-INF/views/lotaliases/create.jspx deleted file mode 100644 index b7d74427b..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliases/create.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliases/findLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/lotaliases/findLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index f1c905da9..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliases/findLotAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliases/findLotAliasesByLot.jspx b/src/main/webapp/WEB-INF/views/lotaliases/findLotAliasesByLot.jspx deleted file mode 100644 index 3cb4c8ee8..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliases/findLotAliasesByLot.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliases/findLotAliasesByLotAndLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/lotaliases/findLotAliasesByLotAndLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index c5c5b9121..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliases/findLotAliasesByLotAndLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliases/list.jspx b/src/main/webapp/WEB-INF/views/lotaliases/list.jspx deleted file mode 100644 index 9c3152c44..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliases/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliases/show.jspx b/src/main/webapp/WEB-INF/views/lotaliases/show.jspx deleted file mode 100644 index 57358beed..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliases/show.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliases/update.jspx b/src/main/webapp/WEB-INF/views/lotaliases/update.jspx deleted file mode 100644 index b6affb7c3..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliases/update.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliases/views.xml b/src/main/webapp/WEB-INF/views/lotaliases/views.xml deleted file mode 100644 index 7e60492e6..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliases/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/lotaliaskinds/create.jspx b/src/main/webapp/WEB-INF/views/lotaliaskinds/create.jspx deleted file mode 100644 index f0ef86a55..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliaskinds/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliaskinds/list.jspx b/src/main/webapp/WEB-INF/views/lotaliaskinds/list.jspx deleted file mode 100644 index b82364ad6..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliaskinds/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliaskinds/show.jspx b/src/main/webapp/WEB-INF/views/lotaliaskinds/show.jspx deleted file mode 100644 index 627849bc9..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliaskinds/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliaskinds/update.jspx b/src/main/webapp/WEB-INF/views/lotaliaskinds/update.jspx deleted file mode 100644 index e1b38cebd..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliaskinds/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliaskinds/views.xml b/src/main/webapp/WEB-INF/views/lotaliaskinds/views.xml deleted file mode 100644 index 83f120cf3..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliaskinds/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/lotaliastypes/create.jspx b/src/main/webapp/WEB-INF/views/lotaliastypes/create.jspx deleted file mode 100644 index 6d1d4c108..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliastypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliastypes/list.jspx b/src/main/webapp/WEB-INF/views/lotaliastypes/list.jspx deleted file mode 100644 index 7e0dc1806..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliastypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliastypes/show.jspx b/src/main/webapp/WEB-INF/views/lotaliastypes/show.jspx deleted file mode 100644 index 2d457c7d2..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliastypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliastypes/update.jspx b/src/main/webapp/WEB-INF/views/lotaliastypes/update.jspx deleted file mode 100644 index 46f8a4010..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliastypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lotaliastypes/views.xml b/src/main/webapp/WEB-INF/views/lotaliastypes/views.xml deleted file mode 100644 index bb6e3080f..000000000 --- a/src/main/webapp/WEB-INF/views/lotaliastypes/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/lots/create.jspx b/src/main/webapp/WEB-INF/views/lots/create.jspx deleted file mode 100644 index 4a096dd2a..000000000 --- a/src/main/webapp/WEB-INF/views/lots/create.jspx +++ /dev/null @@ -1,62 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/findLotsByBuid.jspx b/src/main/webapp/WEB-INF/views/lots/findLotsByBuid.jspx deleted file mode 100644 index 52147b14c..000000000 --- a/src/main/webapp/WEB-INF/views/lots/findLotsByBuid.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/findLotsByBulkLoadFileEquals.jspx b/src/main/webapp/WEB-INF/views/lots/findLotsByBulkLoadFileEquals.jspx deleted file mode 100644 index 58cd9657d..000000000 --- a/src/main/webapp/WEB-INF/views/lots/findLotsByBulkLoadFileEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/findLotsByChemistAndSynthesisDateBetween.jspx b/src/main/webapp/WEB-INF/views/lots/findLotsByChemistAndSynthesisDateBetween.jspx deleted file mode 100644 index e101cb017..000000000 --- a/src/main/webapp/WEB-INF/views/lots/findLotsByChemistAndSynthesisDateBetween.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/findLotsByCorpNameEquals.jspx b/src/main/webapp/WEB-INF/views/lots/findLotsByCorpNameEquals.jspx deleted file mode 100644 index e98105962..000000000 --- a/src/main/webapp/WEB-INF/views/lots/findLotsByCorpNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/findLotsByCorpNameLike.jspx b/src/main/webapp/WEB-INF/views/lots/findLotsByCorpNameLike.jspx deleted file mode 100644 index 5356caa85..000000000 --- a/src/main/webapp/WEB-INF/views/lots/findLotsByCorpNameLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/findLotsByIsVirtualNot.jspx b/src/main/webapp/WEB-INF/views/lots/findLotsByIsVirtualNot.jspx deleted file mode 100644 index 5d66bc300..000000000 --- a/src/main/webapp/WEB-INF/views/lots/findLotsByIsVirtualNot.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/findLotsByNotebookPageEquals.jspx b/src/main/webapp/WEB-INF/views/lots/findLotsByNotebookPageEquals.jspx deleted file mode 100644 index 60436ca24..000000000 --- a/src/main/webapp/WEB-INF/views/lots/findLotsByNotebookPageEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/findLotsByNotebookPageEqualsAndIgnoreNot.jspx b/src/main/webapp/WEB-INF/views/lots/findLotsByNotebookPageEqualsAndIgnoreNot.jspx deleted file mode 100644 index c685b1fd6..000000000 --- a/src/main/webapp/WEB-INF/views/lots/findLotsByNotebookPageEqualsAndIgnoreNot.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/findLotsBySaltForm.jspx b/src/main/webapp/WEB-INF/views/lots/findLotsBySaltForm.jspx deleted file mode 100644 index 451b67e5b..000000000 --- a/src/main/webapp/WEB-INF/views/lots/findLotsBySaltForm.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/findLotsBySynthesisDateBetween.jspx b/src/main/webapp/WEB-INF/views/lots/findLotsBySynthesisDateBetween.jspx deleted file mode 100644 index 7c4a56c50..000000000 --- a/src/main/webapp/WEB-INF/views/lots/findLotsBySynthesisDateBetween.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/findLotsBySynthesisDateGreaterThan.jspx b/src/main/webapp/WEB-INF/views/lots/findLotsBySynthesisDateGreaterThan.jspx deleted file mode 100644 index 407e9d9af..000000000 --- a/src/main/webapp/WEB-INF/views/lots/findLotsBySynthesisDateGreaterThan.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/findLotsBySynthesisDateLessThan.jspx b/src/main/webapp/WEB-INF/views/lots/findLotsBySynthesisDateLessThan.jspx deleted file mode 100644 index 19e617c3c..000000000 --- a/src/main/webapp/WEB-INF/views/lots/findLotsBySynthesisDateLessThan.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/list.jspx b/src/main/webapp/WEB-INF/views/lots/list.jspx deleted file mode 100644 index e8a792a2c..000000000 --- a/src/main/webapp/WEB-INF/views/lots/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/show.jspx b/src/main/webapp/WEB-INF/views/lots/show.jspx deleted file mode 100644 index 6368f0e3e..000000000 --- a/src/main/webapp/WEB-INF/views/lots/show.jspx +++ /dev/null @@ -1,59 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/update.jspx b/src/main/webapp/WEB-INF/views/lots/update.jspx deleted file mode 100644 index 12f1d0b7d..000000000 --- a/src/main/webapp/WEB-INF/views/lots/update.jspx +++ /dev/null @@ -1,61 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lots/views.xml b/src/main/webapp/WEB-INF/views/lots/views.xml deleted file mode 100644 index 5c795d489..000000000 --- a/src/main/webapp/WEB-INF/views/lots/views.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/lsinteractions/create.jspx b/src/main/webapp/WEB-INF/views/lsinteractions/create.jspx deleted file mode 100755 index 65997d0a8..000000000 --- a/src/main/webapp/WEB-INF/views/lsinteractions/create.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsinteractions/list.jspx b/src/main/webapp/WEB-INF/views/lsinteractions/list.jspx deleted file mode 100755 index 36ba92e94..000000000 --- a/src/main/webapp/WEB-INF/views/lsinteractions/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsinteractions/show.jspx b/src/main/webapp/WEB-INF/views/lsinteractions/show.jspx deleted file mode 100755 index 29b865910..000000000 --- a/src/main/webapp/WEB-INF/views/lsinteractions/show.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsinteractions/update.jspx b/src/main/webapp/WEB-INF/views/lsinteractions/update.jspx deleted file mode 100755 index 5e6d29c3e..000000000 --- a/src/main/webapp/WEB-INF/views/lsinteractions/update.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsinteractions/views.xml b/src/main/webapp/WEB-INF/views/lsinteractions/views.xml deleted file mode 100755 index 56002d07c..000000000 --- a/src/main/webapp/WEB-INF/views/lsinteractions/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/lsroles/create.jspx b/src/main/webapp/WEB-INF/views/lsroles/create.jspx deleted file mode 100755 index e5648e0ed..000000000 --- a/src/main/webapp/WEB-INF/views/lsroles/create.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsKindEquals.jspx deleted file mode 100644 index 9e7df738f..000000000 --- a/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEquals.jspx b/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEquals.jspx deleted file mode 100644 index d55e54102..000000000 --- a/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index f6e3f2210..000000000 --- a/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals.jspx b/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals.jspx deleted file mode 100644 index 08f6e3270..000000000 --- a/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEqualsAndLsKindEqualsAndRoleNameEquals.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEqualsAndRoleNameEquals.jspx b/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEqualsAndRoleNameEquals.jspx deleted file mode 100644 index babc21a10..000000000 --- a/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByLsTypeEqualsAndRoleNameEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByRoleNameEquals.jspx b/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByRoleNameEquals.jspx deleted file mode 100755 index 8fb285b96..000000000 --- a/src/main/webapp/WEB-INF/views/lsroles/findLsRolesByRoleNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsroles/list.jspx b/src/main/webapp/WEB-INF/views/lsroles/list.jspx deleted file mode 100755 index 77435df4f..000000000 --- a/src/main/webapp/WEB-INF/views/lsroles/list.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsroles/show.jspx b/src/main/webapp/WEB-INF/views/lsroles/show.jspx deleted file mode 100755 index de00f0d39..000000000 --- a/src/main/webapp/WEB-INF/views/lsroles/show.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsroles/update.jspx b/src/main/webapp/WEB-INF/views/lsroles/update.jspx deleted file mode 100755 index 1a623f36e..000000000 --- a/src/main/webapp/WEB-INF/views/lsroles/update.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsroles/views.xml b/src/main/webapp/WEB-INF/views/lsroles/views.xml deleted file mode 100755 index 9c08416b1..000000000 --- a/src/main/webapp/WEB-INF/views/lsroles/views.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/lstags/create.jspx b/src/main/webapp/WEB-INF/views/lstags/create.jspx deleted file mode 100755 index 11d34decf..000000000 --- a/src/main/webapp/WEB-INF/views/lstags/create.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lstags/findLsTagsByTagTextEquals.jspx b/src/main/webapp/WEB-INF/views/lstags/findLsTagsByTagTextEquals.jspx deleted file mode 100755 index 787862d9f..000000000 --- a/src/main/webapp/WEB-INF/views/lstags/findLsTagsByTagTextEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lstags/findLsTagsByTagTextLike.jspx b/src/main/webapp/WEB-INF/views/lstags/findLsTagsByTagTextLike.jspx deleted file mode 100755 index 107ba1939..000000000 --- a/src/main/webapp/WEB-INF/views/lstags/findLsTagsByTagTextLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lstags/list.jspx b/src/main/webapp/WEB-INF/views/lstags/list.jspx deleted file mode 100755 index 94a4d5c6e..000000000 --- a/src/main/webapp/WEB-INF/views/lstags/list.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lstags/show.jspx b/src/main/webapp/WEB-INF/views/lstags/show.jspx deleted file mode 100755 index 2135b8aa2..000000000 --- a/src/main/webapp/WEB-INF/views/lstags/show.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lstags/update.jspx b/src/main/webapp/WEB-INF/views/lstags/update.jspx deleted file mode 100755 index 9f5d4a09e..000000000 --- a/src/main/webapp/WEB-INF/views/lstags/update.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lstags/views.xml b/src/main/webapp/WEB-INF/views/lstags/views.xml deleted file mode 100755 index 16e196fda..000000000 --- a/src/main/webapp/WEB-INF/views/lstags/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/lsthinglabels/create.jspx b/src/main/webapp/WEB-INF/views/lsthinglabels/create.jspx deleted file mode 100755 index 2f9c359f1..000000000 --- a/src/main/webapp/WEB-INF/views/lsthinglabels/create.jspx +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLabelTextEquals.jspx b/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLabelTextEquals.jspx deleted file mode 100755 index 487b60bff..000000000 --- a/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLabelTextEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLabelTextEqualsAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLabelTextEqualsAndIgnoredNot.jspx deleted file mode 100755 index 5d154d5f5..000000000 --- a/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLabelTextEqualsAndIgnoredNot.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLabelTextLike.jspx b/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLabelTextLike.jspx deleted file mode 100755 index 386a179cc..000000000 --- a/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLabelTextLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLsThing.jspx b/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLsThing.jspx deleted file mode 100755 index e6d9d827e..000000000 --- a/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLsThing.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLsTransactionEquals.jspx deleted file mode 100755 index 7a0b919c4..000000000 --- a/src/main/webapp/WEB-INF/views/lsthinglabels/findLsThingLabelsByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthinglabels/list.jspx b/src/main/webapp/WEB-INF/views/lsthinglabels/list.jspx deleted file mode 100755 index 9b212bb75..000000000 --- a/src/main/webapp/WEB-INF/views/lsthinglabels/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthinglabels/show.jspx b/src/main/webapp/WEB-INF/views/lsthinglabels/show.jspx deleted file mode 100755 index 8c4778059..000000000 --- a/src/main/webapp/WEB-INF/views/lsthinglabels/show.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthinglabels/update.jspx b/src/main/webapp/WEB-INF/views/lsthinglabels/update.jspx deleted file mode 100755 index 124e44804..000000000 --- a/src/main/webapp/WEB-INF/views/lsthinglabels/update.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthinglabels/views.xml b/src/main/webapp/WEB-INF/views/lsthinglabels/views.xml deleted file mode 100755 index 3aa0a969a..000000000 --- a/src/main/webapp/WEB-INF/views/lsthinglabels/views.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/lsthings/create.jspx b/src/main/webapp/WEB-INF/views/lsthings/create.jspx deleted file mode 100755 index 599bfbb6a..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/create.jspx +++ /dev/null @@ -1,25 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByCodeNameEquals.jspx b/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByCodeNameEquals.jspx deleted file mode 100755 index 40138db50..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByCodeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByCodeNameLike.jspx b/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByCodeNameLike.jspx deleted file mode 100644 index 32e66b575..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByCodeNameLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsKindEquals.jspx deleted file mode 100644 index 6816ef718..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsKindLike.jspx b/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsKindLike.jspx deleted file mode 100644 index 1dcec45b6..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsKindLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTransactionEquals.jspx deleted file mode 100755 index 77d02b7b8..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTypeAndKindEquals.jspx b/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTypeAndKindEquals.jspx deleted file mode 100755 index e97f500c7..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTypeAndKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTypeEquals.jspx b/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTypeEquals.jspx deleted file mode 100644 index 1029447f7..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTypeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index 844a48b63..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByRecordedByLike.jspx b/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByRecordedByLike.jspx deleted file mode 100644 index e29de485a..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByRecordedByLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByRecordedDateGreaterThan.jspx b/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByRecordedDateGreaterThan.jspx deleted file mode 100644 index 2324edb81..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByRecordedDateGreaterThan.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByRecordedDateLessThan.jspx b/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByRecordedDateLessThan.jspx deleted file mode 100644 index 3aeda1d24..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/findLsThingsByRecordedDateLessThan.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/list.jspx b/src/main/webapp/WEB-INF/views/lsthings/list.jspx deleted file mode 100755 index bb31e3ce9..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/show.jspx b/src/main/webapp/WEB-INF/views/lsthings/show.jspx deleted file mode 100755 index f69ab4434..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/update.jspx b/src/main/webapp/WEB-INF/views/lsthings/update.jspx deleted file mode 100755 index 48011ac9b..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/update.jspx +++ /dev/null @@ -1,24 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthings/views.xml b/src/main/webapp/WEB-INF/views/lsthings/views.xml deleted file mode 100755 index 7520fccc2..000000000 --- a/src/main/webapp/WEB-INF/views/lsthings/views.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/lsthingstates/create.jspx b/src/main/webapp/WEB-INF/views/lsthingstates/create.jspx deleted file mode 100755 index 7cc1c0446..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingstates/findLsThingStatesByLsThing.jspx b/src/main/webapp/WEB-INF/views/lsthingstates/findLsThingStatesByLsThing.jspx deleted file mode 100755 index 20060565b..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingstates/findLsThingStatesByLsThing.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingstates/findLsThingStatesByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/lsthingstates/findLsThingStatesByLsTransactionEquals.jspx deleted file mode 100755 index 2f50827cb..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingstates/findLsThingStatesByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingstates/list.jspx b/src/main/webapp/WEB-INF/views/lsthingstates/list.jspx deleted file mode 100755 index 5761336d5..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingstates/show.jspx b/src/main/webapp/WEB-INF/views/lsthingstates/show.jspx deleted file mode 100755 index 54fad082e..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingstates/update.jspx b/src/main/webapp/WEB-INF/views/lsthingstates/update.jspx deleted file mode 100755 index 1673b7852..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingstates/views.xml b/src/main/webapp/WEB-INF/views/lsthingstates/views.xml deleted file mode 100755 index 7036dbfef..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingstates/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/create.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/create.jspx deleted file mode 100755 index 652ea49bc..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByCodeValueEquals.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByCodeValueEquals.jspx deleted file mode 100755 index 55722e8ff..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByCodeValueEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByIgnoredNotAndCodeValueEquals.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByIgnoredNotAndCodeValueEquals.jspx deleted file mode 100755 index 89de364f0..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByIgnoredNotAndCodeValueEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndCodeValueLike.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndCodeValueLike.jspx deleted file mode 100644 index 830e383d9..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndCodeValueLike.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueGreaterThanEquals.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueGreaterThanEquals.jspx deleted file mode 100644 index 16b7de66a..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueGreaterThanEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueLessThanEquals.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueLessThanEquals.jspx deleted file mode 100644 index 991ed6b36..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueLessThanEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueLike.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueLike.jspx deleted file mode 100644 index a48ad3d60..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndDateValueLike.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueEquals.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueEquals.jspx deleted file mode 100644 index a5ee5f308..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueGreaterThanEquals.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueGreaterThanEquals.jspx deleted file mode 100644 index 1f61cf906..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueGreaterThanEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueLessThanEquals.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueLessThanEquals.jspx deleted file mode 100644 index d3714db4b..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndNumericValueLessThanEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndStringValueEquals.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndStringValueEquals.jspx deleted file mode 100644 index 7265e7b5e..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndStringValueEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndStringValueLike.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndStringValueLike.jspx deleted file mode 100644 index 7b830c5d6..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsKindEqualsAndStringValueLike.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsState.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsState.jspx deleted file mode 100755 index ee2e91d87..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsState.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsTransactionEquals.jspx deleted file mode 100755 index f96b9e993..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/findLsThingValuesByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/list.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/list.jspx deleted file mode 100755 index 2da81d7d9..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/show.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/show.jspx deleted file mode 100755 index a1872718d..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/update.jspx b/src/main/webapp/WEB-INF/views/lsthingvalues/update.jspx deleted file mode 100755 index f48cc4b82..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lsthingvalues/views.xml b/src/main/webapp/WEB-INF/views/lsthingvalues/views.xml deleted file mode 100755 index 6450ab2b4..000000000 --- a/src/main/webapp/WEB-INF/views/lsthingvalues/views.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/lstransactions/create.jspx b/src/main/webapp/WEB-INF/views/lstransactions/create.jspx deleted file mode 100755 index 56a7afdb1..000000000 --- a/src/main/webapp/WEB-INF/views/lstransactions/create.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lstransactions/list.jspx b/src/main/webapp/WEB-INF/views/lstransactions/list.jspx deleted file mode 100755 index 02486410b..000000000 --- a/src/main/webapp/WEB-INF/views/lstransactions/list.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lstransactions/show.jspx b/src/main/webapp/WEB-INF/views/lstransactions/show.jspx deleted file mode 100755 index 41f6cb154..000000000 --- a/src/main/webapp/WEB-INF/views/lstransactions/show.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lstransactions/update.jspx b/src/main/webapp/WEB-INF/views/lstransactions/update.jspx deleted file mode 100755 index 13f7aa79d..000000000 --- a/src/main/webapp/WEB-INF/views/lstransactions/update.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/lstransactions/views.xml b/src/main/webapp/WEB-INF/views/lstransactions/views.xml deleted file mode 100755 index 84fa4c75c..000000000 --- a/src/main/webapp/WEB-INF/views/lstransactions/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/menu.jspx b/src/main/webapp/WEB-INF/views/menu.jspx deleted file mode 100755 index 2d4b2872c..000000000 --- a/src/main/webapp/WEB-INF/views/menu.jspx +++ /dev/null @@ -1,773 +0,0 @@ - - diff --git a/src/main/webapp/WEB-INF/views/menu.xml b/src/main/webapp/WEB-INF/views/menu.xml deleted file mode 100644 index 88c2bbace..000000000 --- a/src/main/webapp/WEB-INF/views/menu.xml +++ /dev/null @@ -1,784 +0,0 @@ - - - - diff --git a/src/main/webapp/WEB-INF/views/operatorkinds/create.jspx b/src/main/webapp/WEB-INF/views/operatorkinds/create.jspx deleted file mode 100755 index de32c024a..000000000 --- a/src/main/webapp/WEB-INF/views/operatorkinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operatorkinds/list.jspx b/src/main/webapp/WEB-INF/views/operatorkinds/list.jspx deleted file mode 100755 index 92108005e..000000000 --- a/src/main/webapp/WEB-INF/views/operatorkinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operatorkinds/show.jspx b/src/main/webapp/WEB-INF/views/operatorkinds/show.jspx deleted file mode 100755 index 8ffb11051..000000000 --- a/src/main/webapp/WEB-INF/views/operatorkinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operatorkinds/update.jspx b/src/main/webapp/WEB-INF/views/operatorkinds/update.jspx deleted file mode 100755 index feb24187f..000000000 --- a/src/main/webapp/WEB-INF/views/operatorkinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operatorkinds/views.xml b/src/main/webapp/WEB-INF/views/operatorkinds/views.xml deleted file mode 100755 index ee595d8e7..000000000 --- a/src/main/webapp/WEB-INF/views/operatorkinds/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/operators/create.jspx b/src/main/webapp/WEB-INF/views/operators/create.jspx deleted file mode 100644 index 847a758db..000000000 --- a/src/main/webapp/WEB-INF/views/operators/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operators/findOperatorsByCodeEquals.jspx b/src/main/webapp/WEB-INF/views/operators/findOperatorsByCodeEquals.jspx deleted file mode 100644 index 9270eb9c0..000000000 --- a/src/main/webapp/WEB-INF/views/operators/findOperatorsByCodeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operators/findOperatorsByNameEquals.jspx b/src/main/webapp/WEB-INF/views/operators/findOperatorsByNameEquals.jspx deleted file mode 100644 index e799c4a57..000000000 --- a/src/main/webapp/WEB-INF/views/operators/findOperatorsByNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operators/list.jspx b/src/main/webapp/WEB-INF/views/operators/list.jspx deleted file mode 100644 index 0a2f1d43d..000000000 --- a/src/main/webapp/WEB-INF/views/operators/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operators/show.jspx b/src/main/webapp/WEB-INF/views/operators/show.jspx deleted file mode 100644 index 15d068a4a..000000000 --- a/src/main/webapp/WEB-INF/views/operators/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operators/update.jspx b/src/main/webapp/WEB-INF/views/operators/update.jspx deleted file mode 100644 index 6d758ef5c..000000000 --- a/src/main/webapp/WEB-INF/views/operators/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operators/views.xml b/src/main/webapp/WEB-INF/views/operators/views.xml deleted file mode 100644 index f0d765071..000000000 --- a/src/main/webapp/WEB-INF/views/operators/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/operatortypes/create.jspx b/src/main/webapp/WEB-INF/views/operatortypes/create.jspx deleted file mode 100755 index a12d75261..000000000 --- a/src/main/webapp/WEB-INF/views/operatortypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operatortypes/findOperatorTypesByTypeNameEquals.jspx b/src/main/webapp/WEB-INF/views/operatortypes/findOperatorTypesByTypeNameEquals.jspx deleted file mode 100755 index a69e05717..000000000 --- a/src/main/webapp/WEB-INF/views/operatortypes/findOperatorTypesByTypeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operatortypes/list.jspx b/src/main/webapp/WEB-INF/views/operatortypes/list.jspx deleted file mode 100755 index 176859b2c..000000000 --- a/src/main/webapp/WEB-INF/views/operatortypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operatortypes/show.jspx b/src/main/webapp/WEB-INF/views/operatortypes/show.jspx deleted file mode 100755 index 5a6101703..000000000 --- a/src/main/webapp/WEB-INF/views/operatortypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operatortypes/update.jspx b/src/main/webapp/WEB-INF/views/operatortypes/update.jspx deleted file mode 100755 index 901c389b6..000000000 --- a/src/main/webapp/WEB-INF/views/operatortypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/operatortypes/views.xml b/src/main/webapp/WEB-INF/views/operatortypes/views.xml deleted file mode 100755 index 447ab69f4..000000000 --- a/src/main/webapp/WEB-INF/views/operatortypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/parentAnnotations/create.jspx b/src/main/webapp/WEB-INF/views/parentAnnotations/create.jspx deleted file mode 100644 index 13265d2da..000000000 --- a/src/main/webapp/WEB-INF/views/parentAnnotations/create.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentAnnotations/findParentAnnotationsByCodeEquals.jspx b/src/main/webapp/WEB-INF/views/parentAnnotations/findParentAnnotationsByCodeEquals.jspx deleted file mode 100644 index c18372c3f..000000000 --- a/src/main/webapp/WEB-INF/views/parentAnnotations/findParentAnnotationsByCodeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentAnnotations/list.jspx b/src/main/webapp/WEB-INF/views/parentAnnotations/list.jspx deleted file mode 100644 index 9eff54d92..000000000 --- a/src/main/webapp/WEB-INF/views/parentAnnotations/list.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentAnnotations/show.jspx b/src/main/webapp/WEB-INF/views/parentAnnotations/show.jspx deleted file mode 100644 index 5ab0820bc..000000000 --- a/src/main/webapp/WEB-INF/views/parentAnnotations/show.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentAnnotations/update.jspx b/src/main/webapp/WEB-INF/views/parentAnnotations/update.jspx deleted file mode 100644 index 9528ab8e7..000000000 --- a/src/main/webapp/WEB-INF/views/parentAnnotations/update.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentAnnotations/views.xml b/src/main/webapp/WEB-INF/views/parentAnnotations/views.xml deleted file mode 100644 index b98792ba1..000000000 --- a/src/main/webapp/WEB-INF/views/parentAnnotations/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/parentaliases/create.jspx b/src/main/webapp/WEB-INF/views/parentaliases/create.jspx deleted file mode 100644 index 69a315d81..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliases/create.jspx +++ /dev/null @@ -1,16 +0,0 @@ - -
    - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByAliasNameEquals.jspx b/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByAliasNameEquals.jspx deleted file mode 100644 index 8ab44ff91..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByAliasNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index 88de83b07..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByParent.jspx b/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByParent.jspx deleted file mode 100644 index 858983207..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByParent.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByParentAndLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByParentAndLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index 986abf683..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByParentAndLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals.jspx b/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals.jspx deleted file mode 100644 index b0b6ef081..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliases/findParentAliasesByParentAndLsTypeEqualsAndLsKindEqualsAndAliasNameEquals.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliases/list.jspx b/src/main/webapp/WEB-INF/views/parentaliases/list.jspx deleted file mode 100644 index 59214211e..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliases/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliases/show.jspx b/src/main/webapp/WEB-INF/views/parentaliases/show.jspx deleted file mode 100644 index 23cdd46dc..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliases/show.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliases/update.jspx b/src/main/webapp/WEB-INF/views/parentaliases/update.jspx deleted file mode 100644 index b0c81f104..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliases/update.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliases/views.xml b/src/main/webapp/WEB-INF/views/parentaliases/views.xml deleted file mode 100644 index 260b794f7..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliases/views.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/parentaliaskinds/create.jspx b/src/main/webapp/WEB-INF/views/parentaliaskinds/create.jspx deleted file mode 100644 index bc52aab09..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliaskinds/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliaskinds/list.jspx b/src/main/webapp/WEB-INF/views/parentaliaskinds/list.jspx deleted file mode 100644 index 26350eb58..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliaskinds/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliaskinds/show.jspx b/src/main/webapp/WEB-INF/views/parentaliaskinds/show.jspx deleted file mode 100644 index 51138fda1..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliaskinds/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliaskinds/update.jspx b/src/main/webapp/WEB-INF/views/parentaliaskinds/update.jspx deleted file mode 100644 index 6d9c7f737..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliaskinds/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliaskinds/views.xml b/src/main/webapp/WEB-INF/views/parentaliaskinds/views.xml deleted file mode 100644 index 14d4c80ee..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliaskinds/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/parentaliastypes/create.jspx b/src/main/webapp/WEB-INF/views/parentaliastypes/create.jspx deleted file mode 100644 index 746242cb3..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliastypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliastypes/list.jspx b/src/main/webapp/WEB-INF/views/parentaliastypes/list.jspx deleted file mode 100644 index 94a01da08..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliastypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliastypes/show.jspx b/src/main/webapp/WEB-INF/views/parentaliastypes/show.jspx deleted file mode 100644 index 71ae80720..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliastypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliastypes/update.jspx b/src/main/webapp/WEB-INF/views/parentaliastypes/update.jspx deleted file mode 100644 index 66ab85e3a..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliastypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parentaliastypes/views.xml b/src/main/webapp/WEB-INF/views/parentaliastypes/views.xml deleted file mode 100644 index 8a19c3286..000000000 --- a/src/main/webapp/WEB-INF/views/parentaliastypes/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/parents/create.jspx b/src/main/webapp/WEB-INF/views/parents/create.jspx deleted file mode 100644 index 2ed0bb5de..000000000 --- a/src/main/webapp/WEB-INF/views/parents/create.jspx +++ /dev/null @@ -1,32 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parents/findParentsByBulkLoadFileEquals.jspx b/src/main/webapp/WEB-INF/views/parents/findParentsByBulkLoadFileEquals.jspx deleted file mode 100644 index 55a14cd82..000000000 --- a/src/main/webapp/WEB-INF/views/parents/findParentsByBulkLoadFileEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parents/findParentsByCdId.jspx b/src/main/webapp/WEB-INF/views/parents/findParentsByCdId.jspx deleted file mode 100644 index 1a1899b01..000000000 --- a/src/main/webapp/WEB-INF/views/parents/findParentsByCdId.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parents/findParentsByCommonNameLike.jspx b/src/main/webapp/WEB-INF/views/parents/findParentsByCommonNameLike.jspx deleted file mode 100644 index f6a28b2e5..000000000 --- a/src/main/webapp/WEB-INF/views/parents/findParentsByCommonNameLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parents/findParentsByCorpNameEquals.jspx b/src/main/webapp/WEB-INF/views/parents/findParentsByCorpNameEquals.jspx deleted file mode 100644 index 30ba99371..000000000 --- a/src/main/webapp/WEB-INF/views/parents/findParentsByCorpNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parents/findParentsByCorpNameLike.jspx b/src/main/webapp/WEB-INF/views/parents/findParentsByCorpNameLike.jspx deleted file mode 100644 index d07e97404..000000000 --- a/src/main/webapp/WEB-INF/views/parents/findParentsByCorpNameLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parents/findParentsBySaltForms.jspx b/src/main/webapp/WEB-INF/views/parents/findParentsBySaltForms.jspx deleted file mode 100644 index d43da92b9..000000000 --- a/src/main/webapp/WEB-INF/views/parents/findParentsBySaltForms.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parents/list.jspx b/src/main/webapp/WEB-INF/views/parents/list.jspx deleted file mode 100644 index d895f50a2..000000000 --- a/src/main/webapp/WEB-INF/views/parents/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parents/show.jspx b/src/main/webapp/WEB-INF/views/parents/show.jspx deleted file mode 100644 index 69752c50c..000000000 --- a/src/main/webapp/WEB-INF/views/parents/show.jspx +++ /dev/null @@ -1,29 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parents/update.jspx b/src/main/webapp/WEB-INF/views/parents/update.jspx deleted file mode 100644 index 226a9791c..000000000 --- a/src/main/webapp/WEB-INF/views/parents/update.jspx +++ /dev/null @@ -1,31 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/parents/views.xml b/src/main/webapp/WEB-INF/views/parents/views.xml deleted file mode 100644 index 085ba846e..000000000 --- a/src/main/webapp/WEB-INF/views/parents/views.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/physicalstates/create.jspx b/src/main/webapp/WEB-INF/views/physicalstates/create.jspx deleted file mode 100644 index 2222e7692..000000000 --- a/src/main/webapp/WEB-INF/views/physicalstates/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/physicalstates/findPhysicalStatesByCodeEquals.jspx b/src/main/webapp/WEB-INF/views/physicalstates/findPhysicalStatesByCodeEquals.jspx deleted file mode 100644 index ff27d0d63..000000000 --- a/src/main/webapp/WEB-INF/views/physicalstates/findPhysicalStatesByCodeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/physicalstates/findPhysicalStatesByNameEquals.jspx b/src/main/webapp/WEB-INF/views/physicalstates/findPhysicalStatesByNameEquals.jspx deleted file mode 100644 index 2b849db37..000000000 --- a/src/main/webapp/WEB-INF/views/physicalstates/findPhysicalStatesByNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/physicalstates/findPhysicalStatesByNameLike.jspx b/src/main/webapp/WEB-INF/views/physicalstates/findPhysicalStatesByNameLike.jspx deleted file mode 100644 index 65b28967d..000000000 --- a/src/main/webapp/WEB-INF/views/physicalstates/findPhysicalStatesByNameLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/physicalstates/list.jspx b/src/main/webapp/WEB-INF/views/physicalstates/list.jspx deleted file mode 100644 index 2fa715fdb..000000000 --- a/src/main/webapp/WEB-INF/views/physicalstates/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/physicalstates/show.jspx b/src/main/webapp/WEB-INF/views/physicalstates/show.jspx deleted file mode 100644 index 93cd34cbe..000000000 --- a/src/main/webapp/WEB-INF/views/physicalstates/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/physicalstates/update.jspx b/src/main/webapp/WEB-INF/views/physicalstates/update.jspx deleted file mode 100644 index f937602c6..000000000 --- a/src/main/webapp/WEB-INF/views/physicalstates/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/physicalstates/views.xml b/src/main/webapp/WEB-INF/views/physicalstates/views.xml deleted file mode 100644 index 5b2e2ac0c..000000000 --- a/src/main/webapp/WEB-INF/views/physicalstates/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/predef_corpnames/create.jspx b/src/main/webapp/WEB-INF/views/predef_corpnames/create.jspx deleted file mode 100644 index 0843f839a..000000000 --- a/src/main/webapp/WEB-INF/views/predef_corpnames/create.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/predef_corpnames/list.jspx b/src/main/webapp/WEB-INF/views/predef_corpnames/list.jspx deleted file mode 100644 index 0ea48ab0b..000000000 --- a/src/main/webapp/WEB-INF/views/predef_corpnames/list.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/predef_corpnames/show.jspx b/src/main/webapp/WEB-INF/views/predef_corpnames/show.jspx deleted file mode 100644 index c5d3c22f8..000000000 --- a/src/main/webapp/WEB-INF/views/predef_corpnames/show.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/predef_corpnames/update.jspx b/src/main/webapp/WEB-INF/views/predef_corpnames/update.jspx deleted file mode 100644 index 98323e021..000000000 --- a/src/main/webapp/WEB-INF/views/predef_corpnames/update.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/predef_corpnames/views.xml b/src/main/webapp/WEB-INF/views/predef_corpnames/views.xml deleted file mode 100644 index 6c2f24c4b..000000000 --- a/src/main/webapp/WEB-INF/views/predef_corpnames/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/projects/create.jspx b/src/main/webapp/WEB-INF/views/projects/create.jspx deleted file mode 100644 index ebea76f9b..000000000 --- a/src/main/webapp/WEB-INF/views/projects/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/projects/findProjectsByCodeEquals.jspx b/src/main/webapp/WEB-INF/views/projects/findProjectsByCodeEquals.jspx deleted file mode 100644 index e8b60e59d..000000000 --- a/src/main/webapp/WEB-INF/views/projects/findProjectsByCodeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/projects/findProjectsByNameEquals.jspx b/src/main/webapp/WEB-INF/views/projects/findProjectsByNameEquals.jspx deleted file mode 100644 index 60014e312..000000000 --- a/src/main/webapp/WEB-INF/views/projects/findProjectsByNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/projects/list.jspx b/src/main/webapp/WEB-INF/views/projects/list.jspx deleted file mode 100644 index e1692c666..000000000 --- a/src/main/webapp/WEB-INF/views/projects/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/projects/show.jspx b/src/main/webapp/WEB-INF/views/projects/show.jspx deleted file mode 100644 index 0f2a3a00e..000000000 --- a/src/main/webapp/WEB-INF/views/projects/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/projects/update.jspx b/src/main/webapp/WEB-INF/views/projects/update.jspx deleted file mode 100644 index b7f5fad1c..000000000 --- a/src/main/webapp/WEB-INF/views/projects/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/projects/views.xml b/src/main/webapp/WEB-INF/views/projects/views.xml deleted file mode 100644 index 1f788cc40..000000000 --- a/src/main/webapp/WEB-INF/views/projects/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/protocolkinds/create.jspx b/src/main/webapp/WEB-INF/views/protocolkinds/create.jspx deleted file mode 100755 index 74d60af6a..000000000 --- a/src/main/webapp/WEB-INF/views/protocolkinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolkinds/findProtocolKindsByLsTypeEqualsAndKindNameEquals.jspx b/src/main/webapp/WEB-INF/views/protocolkinds/findProtocolKindsByLsTypeEqualsAndKindNameEquals.jspx deleted file mode 100644 index 254b7aff3..000000000 --- a/src/main/webapp/WEB-INF/views/protocolkinds/findProtocolKindsByLsTypeEqualsAndKindNameEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolkinds/list.jspx b/src/main/webapp/WEB-INF/views/protocolkinds/list.jspx deleted file mode 100755 index 5850e14f5..000000000 --- a/src/main/webapp/WEB-INF/views/protocolkinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolkinds/show.jspx b/src/main/webapp/WEB-INF/views/protocolkinds/show.jspx deleted file mode 100755 index 82628bf1f..000000000 --- a/src/main/webapp/WEB-INF/views/protocolkinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolkinds/update.jspx b/src/main/webapp/WEB-INF/views/protocolkinds/update.jspx deleted file mode 100755 index fb4c9f2a7..000000000 --- a/src/main/webapp/WEB-INF/views/protocolkinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolkinds/views.xml b/src/main/webapp/WEB-INF/views/protocolkinds/views.xml deleted file mode 100755 index 56d22b74c..000000000 --- a/src/main/webapp/WEB-INF/views/protocolkinds/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/protocollabels/create.jspx b/src/main/webapp/WEB-INF/views/protocollabels/create.jspx deleted file mode 100755 index ee5d0218d..000000000 --- a/src/main/webapp/WEB-INF/views/protocollabels/create.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByLabelTextEqualsAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByLabelTextEqualsAndIgnoredNot.jspx deleted file mode 100755 index 6e8bec31d..000000000 --- a/src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByLabelTextEqualsAndIgnoredNot.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByLabelTextLike.jspx b/src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByLabelTextLike.jspx deleted file mode 100755 index a92141aa7..000000000 --- a/src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByLabelTextLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByLsTransactionEquals.jspx deleted file mode 100755 index f218d4431..000000000 --- a/src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByProtocol.jspx b/src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByProtocol.jspx deleted file mode 100755 index b84fa9b46..000000000 --- a/src/main/webapp/WEB-INF/views/protocollabels/findProtocolLabelsByProtocol.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocollabels/list.jspx b/src/main/webapp/WEB-INF/views/protocollabels/list.jspx deleted file mode 100755 index facbcfb42..000000000 --- a/src/main/webapp/WEB-INF/views/protocollabels/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocollabels/show.jspx b/src/main/webapp/WEB-INF/views/protocollabels/show.jspx deleted file mode 100755 index bf607b471..000000000 --- a/src/main/webapp/WEB-INF/views/protocollabels/show.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocollabels/update.jspx b/src/main/webapp/WEB-INF/views/protocollabels/update.jspx deleted file mode 100755 index 6a0d745ce..000000000 --- a/src/main/webapp/WEB-INF/views/protocollabels/update.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocollabels/views.xml b/src/main/webapp/WEB-INF/views/protocollabels/views.xml deleted file mode 100755 index 0c26647c3..000000000 --- a/src/main/webapp/WEB-INF/views/protocollabels/views.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/protocols/create.jspx b/src/main/webapp/WEB-INF/views/protocols/create.jspx deleted file mode 100755 index 8390bf696..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/create.jspx +++ /dev/null @@ -1,27 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByCodeNameEquals.jspx b/src/main/webapp/WEB-INF/views/protocols/findProtocolsByCodeNameEquals.jspx deleted file mode 100755 index 2642086b1..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByCodeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByCodeNameEqualsAndIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/protocols/findProtocolsByCodeNameEqualsAndIgnoredNot.jspx deleted file mode 100644 index 66482d551..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByCodeNameEqualsAndIgnoredNot.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByCodeNameLike.jspx b/src/main/webapp/WEB-INF/views/protocols/findProtocolsByCodeNameLike.jspx deleted file mode 100644 index 2b277fb5f..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByCodeNameLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByIgnoredNot.jspx b/src/main/webapp/WEB-INF/views/protocols/findProtocolsByIgnoredNot.jspx deleted file mode 100755 index 6a0b1279e..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByIgnoredNot.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsKindEquals.jspx deleted file mode 100755 index ffbe5cbe3..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsKindLike.jspx b/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsKindLike.jspx deleted file mode 100644 index f7cf72307..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsKindLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTransactionEquals.jspx deleted file mode 100755 index dfd4d35d8..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeAndKindEquals.jspx b/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeAndKindEquals.jspx deleted file mode 100755 index d76789774..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeAndKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeEquals.jspx b/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeEquals.jspx deleted file mode 100755 index 9db4cf78b..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100755 index 2c64c7c83..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeLike.jspx b/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeLike.jspx deleted file mode 100644 index 547c544d2..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByLsTypeLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByRecordedByLike.jspx b/src/main/webapp/WEB-INF/views/protocols/findProtocolsByRecordedByLike.jspx deleted file mode 100644 index 1fc1a64a8..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/findProtocolsByRecordedByLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/list.jspx b/src/main/webapp/WEB-INF/views/protocols/list.jspx deleted file mode 100755 index ca68aac3b..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/show.jspx b/src/main/webapp/WEB-INF/views/protocols/show.jspx deleted file mode 100755 index da0c6cab5..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/show.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/update.jspx b/src/main/webapp/WEB-INF/views/protocols/update.jspx deleted file mode 100755 index b853ec73a..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/update.jspx +++ /dev/null @@ -1,26 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocols/views.xml b/src/main/webapp/WEB-INF/views/protocols/views.xml deleted file mode 100755 index e31ed7a3f..000000000 --- a/src/main/webapp/WEB-INF/views/protocols/views.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/protocolstates/create.jspx b/src/main/webapp/WEB-INF/views/protocolstates/create.jspx deleted file mode 100755 index 44072ca01..000000000 --- a/src/main/webapp/WEB-INF/views/protocolstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolstates/findProtocolStatesByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/protocolstates/findProtocolStatesByLsTransactionEquals.jspx deleted file mode 100755 index 7e6dd33f4..000000000 --- a/src/main/webapp/WEB-INF/views/protocolstates/findProtocolStatesByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolstates/findProtocolStatesByProtocol.jspx b/src/main/webapp/WEB-INF/views/protocolstates/findProtocolStatesByProtocol.jspx deleted file mode 100755 index 42f1c2ea4..000000000 --- a/src/main/webapp/WEB-INF/views/protocolstates/findProtocolStatesByProtocol.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolstates/list.jspx b/src/main/webapp/WEB-INF/views/protocolstates/list.jspx deleted file mode 100755 index 3bbf5ad6f..000000000 --- a/src/main/webapp/WEB-INF/views/protocolstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolstates/show.jspx b/src/main/webapp/WEB-INF/views/protocolstates/show.jspx deleted file mode 100755 index f7331c45e..000000000 --- a/src/main/webapp/WEB-INF/views/protocolstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolstates/update.jspx b/src/main/webapp/WEB-INF/views/protocolstates/update.jspx deleted file mode 100755 index 415200ae8..000000000 --- a/src/main/webapp/WEB-INF/views/protocolstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolstates/views.xml b/src/main/webapp/WEB-INF/views/protocolstates/views.xml deleted file mode 100755 index 0bd19fc74..000000000 --- a/src/main/webapp/WEB-INF/views/protocolstates/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/protocoltypes/create.jspx b/src/main/webapp/WEB-INF/views/protocoltypes/create.jspx deleted file mode 100755 index 606c4e7cc..000000000 --- a/src/main/webapp/WEB-INF/views/protocoltypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocoltypes/findProtocolTypesByTypeNameEquals.jspx b/src/main/webapp/WEB-INF/views/protocoltypes/findProtocolTypesByTypeNameEquals.jspx deleted file mode 100755 index 8095225bd..000000000 --- a/src/main/webapp/WEB-INF/views/protocoltypes/findProtocolTypesByTypeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocoltypes/list.jspx b/src/main/webapp/WEB-INF/views/protocoltypes/list.jspx deleted file mode 100755 index 391493308..000000000 --- a/src/main/webapp/WEB-INF/views/protocoltypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocoltypes/show.jspx b/src/main/webapp/WEB-INF/views/protocoltypes/show.jspx deleted file mode 100755 index e431ac8ee..000000000 --- a/src/main/webapp/WEB-INF/views/protocoltypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocoltypes/update.jspx b/src/main/webapp/WEB-INF/views/protocoltypes/update.jspx deleted file mode 100755 index 827b570e9..000000000 --- a/src/main/webapp/WEB-INF/views/protocoltypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocoltypes/views.xml b/src/main/webapp/WEB-INF/views/protocoltypes/views.xml deleted file mode 100755 index 8e61099cf..000000000 --- a/src/main/webapp/WEB-INF/views/protocoltypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/protocolvalues/create.jspx b/src/main/webapp/WEB-INF/views/protocolvalues/create.jspx deleted file mode 100755 index aa171ddaa..000000000 --- a/src/main/webapp/WEB-INF/views/protocolvalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsKindEqualsAndCodeValueLike.jspx b/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsKindEqualsAndCodeValueLike.jspx deleted file mode 100644 index ebe882be9..000000000 --- a/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsKindEqualsAndCodeValueLike.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsKindEqualsAndDateValueLike.jspx b/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsKindEqualsAndDateValueLike.jspx deleted file mode 100644 index 9b7448590..000000000 --- a/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsKindEqualsAndDateValueLike.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsKindEqualsAndStringValueLike.jspx b/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsKindEqualsAndStringValueLike.jspx deleted file mode 100644 index c1a8a98f6..000000000 --- a/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsKindEqualsAndStringValueLike.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsState.jspx b/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsState.jspx deleted file mode 100755 index 091dae9a3..000000000 --- a/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsState.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsTransactionEquals.jspx deleted file mode 100755 index f7da1efd6..000000000 --- a/src/main/webapp/WEB-INF/views/protocolvalues/findProtocolValuesByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolvalues/list.jspx b/src/main/webapp/WEB-INF/views/protocolvalues/list.jspx deleted file mode 100755 index 2dc58e82c..000000000 --- a/src/main/webapp/WEB-INF/views/protocolvalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolvalues/show.jspx b/src/main/webapp/WEB-INF/views/protocolvalues/show.jspx deleted file mode 100755 index f526ed728..000000000 --- a/src/main/webapp/WEB-INF/views/protocolvalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolvalues/update.jspx b/src/main/webapp/WEB-INF/views/protocolvalues/update.jspx deleted file mode 100755 index 1aa58824d..000000000 --- a/src/main/webapp/WEB-INF/views/protocolvalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/protocolvalues/views.xml b/src/main/webapp/WEB-INF/views/protocolvalues/views.xml deleted file mode 100755 index 6bc749890..000000000 --- a/src/main/webapp/WEB-INF/views/protocolvalues/views.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/puritymeasuredbys/create.jspx b/src/main/webapp/WEB-INF/views/puritymeasuredbys/create.jspx deleted file mode 100644 index 98c688c23..000000000 --- a/src/main/webapp/WEB-INF/views/puritymeasuredbys/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/puritymeasuredbys/findPurityMeasuredBysByCodeEquals.jspx b/src/main/webapp/WEB-INF/views/puritymeasuredbys/findPurityMeasuredBysByCodeEquals.jspx deleted file mode 100644 index ec0e0e0ed..000000000 --- a/src/main/webapp/WEB-INF/views/puritymeasuredbys/findPurityMeasuredBysByCodeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/puritymeasuredbys/findPurityMeasuredBysByNameEquals.jspx b/src/main/webapp/WEB-INF/views/puritymeasuredbys/findPurityMeasuredBysByNameEquals.jspx deleted file mode 100644 index 84f9b2843..000000000 --- a/src/main/webapp/WEB-INF/views/puritymeasuredbys/findPurityMeasuredBysByNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/puritymeasuredbys/findPurityMeasuredBysByNameLike.jspx b/src/main/webapp/WEB-INF/views/puritymeasuredbys/findPurityMeasuredBysByNameLike.jspx deleted file mode 100644 index f419930ec..000000000 --- a/src/main/webapp/WEB-INF/views/puritymeasuredbys/findPurityMeasuredBysByNameLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/puritymeasuredbys/list.jspx b/src/main/webapp/WEB-INF/views/puritymeasuredbys/list.jspx deleted file mode 100644 index fda7d2574..000000000 --- a/src/main/webapp/WEB-INF/views/puritymeasuredbys/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/puritymeasuredbys/show.jspx b/src/main/webapp/WEB-INF/views/puritymeasuredbys/show.jspx deleted file mode 100644 index 436c111f3..000000000 --- a/src/main/webapp/WEB-INF/views/puritymeasuredbys/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/puritymeasuredbys/update.jspx b/src/main/webapp/WEB-INF/views/puritymeasuredbys/update.jspx deleted file mode 100644 index 9763467d3..000000000 --- a/src/main/webapp/WEB-INF/views/puritymeasuredbys/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/puritymeasuredbys/views.xml b/src/main/webapp/WEB-INF/views/puritymeasuredbys/views.xml deleted file mode 100644 index 2f71d492c..000000000 --- a/src/main/webapp/WEB-INF/views/puritymeasuredbys/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/resourceNotFound.jspx b/src/main/webapp/WEB-INF/views/resourceNotFound.jspx deleted file mode 100755 index b3d27c763..000000000 --- a/src/main/webapp/WEB-INF/views/resourceNotFound.jspx +++ /dev/null @@ -1,29 +0,0 @@ -
    - - - - -

    ${fn:escapeXml(title)}

    -

    - -

    - -

    -

    - -

    - - - - - - - - -
    -
    -
    -

    -
    -
    -
    \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/rolekinds/create.jspx b/src/main/webapp/WEB-INF/views/rolekinds/create.jspx deleted file mode 100644 index 175a1941f..000000000 --- a/src/main/webapp/WEB-INF/views/rolekinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/rolekinds/findRoleKindsByKindNameEqualsAndLsType.jspx b/src/main/webapp/WEB-INF/views/rolekinds/findRoleKindsByKindNameEqualsAndLsType.jspx deleted file mode 100644 index 56ed5ac4d..000000000 --- a/src/main/webapp/WEB-INF/views/rolekinds/findRoleKindsByKindNameEqualsAndLsType.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/rolekinds/findRoleKindsByLsType.jspx b/src/main/webapp/WEB-INF/views/rolekinds/findRoleKindsByLsType.jspx deleted file mode 100644 index 0e0863137..000000000 --- a/src/main/webapp/WEB-INF/views/rolekinds/findRoleKindsByLsType.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/rolekinds/list.jspx b/src/main/webapp/WEB-INF/views/rolekinds/list.jspx deleted file mode 100644 index 51dd82c84..000000000 --- a/src/main/webapp/WEB-INF/views/rolekinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/rolekinds/show.jspx b/src/main/webapp/WEB-INF/views/rolekinds/show.jspx deleted file mode 100644 index 274204a1b..000000000 --- a/src/main/webapp/WEB-INF/views/rolekinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/rolekinds/update.jspx b/src/main/webapp/WEB-INF/views/rolekinds/update.jspx deleted file mode 100644 index c8c3ec75e..000000000 --- a/src/main/webapp/WEB-INF/views/rolekinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/rolekinds/views.xml b/src/main/webapp/WEB-INF/views/rolekinds/views.xml deleted file mode 100644 index 9f81c2d17..000000000 --- a/src/main/webapp/WEB-INF/views/rolekinds/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/roletypes/create.jspx b/src/main/webapp/WEB-INF/views/roletypes/create.jspx deleted file mode 100644 index 50e3b40e3..000000000 --- a/src/main/webapp/WEB-INF/views/roletypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/roletypes/findRoleTypesByTypeNameEquals.jspx b/src/main/webapp/WEB-INF/views/roletypes/findRoleTypesByTypeNameEquals.jspx deleted file mode 100644 index af8e12204..000000000 --- a/src/main/webapp/WEB-INF/views/roletypes/findRoleTypesByTypeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/roletypes/list.jspx b/src/main/webapp/WEB-INF/views/roletypes/list.jspx deleted file mode 100644 index 13d50b54c..000000000 --- a/src/main/webapp/WEB-INF/views/roletypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/roletypes/show.jspx b/src/main/webapp/WEB-INF/views/roletypes/show.jspx deleted file mode 100644 index af1495ef7..000000000 --- a/src/main/webapp/WEB-INF/views/roletypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/roletypes/update.jspx b/src/main/webapp/WEB-INF/views/roletypes/update.jspx deleted file mode 100644 index 66f914d37..000000000 --- a/src/main/webapp/WEB-INF/views/roletypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/roletypes/views.xml b/src/main/webapp/WEB-INF/views/roletypes/views.xml deleted file mode 100644 index ae681d9d7..000000000 --- a/src/main/webapp/WEB-INF/views/roletypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/saltformaliases/create.jspx b/src/main/webapp/WEB-INF/views/saltformaliases/create.jspx deleted file mode 100644 index 52df36e11..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliases/create.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliases/findSaltFormAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/saltformaliases/findSaltFormAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index e77683ae6..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliases/findSaltFormAliasesByAliasNameEqualsAndLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliases/findSaltFormAliasesBySaltForm.jspx b/src/main/webapp/WEB-INF/views/saltformaliases/findSaltFormAliasesBySaltForm.jspx deleted file mode 100644 index b5a34cbe6..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliases/findSaltFormAliasesBySaltForm.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliases/list.jspx b/src/main/webapp/WEB-INF/views/saltformaliases/list.jspx deleted file mode 100644 index 305b01576..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliases/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliases/show.jspx b/src/main/webapp/WEB-INF/views/saltformaliases/show.jspx deleted file mode 100644 index 86db812fd..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliases/show.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliases/update.jspx b/src/main/webapp/WEB-INF/views/saltformaliases/update.jspx deleted file mode 100644 index f7302cfd0..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliases/update.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliases/views.xml b/src/main/webapp/WEB-INF/views/saltformaliases/views.xml deleted file mode 100644 index a189f00fb..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliases/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/saltformaliaskinds/create.jspx b/src/main/webapp/WEB-INF/views/saltformaliaskinds/create.jspx deleted file mode 100644 index 9360cdf32..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliaskinds/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliaskinds/list.jspx b/src/main/webapp/WEB-INF/views/saltformaliaskinds/list.jspx deleted file mode 100644 index b67a409f1..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliaskinds/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliaskinds/show.jspx b/src/main/webapp/WEB-INF/views/saltformaliaskinds/show.jspx deleted file mode 100644 index 3b2a3ce08..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliaskinds/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliaskinds/update.jspx b/src/main/webapp/WEB-INF/views/saltformaliaskinds/update.jspx deleted file mode 100644 index a5dca88b3..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliaskinds/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliaskinds/views.xml b/src/main/webapp/WEB-INF/views/saltformaliaskinds/views.xml deleted file mode 100644 index 851889071..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliaskinds/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/saltformaliastypes/create.jspx b/src/main/webapp/WEB-INF/views/saltformaliastypes/create.jspx deleted file mode 100644 index d59705355..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliastypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliastypes/list.jspx b/src/main/webapp/WEB-INF/views/saltformaliastypes/list.jspx deleted file mode 100644 index 8f8d73d1c..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliastypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliastypes/show.jspx b/src/main/webapp/WEB-INF/views/saltformaliastypes/show.jspx deleted file mode 100644 index a5b53327d..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliastypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliastypes/update.jspx b/src/main/webapp/WEB-INF/views/saltformaliastypes/update.jspx deleted file mode 100644 index 604fd097d..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliastypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltformaliastypes/views.xml b/src/main/webapp/WEB-INF/views/saltformaliastypes/views.xml deleted file mode 100644 index 9610cbcef..000000000 --- a/src/main/webapp/WEB-INF/views/saltformaliastypes/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/saltforms/create.jspx b/src/main/webapp/WEB-INF/views/saltforms/create.jspx deleted file mode 100644 index edf57038a..000000000 --- a/src/main/webapp/WEB-INF/views/saltforms/create.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByBulkLoadFileEquals.jspx b/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByBulkLoadFileEquals.jspx deleted file mode 100644 index 2a5cb20e1..000000000 --- a/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByBulkLoadFileEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByCdId.jspx b/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByCdId.jspx deleted file mode 100644 index de61e255f..000000000 --- a/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByCdId.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByCorpNameEquals.jspx b/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByCorpNameEquals.jspx deleted file mode 100644 index ddf818868..000000000 --- a/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByCorpNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByCorpNameLike.jspx b/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByCorpNameLike.jspx deleted file mode 100644 index 342851064..000000000 --- a/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByCorpNameLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByParent.jspx b/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByParent.jspx deleted file mode 100644 index 0db12bf2a..000000000 --- a/src/main/webapp/WEB-INF/views/saltforms/findSaltFormsByParent.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltforms/list.jspx b/src/main/webapp/WEB-INF/views/saltforms/list.jspx deleted file mode 100644 index bb03c3183..000000000 --- a/src/main/webapp/WEB-INF/views/saltforms/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltforms/show.jspx b/src/main/webapp/WEB-INF/views/saltforms/show.jspx deleted file mode 100644 index 7e2d62350..000000000 --- a/src/main/webapp/WEB-INF/views/saltforms/show.jspx +++ /dev/null @@ -1,17 +0,0 @@ - -
    - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltforms/update.jspx b/src/main/webapp/WEB-INF/views/saltforms/update.jspx deleted file mode 100644 index 57f932a02..000000000 --- a/src/main/webapp/WEB-INF/views/saltforms/update.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltforms/views.xml b/src/main/webapp/WEB-INF/views/saltforms/views.xml deleted file mode 100644 index d49469fb8..000000000 --- a/src/main/webapp/WEB-INF/views/saltforms/views.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/saltloaders/create.jspx b/src/main/webapp/WEB-INF/views/saltloaders/create.jspx deleted file mode 100644 index 977a4299d..000000000 --- a/src/main/webapp/WEB-INF/views/saltloaders/create.jspx +++ /dev/null @@ -1,16 +0,0 @@ - -
    - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltloaders/list.jspx b/src/main/webapp/WEB-INF/views/saltloaders/list.jspx deleted file mode 100644 index 5fb0fee53..000000000 --- a/src/main/webapp/WEB-INF/views/saltloaders/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltloaders/show.jspx b/src/main/webapp/WEB-INF/views/saltloaders/show.jspx deleted file mode 100644 index cbd643c48..000000000 --- a/src/main/webapp/WEB-INF/views/saltloaders/show.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltloaders/update.jspx b/src/main/webapp/WEB-INF/views/saltloaders/update.jspx deleted file mode 100644 index 9227ef54f..000000000 --- a/src/main/webapp/WEB-INF/views/saltloaders/update.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/saltloaders/views.xml b/src/main/webapp/WEB-INF/views/saltloaders/views.xml deleted file mode 100644 index 17bbe9a1a..000000000 --- a/src/main/webapp/WEB-INF/views/saltloaders/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/salts/create.jspx b/src/main/webapp/WEB-INF/views/salts/create.jspx deleted file mode 100644 index 67856f9b5..000000000 --- a/src/main/webapp/WEB-INF/views/salts/create.jspx +++ /dev/null @@ -1,17 +0,0 @@ - -
    - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/salts/findSaltsByAbbrevEquals.jspx b/src/main/webapp/WEB-INF/views/salts/findSaltsByAbbrevEquals.jspx deleted file mode 100644 index 3f4066eb7..000000000 --- a/src/main/webapp/WEB-INF/views/salts/findSaltsByAbbrevEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/salts/findSaltsByAbbrevEqualsAndNameEquals.jspx b/src/main/webapp/WEB-INF/views/salts/findSaltsByAbbrevEqualsAndNameEquals.jspx deleted file mode 100644 index e3d7febf8..000000000 --- a/src/main/webapp/WEB-INF/views/salts/findSaltsByAbbrevEqualsAndNameEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/salts/findSaltsByAbbrevLike.jspx b/src/main/webapp/WEB-INF/views/salts/findSaltsByAbbrevLike.jspx deleted file mode 100644 index da5a0a4e9..000000000 --- a/src/main/webapp/WEB-INF/views/salts/findSaltsByAbbrevLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/salts/findSaltsByCdId.jspx b/src/main/webapp/WEB-INF/views/salts/findSaltsByCdId.jspx deleted file mode 100644 index 92f9400da..000000000 --- a/src/main/webapp/WEB-INF/views/salts/findSaltsByCdId.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/salts/findSaltsByNameEquals.jspx b/src/main/webapp/WEB-INF/views/salts/findSaltsByNameEquals.jspx deleted file mode 100644 index 2e75b455e..000000000 --- a/src/main/webapp/WEB-INF/views/salts/findSaltsByNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/salts/list.jspx b/src/main/webapp/WEB-INF/views/salts/list.jspx deleted file mode 100644 index 25a24bb03..000000000 --- a/src/main/webapp/WEB-INF/views/salts/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/salts/show.jspx b/src/main/webapp/WEB-INF/views/salts/show.jspx deleted file mode 100644 index ee8dc6b60..000000000 --- a/src/main/webapp/WEB-INF/views/salts/show.jspx +++ /dev/null @@ -1,16 +0,0 @@ - -
    - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/salts/update.jspx b/src/main/webapp/WEB-INF/views/salts/update.jspx deleted file mode 100644 index e07a59509..000000000 --- a/src/main/webapp/WEB-INF/views/salts/update.jspx +++ /dev/null @@ -1,16 +0,0 @@ - -
    - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/salts/views.xml b/src/main/webapp/WEB-INF/views/salts/views.xml deleted file mode 100644 index 903c09cf1..000000000 --- a/src/main/webapp/WEB-INF/views/salts/views.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/scientists/create.jspx b/src/main/webapp/WEB-INF/views/scientists/create.jspx deleted file mode 100644 index 6d727cef3..000000000 --- a/src/main/webapp/WEB-INF/views/scientists/create.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/scientists/findScientistsByCodeEquals.jspx b/src/main/webapp/WEB-INF/views/scientists/findScientistsByCodeEquals.jspx deleted file mode 100644 index 539dd467f..000000000 --- a/src/main/webapp/WEB-INF/views/scientists/findScientistsByCodeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/scientists/findScientistsByCodeLike.jspx b/src/main/webapp/WEB-INF/views/scientists/findScientistsByCodeLike.jspx deleted file mode 100644 index f15e8ece2..000000000 --- a/src/main/webapp/WEB-INF/views/scientists/findScientistsByCodeLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/scientists/list.jspx b/src/main/webapp/WEB-INF/views/scientists/list.jspx deleted file mode 100644 index 7f2c457dc..000000000 --- a/src/main/webapp/WEB-INF/views/scientists/list.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/scientists/show.jspx b/src/main/webapp/WEB-INF/views/scientists/show.jspx deleted file mode 100644 index 2d117f9dc..000000000 --- a/src/main/webapp/WEB-INF/views/scientists/show.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/scientists/update.jspx b/src/main/webapp/WEB-INF/views/scientists/update.jspx deleted file mode 100644 index 1a1190d7e..000000000 --- a/src/main/webapp/WEB-INF/views/scientists/update.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/scientists/views.xml b/src/main/webapp/WEB-INF/views/scientists/views.xml deleted file mode 100644 index 1655534ee..000000000 --- a/src/main/webapp/WEB-INF/views/scientists/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/signup/error.jspx b/src/main/webapp/WEB-INF/views/signup/error.jspx deleted file mode 100755 index c3587dfaf..000000000 --- a/src/main/webapp/WEB-INF/views/signup/error.jspx +++ /dev/null @@ -1,16 +0,0 @@ -
    - - -
    - - - - - - -

    User Registration Failed

    -
    -
    \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/signup/index.jspx b/src/main/webapp/WEB-INF/views/signup/index.jspx deleted file mode 100755 index d02959fa5..000000000 --- a/src/main/webapp/WEB-INF/views/signup/index.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - ${captcha_form} - - -
    - - diff --git a/src/main/webapp/WEB-INF/views/signup/thanks.jspx b/src/main/webapp/WEB-INF/views/signup/thanks.jspx deleted file mode 100755 index c1b81d35a..000000000 --- a/src/main/webapp/WEB-INF/views/signup/thanks.jspx +++ /dev/null @@ -1,16 +0,0 @@ -
    - - -
    - - - - SignUp Successful - - -

    Your signup was successful. You should receive an activation email from us shortly. In case you do not get the email, please check your junk folder.

    -
    -
    \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/signup/views.xml b/src/main/webapp/WEB-INF/views/signup/views.xml deleted file mode 100755 index 5b46fb7a5..000000000 --- a/src/main/webapp/WEB-INF/views/signup/views.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/solutionunits/create.jspx b/src/main/webapp/WEB-INF/views/solutionunits/create.jspx deleted file mode 100644 index b61236c0a..000000000 --- a/src/main/webapp/WEB-INF/views/solutionunits/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/solutionunits/findSolutionUnitsByCodeEquals.jspx b/src/main/webapp/WEB-INF/views/solutionunits/findSolutionUnitsByCodeEquals.jspx deleted file mode 100644 index 289b4c044..000000000 --- a/src/main/webapp/WEB-INF/views/solutionunits/findSolutionUnitsByCodeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/solutionunits/findSolutionUnitsByCodeLike.jspx b/src/main/webapp/WEB-INF/views/solutionunits/findSolutionUnitsByCodeLike.jspx deleted file mode 100644 index 5be91c7f5..000000000 --- a/src/main/webapp/WEB-INF/views/solutionunits/findSolutionUnitsByCodeLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/solutionunits/findSolutionUnitsByNameEquals.jspx b/src/main/webapp/WEB-INF/views/solutionunits/findSolutionUnitsByNameEquals.jspx deleted file mode 100644 index 3ebb07aec..000000000 --- a/src/main/webapp/WEB-INF/views/solutionunits/findSolutionUnitsByNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/solutionunits/list.jspx b/src/main/webapp/WEB-INF/views/solutionunits/list.jspx deleted file mode 100644 index b03439dae..000000000 --- a/src/main/webapp/WEB-INF/views/solutionunits/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/solutionunits/show.jspx b/src/main/webapp/WEB-INF/views/solutionunits/show.jspx deleted file mode 100644 index 65a13d6dc..000000000 --- a/src/main/webapp/WEB-INF/views/solutionunits/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/solutionunits/update.jspx b/src/main/webapp/WEB-INF/views/solutionunits/update.jspx deleted file mode 100644 index 08530828a..000000000 --- a/src/main/webapp/WEB-INF/views/solutionunits/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/solutionunits/views.xml b/src/main/webapp/WEB-INF/views/solutionunits/views.xml deleted file mode 100644 index ba3283326..000000000 --- a/src/main/webapp/WEB-INF/views/solutionunits/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/statekinds/create.jspx b/src/main/webapp/WEB-INF/views/statekinds/create.jspx deleted file mode 100755 index 93701f867..000000000 --- a/src/main/webapp/WEB-INF/views/statekinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/statekinds/findStateKindsByKindNameEquals.jspx b/src/main/webapp/WEB-INF/views/statekinds/findStateKindsByKindNameEquals.jspx deleted file mode 100755 index a5437de81..000000000 --- a/src/main/webapp/WEB-INF/views/statekinds/findStateKindsByKindNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/statekinds/findStateKindsByKindNameEqualsAndLsType.jspx b/src/main/webapp/WEB-INF/views/statekinds/findStateKindsByKindNameEqualsAndLsType.jspx deleted file mode 100755 index 59317f9c0..000000000 --- a/src/main/webapp/WEB-INF/views/statekinds/findStateKindsByKindNameEqualsAndLsType.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/statekinds/findStateKindsByLsType.jspx b/src/main/webapp/WEB-INF/views/statekinds/findStateKindsByLsType.jspx deleted file mode 100755 index eda0a00d7..000000000 --- a/src/main/webapp/WEB-INF/views/statekinds/findStateKindsByLsType.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/statekinds/list.jspx b/src/main/webapp/WEB-INF/views/statekinds/list.jspx deleted file mode 100755 index 881181173..000000000 --- a/src/main/webapp/WEB-INF/views/statekinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/statekinds/show.jspx b/src/main/webapp/WEB-INF/views/statekinds/show.jspx deleted file mode 100755 index 4fed0b733..000000000 --- a/src/main/webapp/WEB-INF/views/statekinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/statekinds/update.jspx b/src/main/webapp/WEB-INF/views/statekinds/update.jspx deleted file mode 100755 index 8566dccaa..000000000 --- a/src/main/webapp/WEB-INF/views/statekinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/statekinds/views.xml b/src/main/webapp/WEB-INF/views/statekinds/views.xml deleted file mode 100755 index 61f8c0276..000000000 --- a/src/main/webapp/WEB-INF/views/statekinds/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/statetypes/create.jspx b/src/main/webapp/WEB-INF/views/statetypes/create.jspx deleted file mode 100755 index d0f5ef4d2..000000000 --- a/src/main/webapp/WEB-INF/views/statetypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/statetypes/findStateTypesByTypeNameEquals.jspx b/src/main/webapp/WEB-INF/views/statetypes/findStateTypesByTypeNameEquals.jspx deleted file mode 100755 index c27a691ad..000000000 --- a/src/main/webapp/WEB-INF/views/statetypes/findStateTypesByTypeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/statetypes/list.jspx b/src/main/webapp/WEB-INF/views/statetypes/list.jspx deleted file mode 100755 index f9af121d2..000000000 --- a/src/main/webapp/WEB-INF/views/statetypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/statetypes/show.jspx b/src/main/webapp/WEB-INF/views/statetypes/show.jspx deleted file mode 100755 index 1557f1a59..000000000 --- a/src/main/webapp/WEB-INF/views/statetypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/statetypes/update.jspx b/src/main/webapp/WEB-INF/views/statetypes/update.jspx deleted file mode 100755 index 40da13fbb..000000000 --- a/src/main/webapp/WEB-INF/views/statetypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/statetypes/views.xml b/src/main/webapp/WEB-INF/views/statetypes/views.xml deleted file mode 100755 index b4853ee80..000000000 --- a/src/main/webapp/WEB-INF/views/statetypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/stereocategorys/create.jspx b/src/main/webapp/WEB-INF/views/stereocategorys/create.jspx deleted file mode 100644 index 90bd6506d..000000000 --- a/src/main/webapp/WEB-INF/views/stereocategorys/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/stereocategorys/findStereoCategorysByCodeEquals.jspx b/src/main/webapp/WEB-INF/views/stereocategorys/findStereoCategorysByCodeEquals.jspx deleted file mode 100644 index 0a96ffa10..000000000 --- a/src/main/webapp/WEB-INF/views/stereocategorys/findStereoCategorysByCodeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/stereocategorys/findStereoCategorysByCodeLike.jspx b/src/main/webapp/WEB-INF/views/stereocategorys/findStereoCategorysByCodeLike.jspx deleted file mode 100644 index 7e95ebb58..000000000 --- a/src/main/webapp/WEB-INF/views/stereocategorys/findStereoCategorysByCodeLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/stereocategorys/list.jspx b/src/main/webapp/WEB-INF/views/stereocategorys/list.jspx deleted file mode 100644 index c08de2ac0..000000000 --- a/src/main/webapp/WEB-INF/views/stereocategorys/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/stereocategorys/show.jspx b/src/main/webapp/WEB-INF/views/stereocategorys/show.jspx deleted file mode 100644 index a7dcda8c5..000000000 --- a/src/main/webapp/WEB-INF/views/stereocategorys/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/stereocategorys/update.jspx b/src/main/webapp/WEB-INF/views/stereocategorys/update.jspx deleted file mode 100644 index 662fb5a3a..000000000 --- a/src/main/webapp/WEB-INF/views/stereocategorys/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/stereocategorys/views.xml b/src/main/webapp/WEB-INF/views/stereocategorys/views.xml deleted file mode 100644 index 2bcd752cf..000000000 --- a/src/main/webapp/WEB-INF/views/stereocategorys/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/structurekinds/create.jspx b/src/main/webapp/WEB-INF/views/structurekinds/create.jspx deleted file mode 100644 index e6d41ca99..000000000 --- a/src/main/webapp/WEB-INF/views/structurekinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/structurekinds/list.jspx b/src/main/webapp/WEB-INF/views/structurekinds/list.jspx deleted file mode 100644 index 5d17844aa..000000000 --- a/src/main/webapp/WEB-INF/views/structurekinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/structurekinds/show.jspx b/src/main/webapp/WEB-INF/views/structurekinds/show.jspx deleted file mode 100644 index c71609661..000000000 --- a/src/main/webapp/WEB-INF/views/structurekinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/structurekinds/update.jspx b/src/main/webapp/WEB-INF/views/structurekinds/update.jspx deleted file mode 100644 index 1f0dd50d9..000000000 --- a/src/main/webapp/WEB-INF/views/structurekinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/structurekinds/views.xml b/src/main/webapp/WEB-INF/views/structurekinds/views.xml deleted file mode 100644 index 9c8cd9431..000000000 --- a/src/main/webapp/WEB-INF/views/structurekinds/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/structuretypes/create.jspx b/src/main/webapp/WEB-INF/views/structuretypes/create.jspx deleted file mode 100644 index 3ea75acf7..000000000 --- a/src/main/webapp/WEB-INF/views/structuretypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/structuretypes/list.jspx b/src/main/webapp/WEB-INF/views/structuretypes/list.jspx deleted file mode 100644 index 4cf1f2f64..000000000 --- a/src/main/webapp/WEB-INF/views/structuretypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/structuretypes/show.jspx b/src/main/webapp/WEB-INF/views/structuretypes/show.jspx deleted file mode 100644 index a5cbcfad2..000000000 --- a/src/main/webapp/WEB-INF/views/structuretypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/structuretypes/update.jspx b/src/main/webapp/WEB-INF/views/structuretypes/update.jspx deleted file mode 100644 index 3b0834f09..000000000 --- a/src/main/webapp/WEB-INF/views/structuretypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/structuretypes/views.xml b/src/main/webapp/WEB-INF/views/structuretypes/views.xml deleted file mode 100644 index b4f79b1a5..000000000 --- a/src/main/webapp/WEB-INF/views/structuretypes/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/subjectlabels/create.jspx b/src/main/webapp/WEB-INF/views/subjectlabels/create.jspx deleted file mode 100755 index 2cc26c196..000000000 --- a/src/main/webapp/WEB-INF/views/subjectlabels/create.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectlabels/findSubjectLabelsBySubject.jspx b/src/main/webapp/WEB-INF/views/subjectlabels/findSubjectLabelsBySubject.jspx deleted file mode 100755 index 27d13e38c..000000000 --- a/src/main/webapp/WEB-INF/views/subjectlabels/findSubjectLabelsBySubject.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectlabels/list.jspx b/src/main/webapp/WEB-INF/views/subjectlabels/list.jspx deleted file mode 100755 index 93e975176..000000000 --- a/src/main/webapp/WEB-INF/views/subjectlabels/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectlabels/show.jspx b/src/main/webapp/WEB-INF/views/subjectlabels/show.jspx deleted file mode 100755 index 0a122ccea..000000000 --- a/src/main/webapp/WEB-INF/views/subjectlabels/show.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectlabels/update.jspx b/src/main/webapp/WEB-INF/views/subjectlabels/update.jspx deleted file mode 100755 index d817e29c3..000000000 --- a/src/main/webapp/WEB-INF/views/subjectlabels/update.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectlabels/views.xml b/src/main/webapp/WEB-INF/views/subjectlabels/views.xml deleted file mode 100755 index 06f74dbb1..000000000 --- a/src/main/webapp/WEB-INF/views/subjectlabels/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/subjects/create.jspx b/src/main/webapp/WEB-INF/views/subjects/create.jspx deleted file mode 100755 index c5cbc88be..000000000 --- a/src/main/webapp/WEB-INF/views/subjects/create.jspx +++ /dev/null @@ -1,24 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjects/findSubjectsByCodeNameEquals.jspx b/src/main/webapp/WEB-INF/views/subjects/findSubjectsByCodeNameEquals.jspx deleted file mode 100755 index a774c41fb..000000000 --- a/src/main/webapp/WEB-INF/views/subjects/findSubjectsByCodeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjects/findSubjectsByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/subjects/findSubjectsByLsTransactionEquals.jspx deleted file mode 100755 index 7856b9d3f..000000000 --- a/src/main/webapp/WEB-INF/views/subjects/findSubjectsByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjects/findSubjectsByTreatmentGroup.jspx b/src/main/webapp/WEB-INF/views/subjects/findSubjectsByTreatmentGroup.jspx deleted file mode 100755 index a64ee2150..000000000 --- a/src/main/webapp/WEB-INF/views/subjects/findSubjectsByTreatmentGroup.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjects/findSubjectsByTreatmentGroups.jspx b/src/main/webapp/WEB-INF/views/subjects/findSubjectsByTreatmentGroups.jspx deleted file mode 100644 index 3f9a1a726..000000000 --- a/src/main/webapp/WEB-INF/views/subjects/findSubjectsByTreatmentGroups.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjects/list.jspx b/src/main/webapp/WEB-INF/views/subjects/list.jspx deleted file mode 100755 index 9abefda91..000000000 --- a/src/main/webapp/WEB-INF/views/subjects/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjects/show.jspx b/src/main/webapp/WEB-INF/views/subjects/show.jspx deleted file mode 100755 index 070ebef6a..000000000 --- a/src/main/webapp/WEB-INF/views/subjects/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjects/update.jspx b/src/main/webapp/WEB-INF/views/subjects/update.jspx deleted file mode 100755 index bec9da00b..000000000 --- a/src/main/webapp/WEB-INF/views/subjects/update.jspx +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjects/views.xml b/src/main/webapp/WEB-INF/views/subjects/views.xml deleted file mode 100755 index 47fc8d97e..000000000 --- a/src/main/webapp/WEB-INF/views/subjects/views.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/subjectstates/create.jspx b/src/main/webapp/WEB-INF/views/subjectstates/create.jspx deleted file mode 100755 index be9c0e142..000000000 --- a/src/main/webapp/WEB-INF/views/subjectstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectstates/findSubjectStatesByLsTypeEqualsAndLsKindEqualsAndSubject.jspx b/src/main/webapp/WEB-INF/views/subjectstates/findSubjectStatesByLsTypeEqualsAndLsKindEqualsAndSubject.jspx deleted file mode 100644 index 5f98529d1..000000000 --- a/src/main/webapp/WEB-INF/views/subjectstates/findSubjectStatesByLsTypeEqualsAndLsKindEqualsAndSubject.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectstates/findSubjectStatesBySubject.jspx b/src/main/webapp/WEB-INF/views/subjectstates/findSubjectStatesBySubject.jspx deleted file mode 100755 index 813b4edf7..000000000 --- a/src/main/webapp/WEB-INF/views/subjectstates/findSubjectStatesBySubject.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectstates/list.jspx b/src/main/webapp/WEB-INF/views/subjectstates/list.jspx deleted file mode 100755 index 1fb094fc2..000000000 --- a/src/main/webapp/WEB-INF/views/subjectstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectstates/show.jspx b/src/main/webapp/WEB-INF/views/subjectstates/show.jspx deleted file mode 100755 index c6f1303ff..000000000 --- a/src/main/webapp/WEB-INF/views/subjectstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectstates/update.jspx b/src/main/webapp/WEB-INF/views/subjectstates/update.jspx deleted file mode 100755 index 9660bde46..000000000 --- a/src/main/webapp/WEB-INF/views/subjectstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectstates/views.xml b/src/main/webapp/WEB-INF/views/subjectstates/views.xml deleted file mode 100755 index 236f3bcfb..000000000 --- a/src/main/webapp/WEB-INF/views/subjectstates/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/subjectvalues/create.jspx b/src/main/webapp/WEB-INF/views/subjectvalues/create.jspx deleted file mode 100755 index d964392d9..000000000 --- a/src/main/webapp/WEB-INF/views/subjectvalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByCodeValueEquals.jspx b/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByCodeValueEquals.jspx deleted file mode 100755 index fe63e876e..000000000 --- a/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByCodeValueEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByIgnoredNotAndCodeValueEquals.jspx b/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByIgnoredNotAndCodeValueEquals.jspx deleted file mode 100755 index d6f8cc2ce..000000000 --- a/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByIgnoredNotAndCodeValueEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByLsState.jspx b/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByLsState.jspx deleted file mode 100755 index a16a080bf..000000000 --- a/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByLsState.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByLsStateAndLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByLsStateAndLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index 1341f1099..000000000 --- a/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByLsStateAndLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByLsTypeEqualsAndLsKindEquals.jspx b/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByLsTypeEqualsAndLsKindEquals.jspx deleted file mode 100644 index 49f405f0a..000000000 --- a/src/main/webapp/WEB-INF/views/subjectvalues/findSubjectValuesByLsTypeEqualsAndLsKindEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectvalues/list.jspx b/src/main/webapp/WEB-INF/views/subjectvalues/list.jspx deleted file mode 100755 index 485648353..000000000 --- a/src/main/webapp/WEB-INF/views/subjectvalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectvalues/show.jspx b/src/main/webapp/WEB-INF/views/subjectvalues/show.jspx deleted file mode 100755 index e42ea9076..000000000 --- a/src/main/webapp/WEB-INF/views/subjectvalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectvalues/update.jspx b/src/main/webapp/WEB-INF/views/subjectvalues/update.jspx deleted file mode 100755 index 0212f1d0e..000000000 --- a/src/main/webapp/WEB-INF/views/subjectvalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/subjectvalues/views.xml b/src/main/webapp/WEB-INF/views/subjectvalues/views.xml deleted file mode 100755 index 64b4dadda..000000000 --- a/src/main/webapp/WEB-INF/views/subjectvalues/views.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/tempselecttables/create.jspx b/src/main/webapp/WEB-INF/views/tempselecttables/create.jspx deleted file mode 100644 index 2a391e188..000000000 --- a/src/main/webapp/WEB-INF/views/tempselecttables/create.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/tempselecttables/list.jspx b/src/main/webapp/WEB-INF/views/tempselecttables/list.jspx deleted file mode 100644 index a1e91bcab..000000000 --- a/src/main/webapp/WEB-INF/views/tempselecttables/list.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/tempselecttables/show.jspx b/src/main/webapp/WEB-INF/views/tempselecttables/show.jspx deleted file mode 100644 index 10e982a87..000000000 --- a/src/main/webapp/WEB-INF/views/tempselecttables/show.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/tempselecttables/update.jspx b/src/main/webapp/WEB-INF/views/tempselecttables/update.jspx deleted file mode 100644 index 55dd6a5b2..000000000 --- a/src/main/webapp/WEB-INF/views/tempselecttables/update.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/tempselecttables/views.xml b/src/main/webapp/WEB-INF/views/tempselecttables/views.xml deleted file mode 100644 index a47c05c54..000000000 --- a/src/main/webapp/WEB-INF/views/tempselecttables/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/thingkinds/create.jspx b/src/main/webapp/WEB-INF/views/thingkinds/create.jspx deleted file mode 100755 index 20088867b..000000000 --- a/src/main/webapp/WEB-INF/views/thingkinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingkinds/findThingKindsByKindNameEqualsAndLsType.jspx b/src/main/webapp/WEB-INF/views/thingkinds/findThingKindsByKindNameEqualsAndLsType.jspx deleted file mode 100755 index af370ed24..000000000 --- a/src/main/webapp/WEB-INF/views/thingkinds/findThingKindsByKindNameEqualsAndLsType.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingkinds/findThingKindsByLsType.jspx b/src/main/webapp/WEB-INF/views/thingkinds/findThingKindsByLsType.jspx deleted file mode 100755 index 72ee52bc4..000000000 --- a/src/main/webapp/WEB-INF/views/thingkinds/findThingKindsByLsType.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingkinds/findThingKindsByLsTypeAndKindEquals.jspx b/src/main/webapp/WEB-INF/views/thingkinds/findThingKindsByLsTypeAndKindEquals.jspx deleted file mode 100755 index 301807779..000000000 --- a/src/main/webapp/WEB-INF/views/thingkinds/findThingKindsByLsTypeAndKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingkinds/list.jspx b/src/main/webapp/WEB-INF/views/thingkinds/list.jspx deleted file mode 100755 index 406b194d2..000000000 --- a/src/main/webapp/WEB-INF/views/thingkinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingkinds/show.jspx b/src/main/webapp/WEB-INF/views/thingkinds/show.jspx deleted file mode 100755 index 88b68d143..000000000 --- a/src/main/webapp/WEB-INF/views/thingkinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingkinds/update.jspx b/src/main/webapp/WEB-INF/views/thingkinds/update.jspx deleted file mode 100755 index 139dd8d19..000000000 --- a/src/main/webapp/WEB-INF/views/thingkinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingkinds/views.xml b/src/main/webapp/WEB-INF/views/thingkinds/views.xml deleted file mode 100755 index ddbe7fe5f..000000000 --- a/src/main/webapp/WEB-INF/views/thingkinds/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/thingpagearchives/create.jspx b/src/main/webapp/WEB-INF/views/thingpagearchives/create.jspx deleted file mode 100755 index 2607479f3..000000000 --- a/src/main/webapp/WEB-INF/views/thingpagearchives/create.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingpagearchives/list.jspx b/src/main/webapp/WEB-INF/views/thingpagearchives/list.jspx deleted file mode 100755 index db668692f..000000000 --- a/src/main/webapp/WEB-INF/views/thingpagearchives/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingpagearchives/show.jspx b/src/main/webapp/WEB-INF/views/thingpagearchives/show.jspx deleted file mode 100755 index 59a146dfa..000000000 --- a/src/main/webapp/WEB-INF/views/thingpagearchives/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingpagearchives/update.jspx b/src/main/webapp/WEB-INF/views/thingpagearchives/update.jspx deleted file mode 100755 index 727dd5d78..000000000 --- a/src/main/webapp/WEB-INF/views/thingpagearchives/update.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingpagearchives/views.xml b/src/main/webapp/WEB-INF/views/thingpagearchives/views.xml deleted file mode 100755 index f4688fc67..000000000 --- a/src/main/webapp/WEB-INF/views/thingpagearchives/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/thingpages/create.jspx b/src/main/webapp/WEB-INF/views/thingpages/create.jspx deleted file mode 100755 index b63262577..000000000 --- a/src/main/webapp/WEB-INF/views/thingpages/create.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingpages/list.jspx b/src/main/webapp/WEB-INF/views/thingpages/list.jspx deleted file mode 100755 index 19d76a762..000000000 --- a/src/main/webapp/WEB-INF/views/thingpages/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingpages/show.jspx b/src/main/webapp/WEB-INF/views/thingpages/show.jspx deleted file mode 100755 index 0a43e68dc..000000000 --- a/src/main/webapp/WEB-INF/views/thingpages/show.jspx +++ /dev/null @@ -1,18 +0,0 @@ - -
    - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingpages/update.jspx b/src/main/webapp/WEB-INF/views/thingpages/update.jspx deleted file mode 100755 index 23a42731c..000000000 --- a/src/main/webapp/WEB-INF/views/thingpages/update.jspx +++ /dev/null @@ -1,18 +0,0 @@ - -
    - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingpages/views.xml b/src/main/webapp/WEB-INF/views/thingpages/views.xml deleted file mode 100755 index fe0612117..000000000 --- a/src/main/webapp/WEB-INF/views/thingpages/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/thingtypes/create.jspx b/src/main/webapp/WEB-INF/views/thingtypes/create.jspx deleted file mode 100755 index e539ccd73..000000000 --- a/src/main/webapp/WEB-INF/views/thingtypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingtypes/findThingTypesByTypeNameEquals.jspx b/src/main/webapp/WEB-INF/views/thingtypes/findThingTypesByTypeNameEquals.jspx deleted file mode 100755 index 96041bea3..000000000 --- a/src/main/webapp/WEB-INF/views/thingtypes/findThingTypesByTypeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingtypes/list.jspx b/src/main/webapp/WEB-INF/views/thingtypes/list.jspx deleted file mode 100755 index 0824b6fa3..000000000 --- a/src/main/webapp/WEB-INF/views/thingtypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingtypes/show.jspx b/src/main/webapp/WEB-INF/views/thingtypes/show.jspx deleted file mode 100755 index 492534686..000000000 --- a/src/main/webapp/WEB-INF/views/thingtypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingtypes/update.jspx b/src/main/webapp/WEB-INF/views/thingtypes/update.jspx deleted file mode 100755 index 1be6f8b14..000000000 --- a/src/main/webapp/WEB-INF/views/thingtypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/thingtypes/views.xml b/src/main/webapp/WEB-INF/views/thingtypes/views.xml deleted file mode 100755 index f797b3168..000000000 --- a/src/main/webapp/WEB-INF/views/thingtypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/create.jspx b/src/main/webapp/WEB-INF/views/treatmentgrouplabels/create.jspx deleted file mode 100755 index b3f3c1ff2..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/create.jspx +++ /dev/null @@ -1,22 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/findTreatmentGroupLabelsByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/treatmentgrouplabels/findTreatmentGroupLabelsByLsTransactionEquals.jspx deleted file mode 100755 index 1aa556f0c..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/findTreatmentGroupLabelsByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/findTreatmentGroupLabelsByTreatmentGroup.jspx b/src/main/webapp/WEB-INF/views/treatmentgrouplabels/findTreatmentGroupLabelsByTreatmentGroup.jspx deleted file mode 100755 index 2e01bd12e..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/findTreatmentGroupLabelsByTreatmentGroup.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/list.jspx b/src/main/webapp/WEB-INF/views/treatmentgrouplabels/list.jspx deleted file mode 100755 index 9a720087e..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/show.jspx b/src/main/webapp/WEB-INF/views/treatmentgrouplabels/show.jspx deleted file mode 100755 index 71817ff22..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/show.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/update.jspx b/src/main/webapp/WEB-INF/views/treatmentgrouplabels/update.jspx deleted file mode 100755 index cacba630f..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/update.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/views.xml b/src/main/webapp/WEB-INF/views/treatmentgrouplabels/views.xml deleted file mode 100755 index fe9c33b1d..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgrouplabels/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/treatmentgroups/create.jspx b/src/main/webapp/WEB-INF/views/treatmentgroups/create.jspx deleted file mode 100755 index d16aa009d..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroups/create.jspx +++ /dev/null @@ -1,24 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByAnalysisGroup.jspx b/src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByAnalysisGroup.jspx deleted file mode 100755 index 1f69e766d..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByAnalysisGroup.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByAnalysisGroups.jspx b/src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByAnalysisGroups.jspx deleted file mode 100644 index 7b4de2502..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByAnalysisGroups.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByCodeNameEquals.jspx b/src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByCodeNameEquals.jspx deleted file mode 100644 index 1881cce34..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByCodeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByLsTransactionEquals.jspx deleted file mode 100755 index fa1325a32..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroups/findTreatmentGroupsByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroups/list.jspx b/src/main/webapp/WEB-INF/views/treatmentgroups/list.jspx deleted file mode 100755 index 9e66ad9cc..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroups/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroups/show.jspx b/src/main/webapp/WEB-INF/views/treatmentgroups/show.jspx deleted file mode 100755 index 7a874ae0f..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroups/show.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroups/update.jspx b/src/main/webapp/WEB-INF/views/treatmentgroups/update.jspx deleted file mode 100755 index c98be66b7..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroups/update.jspx +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroups/views.xml b/src/main/webapp/WEB-INF/views/treatmentgroups/views.xml deleted file mode 100755 index 388694553..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroups/views.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupstates/create.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupstates/create.jspx deleted file mode 100755 index dded2947b..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupstates/create.jspx +++ /dev/null @@ -1,21 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupstates/findTreatmentGroupStatesByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupstates/findTreatmentGroupStatesByLsTransactionEquals.jspx deleted file mode 100755 index 761409374..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupstates/findTreatmentGroupStatesByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupstates/findTreatmentGroupStatesByLsTypeAndKindEquals.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupstates/findTreatmentGroupStatesByLsTypeAndKindEquals.jspx deleted file mode 100755 index dac586e0a..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupstates/findTreatmentGroupStatesByLsTypeAndKindEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupstates/findTreatmentGroupStatesByTreatmentGroup.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupstates/findTreatmentGroupStatesByTreatmentGroup.jspx deleted file mode 100755 index d34ea341e..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupstates/findTreatmentGroupStatesByTreatmentGroup.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupstates/list.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupstates/list.jspx deleted file mode 100755 index 34b47014d..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupstates/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupstates/show.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupstates/show.jspx deleted file mode 100755 index 51c396e68..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupstates/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupstates/update.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupstates/update.jspx deleted file mode 100755 index de5c8a119..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupstates/update.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupstates/views.xml b/src/main/webapp/WEB-INF/views/treatmentgroupstates/views.xml deleted file mode 100755 index 0f74be01b..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupstates/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/create.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupvalues/create.jspx deleted file mode 100755 index 95bf1f8c0..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/create.jspx +++ /dev/null @@ -1,45 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByCodeValueEquals.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByCodeValueEquals.jspx deleted file mode 100755 index a1ca7598f..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByCodeValueEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByIgnoredNotAndCodeValueEquals.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByIgnoredNotAndCodeValueEquals.jspx deleted file mode 100755 index f811812c5..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByIgnoredNotAndCodeValueEquals.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByLsState.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByLsState.jspx deleted file mode 100755 index 9f8872c0a..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByLsState.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByLsTransactionEquals.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByLsTransactionEquals.jspx deleted file mode 100755 index 9fab170da..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/findTreatmentGroupValuesByLsTransactionEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/list.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupvalues/list.jspx deleted file mode 100755 index 232e4f182..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/show.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupvalues/show.jspx deleted file mode 100755 index a491b6651..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/show.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/update.jspx b/src/main/webapp/WEB-INF/views/treatmentgroupvalues/update.jspx deleted file mode 100755 index 8e1e3bc49..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/update.jspx +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/views.xml b/src/main/webapp/WEB-INF/views/treatmentgroupvalues/views.xml deleted file mode 100755 index aa79d76d0..000000000 --- a/src/main/webapp/WEB-INF/views/treatmentgroupvalues/views.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/uncaughtException.jspx b/src/main/webapp/WEB-INF/views/uncaughtException.jspx deleted file mode 100755 index 9180b0dac..000000000 --- a/src/main/webapp/WEB-INF/views/uncaughtException.jspx +++ /dev/null @@ -1,29 +0,0 @@ -
    - - - - -

    ${fn:escapeXml(title)}

    -

    - -

    - -

    -

    - -

    - - - - - - - - -
    -
    -
    -

    -
    -
    -
    \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/uncertaintykinds/create.jspx b/src/main/webapp/WEB-INF/views/uncertaintykinds/create.jspx deleted file mode 100755 index 71a5ef2e3..000000000 --- a/src/main/webapp/WEB-INF/views/uncertaintykinds/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/uncertaintykinds/list.jspx b/src/main/webapp/WEB-INF/views/uncertaintykinds/list.jspx deleted file mode 100755 index 4a0303de7..000000000 --- a/src/main/webapp/WEB-INF/views/uncertaintykinds/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/uncertaintykinds/show.jspx b/src/main/webapp/WEB-INF/views/uncertaintykinds/show.jspx deleted file mode 100755 index 7317af1e1..000000000 --- a/src/main/webapp/WEB-INF/views/uncertaintykinds/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/uncertaintykinds/update.jspx b/src/main/webapp/WEB-INF/views/uncertaintykinds/update.jspx deleted file mode 100755 index 0cd16d817..000000000 --- a/src/main/webapp/WEB-INF/views/uncertaintykinds/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/uncertaintykinds/views.xml b/src/main/webapp/WEB-INF/views/uncertaintykinds/views.xml deleted file mode 100755 index 4546581a2..000000000 --- a/src/main/webapp/WEB-INF/views/uncertaintykinds/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/unitkinds/create.jspx b/src/main/webapp/WEB-INF/views/unitkinds/create.jspx deleted file mode 100755 index 05e981244..000000000 --- a/src/main/webapp/WEB-INF/views/unitkinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/unitkinds/list.jspx b/src/main/webapp/WEB-INF/views/unitkinds/list.jspx deleted file mode 100755 index 846ce1ae3..000000000 --- a/src/main/webapp/WEB-INF/views/unitkinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/unitkinds/show.jspx b/src/main/webapp/WEB-INF/views/unitkinds/show.jspx deleted file mode 100755 index 9628deb3c..000000000 --- a/src/main/webapp/WEB-INF/views/unitkinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/unitkinds/update.jspx b/src/main/webapp/WEB-INF/views/unitkinds/update.jspx deleted file mode 100755 index 537d14969..000000000 --- a/src/main/webapp/WEB-INF/views/unitkinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/unitkinds/views.xml b/src/main/webapp/WEB-INF/views/unitkinds/views.xml deleted file mode 100755 index 438925a0e..000000000 --- a/src/main/webapp/WEB-INF/views/unitkinds/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/units/create.jspx b/src/main/webapp/WEB-INF/views/units/create.jspx deleted file mode 100644 index 6a876891e..000000000 --- a/src/main/webapp/WEB-INF/views/units/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/units/findUnitsByCodeEquals.jspx b/src/main/webapp/WEB-INF/views/units/findUnitsByCodeEquals.jspx deleted file mode 100644 index b23678201..000000000 --- a/src/main/webapp/WEB-INF/views/units/findUnitsByCodeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/units/findUnitsByCodeLike.jspx b/src/main/webapp/WEB-INF/views/units/findUnitsByCodeLike.jspx deleted file mode 100644 index b283c0d51..000000000 --- a/src/main/webapp/WEB-INF/views/units/findUnitsByCodeLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/units/findUnitsByNameEquals.jspx b/src/main/webapp/WEB-INF/views/units/findUnitsByNameEquals.jspx deleted file mode 100644 index 164c32987..000000000 --- a/src/main/webapp/WEB-INF/views/units/findUnitsByNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/units/list.jspx b/src/main/webapp/WEB-INF/views/units/list.jspx deleted file mode 100644 index a008cf782..000000000 --- a/src/main/webapp/WEB-INF/views/units/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/units/show.jspx b/src/main/webapp/WEB-INF/views/units/show.jspx deleted file mode 100644 index 4d921895c..000000000 --- a/src/main/webapp/WEB-INF/views/units/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/units/update.jspx b/src/main/webapp/WEB-INF/views/units/update.jspx deleted file mode 100644 index 04ad08e50..000000000 --- a/src/main/webapp/WEB-INF/views/units/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/units/views.xml b/src/main/webapp/WEB-INF/views/units/views.xml deleted file mode 100644 index cd66c7ac7..000000000 --- a/src/main/webapp/WEB-INF/views/units/views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/unittypes/create.jspx b/src/main/webapp/WEB-INF/views/unittypes/create.jspx deleted file mode 100755 index 039a9dfe3..000000000 --- a/src/main/webapp/WEB-INF/views/unittypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/unittypes/findUnitTypesByTypeNameEquals.jspx b/src/main/webapp/WEB-INF/views/unittypes/findUnitTypesByTypeNameEquals.jspx deleted file mode 100755 index 0261512e9..000000000 --- a/src/main/webapp/WEB-INF/views/unittypes/findUnitTypesByTypeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/unittypes/list.jspx b/src/main/webapp/WEB-INF/views/unittypes/list.jspx deleted file mode 100755 index 2a811e0d2..000000000 --- a/src/main/webapp/WEB-INF/views/unittypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/unittypes/show.jspx b/src/main/webapp/WEB-INF/views/unittypes/show.jspx deleted file mode 100755 index 1611c6ef1..000000000 --- a/src/main/webapp/WEB-INF/views/unittypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/unittypes/update.jspx b/src/main/webapp/WEB-INF/views/unittypes/update.jspx deleted file mode 100755 index 9bd6862df..000000000 --- a/src/main/webapp/WEB-INF/views/unittypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/unittypes/views.xml b/src/main/webapp/WEB-INF/views/unittypes/views.xml deleted file mode 100755 index ac8105bfe..000000000 --- a/src/main/webapp/WEB-INF/views/unittypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/updatelogs/create.jspx b/src/main/webapp/WEB-INF/views/updatelogs/create.jspx deleted file mode 100755 index cedbed6d0..000000000 --- a/src/main/webapp/WEB-INF/views/updatelogs/create.jspx +++ /dev/null @@ -1,14 +0,0 @@ - -
    - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/updatelogs/list.jspx b/src/main/webapp/WEB-INF/views/updatelogs/list.jspx deleted file mode 100755 index 6fa09f9ab..000000000 --- a/src/main/webapp/WEB-INF/views/updatelogs/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/updatelogs/show.jspx b/src/main/webapp/WEB-INF/views/updatelogs/show.jspx deleted file mode 100755 index 22408e8d6..000000000 --- a/src/main/webapp/WEB-INF/views/updatelogs/show.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/updatelogs/update.jspx b/src/main/webapp/WEB-INF/views/updatelogs/update.jspx deleted file mode 100755 index c18376d52..000000000 --- a/src/main/webapp/WEB-INF/views/updatelogs/update.jspx +++ /dev/null @@ -1,13 +0,0 @@ - -
    - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/updatelogs/views.xml b/src/main/webapp/WEB-INF/views/updatelogs/views.xml deleted file mode 100755 index 73aab2b4d..000000000 --- a/src/main/webapp/WEB-INF/views/updatelogs/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/userroles/create.jspx b/src/main/webapp/WEB-INF/views/userroles/create.jspx deleted file mode 100755 index f0bac564b..000000000 --- a/src/main/webapp/WEB-INF/views/userroles/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/userroles/findAuthorRolesByUserEntry.jspx b/src/main/webapp/WEB-INF/views/userroles/findAuthorRolesByUserEntry.jspx deleted file mode 100755 index 80d7eb711..000000000 --- a/src/main/webapp/WEB-INF/views/userroles/findAuthorRolesByUserEntry.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/userroles/list.jspx b/src/main/webapp/WEB-INF/views/userroles/list.jspx deleted file mode 100755 index 50f2de628..000000000 --- a/src/main/webapp/WEB-INF/views/userroles/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/userroles/show.jspx b/src/main/webapp/WEB-INF/views/userroles/show.jspx deleted file mode 100755 index 12ad56469..000000000 --- a/src/main/webapp/WEB-INF/views/userroles/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/userroles/update.jspx b/src/main/webapp/WEB-INF/views/userroles/update.jspx deleted file mode 100755 index 06b48482a..000000000 --- a/src/main/webapp/WEB-INF/views/userroles/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/userroles/views.xml b/src/main/webapp/WEB-INF/views/userroles/views.xml deleted file mode 100755 index ebc2f0197..000000000 --- a/src/main/webapp/WEB-INF/views/userroles/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/users/create.jspx b/src/main/webapp/WEB-INF/views/users/create.jspx deleted file mode 100755 index 91d10ecab..000000000 --- a/src/main/webapp/WEB-INF/views/users/create.jspx +++ /dev/null @@ -1,20 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/users/list.jspx b/src/main/webapp/WEB-INF/views/users/list.jspx deleted file mode 100755 index 951a33f14..000000000 --- a/src/main/webapp/WEB-INF/views/users/list.jspx +++ /dev/null @@ -1,15 +0,0 @@ - -
    - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/users/show.jspx b/src/main/webapp/WEB-INF/views/users/show.jspx deleted file mode 100755 index 6080f9af5..000000000 --- a/src/main/webapp/WEB-INF/views/users/show.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/users/update.jspx b/src/main/webapp/WEB-INF/views/users/update.jspx deleted file mode 100755 index d66c26b9d..000000000 --- a/src/main/webapp/WEB-INF/views/users/update.jspx +++ /dev/null @@ -1,19 +0,0 @@ - -
    - - - - - - - - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/users/views.xml b/src/main/webapp/WEB-INF/views/users/views.xml deleted file mode 100755 index 39d37cf19..000000000 --- a/src/main/webapp/WEB-INF/views/users/views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/valuekinds/create.jspx b/src/main/webapp/WEB-INF/views/valuekinds/create.jspx deleted file mode 100755 index a7169529b..000000000 --- a/src/main/webapp/WEB-INF/views/valuekinds/create.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/valuekinds/findValueKindsByKindNameEqualsAndLsType.jspx b/src/main/webapp/WEB-INF/views/valuekinds/findValueKindsByKindNameEqualsAndLsType.jspx deleted file mode 100755 index 38cca5424..000000000 --- a/src/main/webapp/WEB-INF/views/valuekinds/findValueKindsByKindNameEqualsAndLsType.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/valuekinds/findValueKindsByLsType.jspx b/src/main/webapp/WEB-INF/views/valuekinds/findValueKindsByLsType.jspx deleted file mode 100755 index 0bd39f1ca..000000000 --- a/src/main/webapp/WEB-INF/views/valuekinds/findValueKindsByLsType.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/valuekinds/list.jspx b/src/main/webapp/WEB-INF/views/valuekinds/list.jspx deleted file mode 100755 index 1ae9da8ca..000000000 --- a/src/main/webapp/WEB-INF/views/valuekinds/list.jspx +++ /dev/null @@ -1,12 +0,0 @@ - -
    - - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/valuekinds/show.jspx b/src/main/webapp/WEB-INF/views/valuekinds/show.jspx deleted file mode 100755 index ea3faa6cf..000000000 --- a/src/main/webapp/WEB-INF/views/valuekinds/show.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/valuekinds/update.jspx b/src/main/webapp/WEB-INF/views/valuekinds/update.jspx deleted file mode 100755 index 9aca12a33..000000000 --- a/src/main/webapp/WEB-INF/views/valuekinds/update.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/valuekinds/views.xml b/src/main/webapp/WEB-INF/views/valuekinds/views.xml deleted file mode 100755 index 730f61019..000000000 --- a/src/main/webapp/WEB-INF/views/valuekinds/views.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/valuetypes/create.jspx b/src/main/webapp/WEB-INF/views/valuetypes/create.jspx deleted file mode 100755 index 639ad6a36..000000000 --- a/src/main/webapp/WEB-INF/views/valuetypes/create.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/valuetypes/findValueTypesByTypeNameEquals.jspx b/src/main/webapp/WEB-INF/views/valuetypes/findValueTypesByTypeNameEquals.jspx deleted file mode 100755 index 0956d57fb..000000000 --- a/src/main/webapp/WEB-INF/views/valuetypes/findValueTypesByTypeNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/valuetypes/list.jspx b/src/main/webapp/WEB-INF/views/valuetypes/list.jspx deleted file mode 100755 index a823fb756..000000000 --- a/src/main/webapp/WEB-INF/views/valuetypes/list.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/valuetypes/show.jspx b/src/main/webapp/WEB-INF/views/valuetypes/show.jspx deleted file mode 100755 index 61f750482..000000000 --- a/src/main/webapp/WEB-INF/views/valuetypes/show.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/valuetypes/update.jspx b/src/main/webapp/WEB-INF/views/valuetypes/update.jspx deleted file mode 100755 index 76df8d39b..000000000 --- a/src/main/webapp/WEB-INF/views/valuetypes/update.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/valuetypes/views.xml b/src/main/webapp/WEB-INF/views/valuetypes/views.xml deleted file mode 100755 index 5be85b6ae..000000000 --- a/src/main/webapp/WEB-INF/views/valuetypes/views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/vendors/create.jspx b/src/main/webapp/WEB-INF/views/vendors/create.jspx deleted file mode 100644 index b5a1a65b4..000000000 --- a/src/main/webapp/WEB-INF/views/vendors/create.jspx +++ /dev/null @@ -1,10 +0,0 @@ - -
    - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/vendors/findVendorsByCodeEquals.jspx b/src/main/webapp/WEB-INF/views/vendors/findVendorsByCodeEquals.jspx deleted file mode 100644 index 5e018b35b..000000000 --- a/src/main/webapp/WEB-INF/views/vendors/findVendorsByCodeEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/vendors/findVendorsByCodeLike.jspx b/src/main/webapp/WEB-INF/views/vendors/findVendorsByCodeLike.jspx deleted file mode 100644 index 3ef883a88..000000000 --- a/src/main/webapp/WEB-INF/views/vendors/findVendorsByCodeLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/vendors/findVendorsByNameEquals.jspx b/src/main/webapp/WEB-INF/views/vendors/findVendorsByNameEquals.jspx deleted file mode 100644 index 6be5aed8a..000000000 --- a/src/main/webapp/WEB-INF/views/vendors/findVendorsByNameEquals.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/vendors/findVendorsByNameLike.jspx b/src/main/webapp/WEB-INF/views/vendors/findVendorsByNameLike.jspx deleted file mode 100644 index 873bc4b11..000000000 --- a/src/main/webapp/WEB-INF/views/vendors/findVendorsByNameLike.jspx +++ /dev/null @@ -1,8 +0,0 @@ - -
    - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/vendors/list.jspx b/src/main/webapp/WEB-INF/views/vendors/list.jspx deleted file mode 100644 index 209200b2f..000000000 --- a/src/main/webapp/WEB-INF/views/vendors/list.jspx +++ /dev/null @@ -1,11 +0,0 @@ - -
    - - - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/vendors/show.jspx b/src/main/webapp/WEB-INF/views/vendors/show.jspx deleted file mode 100644 index df629a35b..000000000 --- a/src/main/webapp/WEB-INF/views/vendors/show.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/vendors/update.jspx b/src/main/webapp/WEB-INF/views/vendors/update.jspx deleted file mode 100644 index c9843dd01..000000000 --- a/src/main/webapp/WEB-INF/views/vendors/update.jspx +++ /dev/null @@ -1,9 +0,0 @@ - -
    - - - - - - -
    diff --git a/src/main/webapp/WEB-INF/views/vendors/views.xml b/src/main/webapp/WEB-INF/views/vendors/views.xml deleted file mode 100644 index 626498a1d..000000000 --- a/src/main/webapp/WEB-INF/views/vendors/views.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/views/views.xml b/src/main/webapp/WEB-INF/views/views.xml deleted file mode 100755 index e92932a94..000000000 --- a/src/main/webapp/WEB-INF/views/views.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index f189e573e..91d00c072 100755 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -4,7 +4,7 @@ acas - Roo generated acas application + acas application diff --git a/src/main/webapp/images/add.png b/src/main/webapp/images/add.png deleted file mode 100755 index d5bfa0719bc3a2ce4fc529403f0acd6b6057c956..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 739 zcmV<90v!E`P)BG67=JY6c|L1R-#TR>fC$3^Y%QEnYO1xHsf)+GU`3F<{J0kR(;pbF3)zyg$H+idfnl-wl5Wkh!vUH z4Z32YP=l_}1rZd1W_D&^$A($A+&a0e&P?xx0!ctY2}*<#p+qPVN*B(YzvAWXa*%bzq z7Fz41LKILT(GWohi9|LgIzSZBhb*Zf6R6O}WYQ4GOi&71s9lmll0x6;8&ILOl$j(c z0Z1T(6Tg09{?wd{moFHNN6PS?$|e>1MxSJ(0Z7o2)J-Zv|>acY@f`(Y@g7GwsEj5NLQo+q|HsxQ5}XSX_d@*^A9ZT9=A{W~j+$GyI1 zc4oqTHx@1FlRjw4XWyPN5i2~l_F3@aBk!0yu^aoRDvXy}8@HCjUVQUsuSH4$T5|r< zzZOn^?Wfa6y|Q($Hx4{ws+)wX6-HP4zo!S?4KJ@7PG@G3G{CjXs(p*kIrj6rHs7_y z+=<-=Q62s9FuWa^X~WKgJIAAZJR&XBB002ovPDHLkV1jCMPILeO diff --git a/src/main/webapp/images/banner-graphic.png b/src/main/webapp/images/banner-graphic.png deleted file mode 100755 index 7d2b78c6e370c97f342921e8158c324b73c8bda6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13194 zcmZvCWmH_jvh@%M?h@SHEx0=b2*KSw1czY39R?5X?hb>yI|OHNf&~xm-;jIXdhf@# zrsu4)&g$vuu2Z#Z@9GZ!@>vE2kpK|@0HDapN~!<=&}5K%d3adJHLQH+8vuZ)WGx}_ z<%^ZQi@mdzy#tw?gany`lf8xYH*)~MeI--XQcd;ngV62zmAHJE-%oja6&!dn74b+v z>^K?*as>2GVdS~XILbX3Qc^I4!#QEl(b0ZD9Azft2*f40-{g7Gf%#z(qmNr&`8Esf zw|f&Wjf=wj6_=UyQ*hnz$VsxC%3OZPrQ#$Qn}I|9gIm8@MEwz|902I>^=9PG&y-Mr zJ0C$oMv88@P5_kqED}7RTQR+xjVSaL?T>h>9+Y1YRJThUuROdTHbB%fTD%A#Dh=hA znL?uq$bkVEjhUM40KPB-jA(uLW&wVgcd1@b0NtPDI8Zrp05UA|FiC)w0H9(@BSH$G z#RkB(kniUMEHMMvvM*1uz<>q;v-ar2?>}|7r?e zFjk@OGe9hrS|`{-#V6&j3(xEbr>V(8LN_Ug%ZSZw{LVN{l%>}r6`#ZZBiiQWH~^3n zhXYyd<+J-FYSrW??(d$%bUnvw4O~oSwnXK-`$UHS6y*?4oQuNE2v}iG4?KqHDQyZ{Gp{f7|SP=IG#| z{j37Frrci7M4n}Gr~!T!a`BD;fPo|xi`r4NKJXezgbb z$%s2hoT|T999|+GKG8`mn^$Vgc_N;Eb(6< zr+0jzdeW_N0>c1~fTxgl8TOz4b;?3>$c+*$B|HQ{(s@YJW-jb$F&}c$r=1!Ign-<+ z`_tuCXe%+o5<_g=2Y7It{omMF2K&Tod6^IrOvh>|Dv-+u32HPdpxeT)O{Z$zU@-lq zx)Hcx+{DR@NyKEe6tq4s$(E22QGLW%LEu4v4pQ!=rAR1|Z=h+#xbMd^;b0Hdl4YV? zz>L9SMfVDm=;xur442@bZHav+S6iU=3-g!sFFO^=L#ER7kFo@m2_q|JHg#}(KbgoF zhl77-{_gwD`J3=J`CnbcOcPPZf;-i1I+f9{pYV6lcR%jJnx}AxspqGutd-=dVQ|Ih zh*#!`>+)`2hOL z4H+c_CvYgtk`6x|4-U@~-wm%iMWG0PHWGhGjg5!>C}lqtE!AFKivh&&11D}2G4WF( zO(G!!t6FJUQQ3MKlKQ3km|9G!fvR_vv^uBiPAS4%Qn`9r=9eQ?LRHIBfs)WN%MyDv zkpds>=WtlZCZcs6(nv`_Ug&Z0HlM9<7XJ%;fvbebr^vwPM8L4~jzk*HtWKHid+_ zZIW(XcEzVDS)B%cSqk>W>mD8Z4@BOq&uY)M55?Cq$Xc-V$W*Xk-L1NY+ z@P)F3exImBp>d*d@>Wn>%ZyXiegI< zeUX5IfWpwk_(a~sLMm6f5c?v>e)@j;V){mtk&e3#6Q~5#Y%W*#Tc=3-6x41Ptiz{W zsHLu>UoTymSxLRnR@qjJQQY!5;d6P`f@NRL1!x3R+Js-Ty95ia0@;GRjV(=ZEt>|a z`c4x%61-czqn?G}P(qhc%ZYV}eViMdu=zFk*V865PDQ*2u96N}Ew!f5r9aDHxRx!>ftO*C;qn1vEXl$w>4bx8!yUgrxm-KyZ+ZT@&P=aQ?>#92SD$j9 zTAzllW{-c&rq9ymbe`@Tme^F@oe@FGPGqy$sPIveQ1Z8I+^1wUWsTFUT&!s-bSt|x zKEoBh5q8Sn5#ABxS?5^SHXP^aZW?YHQ|hzNG7R33@TGh;d-Z&s0TlaDLs>$H`-}PO zzI(j${6XFoEy52rzo}b35d-G5h~bFE1XKp>_EeHv4Ijr=lHcy9OvX)GqXvKRIarv6 zGu|_f?DIjU4Gs;~3=xTT2-6~%VNd3An^~1`-jIBdOp;trw`5o1t7iVh#UNb9@>Ot! zr}bm2$RLY__V~P3rk30{c_Ka*hAM8mZ=D-YCzqkyncGM^Ubrc&!}<;$xs$zD!Nng+ zSumOSlSCE5KJ)%O7ei+#`2eK;i{(Zgjp)%!+-pg}I>S8^wj`m)K=S#oEQ6wF{Bc}6 zmj~4VXCc#WOAu{oY`X%A!dg0i)`zt3WVRea{2lCp@o}+^;$`HD2_VZqmU|Z8$12Q& z>s|)zBAZxA65&Q{>SHV3YcnH)#ETBpbm$ft;OZ>RH7&X(!bka%%Ci_JPR8p;!Ld9U zXW6eOn7x==@u0#Gc}-?wt-X$luY7fajvipd9h~=!AsVn1g3S>i2HSb1@)OPEDxVG- zPemJlgPzfVo<=B}BP4ai-C*yd)x{HiB`sF%jYi{#kW4~hobZS$Y%p#zj_(rPs{1Zs zsQqYH>gvyi((?Wmvnh*T7KeN5%vrjqNoC1<$*6WH%PS2i8yXEK*EdpN*5nB~a9bcq zq9wmeu({p5cw}-yKt!!T?Mm%Ijr;W1TBGseo!!hSp;!CO$K!dhZu{-C@JJ_E9ZFqs z-eTVTQSPz+R-`Jt?C>t>(N@3mv#sOF5cDtTXE;h!&|=HnJn=6fHIWjA=1v5 z%riG;6mAstsEomFN(V`g--ovd8@D7V{43vqUKLw#v!vgNEs0sbil_ZelTKGnd(<`2 zZB-f};_?)fAGCPmBmD5&l6=~8XPdgU-+Ho@}m6fiR})7yvTe$@z^2lCoCo!t0} zW`EX-?y~hu>NRp-pj}{6?{Blq-#YLvmS(eNS~b6+?H`vvf-ecPN<(cKZE004dNwVm zo*j)|7Pp6lSv-?#R~;S~A6^&cv-pJ8Ixao!ZwGF#H$JTSIMF^&jANPyvh!X(4!`yFr;VAkE-iZCi21v|ZS$Ns22AfHhm zKoT=dcPazLRhL|W$dbPeg_4E0;DE}MEZ0s%PQ`9T(Gn*|#+fkw{7cBY+;fU_USEIy zT4P>U=yv3Cch;xA&3@9h@!)Y{c8y5|MOhd?|+_& z#RACx(-%Gf2L3<&AlLtI*LOkx9rpirr4s$0pOgKcQUA9qCfR@gT@3wyyQYMcw1>+v z``={kOs9S*VTZMN#6L1#XZd(+LFd2<(pl-8j16T<57LYz19OJks zvT>(<(C${`P)lU#?f$}pSxTpJNcD-rJXXROIXXi|7J(8w0%$@S$f}6mPi3-R^()AJ z7`S zLtMh|AJV$As|LTVd$t}4AHEF5&$7;dg21Lf{I|c4uT3T{dfWDgg^c>`&IU0toKG{H79lWvRU&<+fUk| z6N2{(QmIs_6vDoQe}A{DHXmsD_E~&uGZl!49OZc6Fr6XdYeQ2KeiX{pgwB(0J>^*2 z@U!T&4Ua%u6uyhVM>GCSE{s=Q*>39*i9uu5&e4qUes7J$`4)IS0C#zoKK62tfL6up zvJAV}Y^k8N+HBirxOs=**kdCp>Jo;)^X5h=_{g`1c=&TY90WP&P$n<*yCh&I0|6@0 zB3P+7iXV^iUJmMO1QLE3$AW&@&kxyx6BNpU+yX)+i-9fpp;?0W1ZMlb*?GM-b4q9B~{{zzXe|1AH2$3$jJq=dIQ^uAuiQF z5K;y0ooQ`FANidOieo3v>^<|w4}290V$+QuSJ9ij5=(R;#g0>}z;C#H3+1*LXHXk8 z9}c|$eM>wIkvLR>6=Uwfge~~D3f;rI_?N9lCCLXr^vRGF^?tzHNzi?a?XCFt3Mj%* z4)IQBp$2iuH~>ksqCiJ-l6O?~ya=(SiXI-+a~mYfhxCHYCf$A0x14{R20^o0rv59} z=s0vtFrT!3H~>A0A_>5G_M6Jn;0H1i%9kYsC{`6HgBWo^I)iP>1MZ^MbF!JYz|&Kp z+8O`x#36=4=AoEBbkJbzP=og83{41UT=d3W_v}?;ePDX7<9!gsgtXZ1vmHQ9k*&Bc zP2hV32`n^>OZ!M)F2n}COgtkQVKOM5%5H;Ns_uIpz~*@1X!kB0@9f1h%eQG~hvSQ30UEZ2)El;#O8k(7o23%P z#6hbo{{jUBY68`UuQ18-q^;N_7&ex^v)3SvOaJ~#hG;ewV2^0Xvm-3~osotH+dV+x zi{HI{pl?;su?_?p{z_tQRCj* z$HVN@4K(fa&S7JG^JzTic*hWzQ6WZ4BbHw>$Bm3QRNKhDd__uQFXf;67GG^UhIQ>O z)6UB`Hos~;RMXn6)`>!oR|>(K73>G!0XvIAW6n1b1T=H^W_i#g1hq8kd;i$p&0iS> z1QTb1;rGIGKDNHS19qQ+?bfa7;my7KSY{=MaPy%E*=WnNfjwMp&tPEsdaj9FW)N`< zRq=^WNihD^`Nz|aA?7<=0JgRg6PD(A8cCIOyFH$c-&`xmHXIlGisN(*25V9FmN!X5 zvfj>vSiTDs08c&Ca=8|g<6iWiwWXkAQjXuagF*~EamTxni!j3Y!N?2 z_@CN^)M;b#PbqD9t8~EHJtD+B-H#7h%|Zv^dk`dL4YqaRVP5?CjmCkClDQr69yd^< z;ML&qj8zckt0#7B596?pr^gq`NK&U5ZOFX->jeohMNm39$u}=k3#o$qR76n1=j-TI zzHRTMEW!r;IPDL#zPA8(ia!>_&o174Swl9BtDzery9C((LgIGNN5Y0>Gax>3eAvSh z#wjq$Uh+HLOlVhYXQ}Ea9b-|I_ z2tlkK8q%!YN90%3(=61I1cq11ZYFH+g=zhH*TAX86>G$%&}U5FKwvc|1o!=Ki z!wYf_BV9J+2_AW^oNp@cr0eCwQru}cUYQIiN?q6b77?ot$^S_G9mD)UwK|E0N%GH2 zZ>;D=mH3L~a~v2+YIy^T#@ws8f^R!%%~lj1eTsJyB~}_XMCO%#IM{e=%$Kij}@4c+FK7N?G0xpRhGHz@P_XDTf zsa-k%TU(b&>vgBl+1@?1tGF*MY{!`>woNUzQ0Cdbw%uv=)aA!Th@6U4b=88Gb&R(M%876}?lW@?! z!3#o`?=HKQ=gRDGBK3Qo$_`>*XMM^~k&Lmj(VO?0Bz^viSv|q)oB%(M#N@n}QMWDq zMQ`Ld2X>PSF~Q4U`FGXHKFC6|!bn#AZNyWx$iZXTr<${Ul^Z5pitY75;YIwY6oRrY zZ{Xa&#JO5d$-PPB&$8>?XmO4e{MT~BdO1t0KM-|?d(ei>#Y3JnCzoi~G zZ46o3>%3b@Btq*)tWAIN2X&*P%3ITs02=^cCJyRpY*OjXT5jK@ZRgGJRzqKj3kT{^ zq*h)mf4pkG68F^#hvtrTf6);n%wE0H*8@2eF2CFiHRW|YQr+G$rFikB*}Y;|n6HSe zy)b+iyyrt6^wfth5$7y9KL>}TpAUb||1SuVT)BRgjjHi`*DstP zr_sY+{~jJtp(M=5 zo_Gy$C>cKXz3Gb837WE7H;zC9xIZoXI^mEaBk#8=ZCk$H9_=+yBdtf+>iYP_>h!aB zcc{*D6geN6-enSYx=*)|APAiirI`5LN6k(LgW_1z+zrq&51(S0yLw(XV`#}Q-UtNx z4w8IZR2<5;h7Xd8uEd~k-+HG=1cA6Zu;WwC%+O1Y_Kcu!R=tC+QL2AZPDFAhWG~|Q zlI_+Jij{}(b_krFrpaDB@1^s*!Y;V!l-eDq+3g3+c^n?UA4O&NQcQ?w2BaK$jSv8xV-;Jm}ros>1-eWsZ<@sr#8>Xpo~6qjNd%6kYK< zyGqIV=5<^U+}r9D{O*iISIiFr(l7maI;KZ)eP44eo{qtxwVqPYBW;)xU9PoC%>1+4$)Ix#s)DBoji?`Qc`9f0`DUkUh_3}hQ`7wYpx2j+ zICHX<-4v1HyoGfd(-c*1QeW?hO3<#;HgxBs=fT}2=xnje6|0QlL&^r@*jINYhW`4?<;p0}`g31-ENx0k+ZU$`PhP16 zec;lAmftzsZSsE?g{KqH(#n5Vm=fqA-G2AS(gz6U;oiCs0y{23H|1UL>Vxiwz^Gf{ z#Z9KOmVel=Px>xE5((ckG??wX|Lmdw{3_GaEkOWdj}W$7#a4$TvSKSoS)-|jvhf|2 zph%2S<%#$VEagljbU(eu2nonyo6LrWh? z7O7X*($PMuz=|(ecm0SpI;cZ-T(|#sn>#PrHzOF8LeU=XKk_rOa~1rEBY;uidiWFP25w-UOw1PC#OhD;ol#CE_xzY^d# zl)WyTUyYEcIkDPxuGig)K~k#X0Sy!ykjZMYxT*L$1Ij$~)_q1OBv^E(}opqjh3O_|&UIgb_8H;0Fkn7@7Cz9j)N8cb&9dw7()6;?a&DbQQ{8Y2qf{Y*EK%GMt7?@j;`*LK~vU4$nHSVjw3t zMZ}VQpW?`o$K>+CSf6|BiO+R!g-cyN<7CM5q&J#UuzjVvRHqkB{A>T6X1J(&-GpPm#Dm9>6RZAcD>koUv ztc_Pr87(Di$Kd=*H3o7jVV5GxIH!g7Y;`^Viv3Wqj}w(;#{P-r%L@(PN%DuO8wK@a z-_`ab+Zw>WXajs+iJMeOQK*c%$A9U8(DbhtP$m@{v(<-+x?i8t(aDQq0T&#+SfzNF zr75OaOpNgKA#}=#Y`wYgYSiDtu=x79@I36t*N|lvW7EdFAgO(TYwV)a?Z+SyeAN*F zDv1~B>*K(QY=KD?_;O7ni~QJ7OS#}QDEXGmroYXudta-ya_=M&F&-eg=z3v$7p9z> zMj}>)@Zb3~&U9qY@9aY1N8IFAG+?4E+V)~8i3DL42cobUHnu~J{rRITP>sqp?`q*b z2LZvQx>|(BdDp$VnB#BKM=$yZ$6t3q%3XO-nfkU%>vbrA>AAbu)SKHQ0fJilR~F~x zLRUs*UHwpjt_35Is;YiyNMrgJ$bjWZJSppG%!Fy@TPR?KTG#dy^qU5d(bW2f#ph8_ zV{PsX2rWjWgSczC%S#+~yZpVrOlwHcBrdJCKe`HMo+JW!K?wO6gZNjNh>GUWySx4e z+t(-imf4uhwHVs$S5%g(%q@ZzAbYhghClN&!^eWNYPg42HnM-C(pda@55Vo~s~BgBriT z8vjO@=Y?c}^9&*T(ISwo!XmjI8>RQ}*{zB$OMa z%ZN_gT(Y+b4_Wfad4zVi6{qVFpF z1Q!p4cE*dQDBU`GMpP3meKQ0P6G`Oz9^^GMs z5*Ia6ZI2iu$6T2jH6wKdo-|LpeIQ;dKHm#A<(>8T*=FEUKq>^iU*mNqvXj^)Xqv96 zqvv0F)<#+%!Po+OR9j!oyOJ(qS*xAUzc$U)PJhY3>RR!t1D0>;nrc5zF*HS03C;iI z+4&`fXK48aLc}*I@m7(9|4RC6>ViB8GoGgmX_~UUu3aHP`r$&%+U1{q+1uh9oO4#R zRs#z;KA?9xyjEJdUAUV?ogVME$iO+|59C8~9A^hL;UZVwP5_3uIZFLX{USQi@-D=j zj^II>biZMzofX};I3;cIqF(TAf9JN3f4{8OUG?ZZh|W=-%wwcvgXGgtzs&s#Nt-(u zV+|ErP{>N37TRi)6L7`}>KeaY+{L8E70`j?!%JsT&vJ=cq=Q+PZx>T=e_oWqfQ|?n5cNzBl+T z_a^dDu9xm>*kv8s3?@vy{Fs zyc&#}k!BEfa|_`(35B8o^2jt~N|L7;V>(!p#%&eoNaRZ}|9pH7<`W z$xH^vz(&?=BXE>2rNI}SBote25@p@@`SKR=RJ5W<#i<}8yXD%KU_m_P;Exxy%;#5< zsgu`m+vO&MT2$}A{TY!t^ROf>Qi$46ZKhIjq*6sF_$61->eOMo=Iy&0e(L}Ia^c|A z7psf!Ngm8mUhRpyA-mtcYv_I5X1if1co&3EGKeL)aN`mRCsQ#h=vxuyb)foroOkFa zZwI5cQcS)5!lylL$KFRE&S5iZ0NKGy4Q2!#R@X!gKRH-g&0IRGKDE^lH~7VmrZE|*t|>a>ouhh5lXuJ z8{gb$k3+dzn3#2>(+86Eb8!C~e8&3=E_99!RPjo>y6fA%Uk*C23cgG-nO8p(7vuwK z{Xp-de8!8oHep+d^50^)Ld%rd_(Gec-wNC4%*weau=YYL*#2mDh4MYm_dxI=l*P!Q znK0&MKiLs<$=Z@2bnDc99pM^An-6J_%qCm7^VW*724&>8ArjEIXLW4ideVhtUvR zhxB8#Q4L9TjiwFe8%j)LB6@V#q0+l;^0Y_r>m_t4xT<@R2D z@;M$KyIY}5M^{2lm;SCJPmvmJ3K_w-A{JWj-5W zVbGSa?&Iytx%UD7w;`hjIEmVIARUL`M~PYkCtw{)E0%rMV|6 zRmwfubXl@T_8U%fES%P=U11`nK{f99VMg)TFo-o|_;a0Kzegaw^86{4Ok*hm#3l#8 zN9dA^bN5Ie_2gHYCi#4)__YMPE2+zp@L{U2{;LP{8-TmLvMipnV3K{vdYC|kgb3K} zQJemGj?D@Eu1 zp{25cPVm7nz~{lYGsMfs0V$*oXOcG8J3tafZ2DPDL48pcO%}opAm{)JfK^c}Brk zXhRN_KZ6N;_R5 zeE?0X=k$`jkOMH193d~cm%Kmna6*;Z{W?N@{3SVPZZ>(quTXZ)H_#=951;kAoUrU# zUJ}A2KSkYODPN&}-=41Bcf9LIx|`TCL~K%mpc#;4hOHtJLrVQ!WVrYOISVS)h%b?B zCvMO_4uVb?8{P7;QfPDotYK3XiFsin1gAVcKxHVLf@i|82vK+X2tmdW&R~HO2Q8yp z`#hwGwSAuw|Bi~00bn#Sf5y%#PuaobaNcN1d^B7aKw0b?`RH>M&kUXwZ9uZ*k8WOt z$K2Ckl2jiMZ+G0{$~Y8^$ntl_3%empC4d41Nes|2rUvrua>Y{NN0ue$y47HLOJs^a za(FEW{+vpSOt2^Fzo@T%3*(tPztk3a^{k)81)C4!^<{rPsV7}3qb@1a zGNR9dI{*M-^7r_LeDa*>L`3=*9UXs2;ee0Z_gt3oO=4$tFjrl3`aES{jtPuCNTR*t4b8WqDf_tx^s1-Fv$cPkX zV`e@iX5AJ(4Z>W5`-dO}h`aTe^g-tQ#h*B2i+Vn$RVfBVWw&vQzLt}kiELF`YG`ut zP7f*U5Ny~K-_VxvD#IMyUcreaOFg-P6pt=u_2c7fPvoit>_D z9TUctWW`iQaXDqaPZ6Vv7rl5Aujd{zuCD)dd)Q%rw+Bi%-VP#q`sq0anL-_6w4PU8 zBw!>QC!A4D0cwXGo|;j#BEYy+MMEbXGF^zn_r-kYc1|uWt?CPOJCU|^&7{{G45Sx? zmE`Qps`J%N)%38g$}ynHU`YI&W0{lbJ1xJLLawtsT@}|~;OAt5z7l3h9wG=S8nY_R9OQuxjkm#ehd008)!x3d7vA2Wdq z*4=M%=epYVpm}PeSlKNNU%ecCU+G*ljv1OEgB`0^&xfnMAvR? zkjpQ0!rD8s*2j&HL*C~qFQuQB@Jh0@N&U*Twr*&5mi=0U15GgC>nc*-NoklJ5L_Z> zkDldcT~u|)f6{UqA;^_hD|laa8NtHCg8RV|Y*&hhqwZfIo3OB$8n)Pyef%?p0!*q% zdiVmVZKRk?71X$8G1Ab92cU}6A}6s-1}nEjxz?H}5`M#>oc-iiVmyzHNHJRp%g3}G z*n_8+#WhZutD>epM?u6Ot=tTQR8}qe%?uzENL&>XS#`uM)|Ya3j!U^JUmrd$`0?} zp`U<|{oXdEn-!`BVQQ?ARlEcRUx>N#Myp^`RmrUPxXsi#Iz$bc8$~dH7U1@0%hu?~ zDDktHT67qS*??72v0KiAXACppHB!jCR)y1cZQ^|vA_byu(($c-AI2um9u6{Tsddz+ zv;!NNb$OauUf$_rsa_lH0v#vR+1LizGLE@y><(ICr4Vu}%%b}?w&WIArq##V#}=a)z6p ztN71X?=Vgl(N9cKp-c#agr#8M*`cOZN0v&cTKKXC@bdDhBnA9;-9)G6z_A2LL4D zitl_-{am}35IOw3)hvwTF-NX)FWtB(g!}W5%;MlJsPRO^G4SIH_lA1(X{~Rp8dBS`|ka$RFsS-r=a6) zXnI_>uP?ADO8k8kfd=uruY&z>|9o$DcoQfaYvzX_j5 zjd1!n_!||Cn1-2TZ(*!DAEP=MyXY+DD!1u{SP&&feK+YWz8dwhE*l#ogUcE^Sv+dN zRnUD1uT2U530`lX&X|N55&RUGd?dtPMH%~m1o}&2?7;aIJ3(cjM+cDHnUBU!Fy4_1 zGQXXN8J7}_c}HJfpOMttmO4+N2D7cao|Q>06ocYN$X2z<1I3shL452S9s-Jq2@E`R zU|C3%f`$TdgrFoMs{rRVky4K9*>Cg$4Bw>=anY=X1Mld@kGckgW z&4J1c9ks0@(q6>C;y6L&5bpmNZu|f!D?5n4&v$@L(Qe)Dz=+tDRBOl|}i`6XvxDCklOF7^^$Ye;R0zbZ(XDD}N;OD$Gw)xAZQ36T5)X;4`Z1}Y8| zpf?w@ppojMkolz^T^%AHmS-WSMZpRVo*E1P`46Xc(URe1!Pb4Jg={EAXAe^r`eI7+YjcA4OWk77_SX5eVrkBFz1Umt==au)3kNZqG{GiywIP`f`Qs zbzU2z7(O|k*+Ew=-qL~TxhHRd%GrULmL<)QDaw#Z*S-0LOdj#~u{(-f9WsFDr4cPG z8;VvxzQtAjZ}LbucgN;#KtmrM$|?21OAh4igr!D6&KT`~w6eA+1I}3Vj3Q!<25?Pe zH3AQhRng{l#Lu+(3H~L2^!{e{=|XaLy%d0PJl6?J;Z|lBG67=JY6c|L1R-#TR>fC$3^Y%QEnYO1xHsf)+GU`3F<{J0kR(;pbF3)zyg$H+idfnl-wl5Wkh!vUH z4Z32YP=l_}1rZd1W_D&^$A($A+&a0e&P?xx0!ctY2}*<#p+qPVN*B(YzvAWXa*%bzq z7Fz41LKILT(GWohi9|LgIzSZBhb*Zf6R6O}WYQ4GOi&71s9lmll0x6;8&ILOl$j(c z0Z1T(6Tg09{?wd{moFHNN6PS?$|e>1MxSJ(0Z7o2)J-Zv|>acY@f`(Y@g7GwsEj5NLQo+q|HsxQ5}XSX_d@*^A9ZT9=A{W~j+$GyI1 zc4oqTHx@1FlRjw4XWyPN5i2~l_F3@aBk!0yu^aoRDvXy}8@HCjUVQUsuSH4$T5|r< zzZOn^?Wfa6y|Q($Hx4{ws+)wX6-HP4zo!S?4KJ@7PG@G3G{CjXs(p*kIrj6rHs7_y z+=<-=Q62s9FuWa^X~WKgJIAAZJR&XBB002ovPDHLkV1jCMPILeO diff --git a/src/main/webapp/images/delete.png b/src/main/webapp/images/delete.png deleted file mode 100755 index 3141467c678d2b53f79deb22086a9cb3a576a08d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 740 zcmVP z|1Ep}yDQG09bP~E^Dk?@JiKQJ z6-pO(3~IOP)IYisL6D6;oAEd;E%zR}{U$rMRNuD6nQV7nesKS>)yLo7JuDCrD>Abi zbj3uW23?^GA}9jQ{M^8v?ejL?HaT7AX5WPZNkBmfN`w-jL?{tT7ykZt$%Yln?p_m~ z-?>&d(LD(jAd}h=LPltPQbO$*Wbyl@G-_k5jXbb#qffHY03>M1jfEqoPJQ6Mr=Byp=^jfzePZV1 zLjCmNi31hdIJHa%e;5g=1(`u3BRzfeExY%=VCu{loOr{`%2hUR*x>tL^W_TTaj);0 zpPR6CUD1+0>4TQ6zVfH3TQ;%l6#(_%yspK@3gcmG#Q4!WCPyLU93nMKk7E2pcA=l45({2jNho>sdF*A~bA zxX?-cp~y_z_kFf+yqu3m#QiB}03?Z&9vvR5TNgj<)($Vm)xq5G>|o2sFMag&6aNF+ WAT1?sQBYt20000U(k2*|8J(R-+sudaynhucHbwAMTnor{mwqO^w7JHzaBsT z{O^B8RYf5+LvDs&KmRKVd78=o{`1#HTiEo_OolaGleS)G+IQ#sUI`b*pv<`1zCJ=H0jd{{2S>p`ri%{LsXJ%FbMS z$#S`6f|?OG!^Jxczkf6Q`UNF{l0Sd`ad7zm>({^EzyAS6{{CgrkluOb3l1A>ZU2~A zK+FZ=zkmP!`TOVhpFbzBzFaPmD2$N3;+$pK?>zdet`f0002ovPDHLkV1gy;I?Vt8 diff --git a/src/main/webapp/images/favicon.ico b/src/main/webapp/images/favicon.ico deleted file mode 100755 index c2f2b6ccdaa425cbd4acdff6e32860723ca35c87..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1406 zcmeHEOHWfl7(JKUOABpjsqzp-K}A3W!TO@KmWzM|MMMWIRxhX_VL@Dpp)pEOo<^|Y zSrmNKLIHz@L}UC3CbBY`7=sIvn0BuQXJh36f^?aOyKw{h@uGe%%Wq^169do=n}I~R6hvCr3tVvMAWnoLz7vK zrO%(BZka@ARX?KW6vnlT=-3oo?Q#Qc?_g^kLRfksRJJxW3`{_oQw7nxfY1vgkd2Fw z-=9Zq-xwk)+o9;5hE^7g^BtqWokg_tKg7ij7s?v%0gh?-7QTRMeg$=f1ESxHYtBc| zrRIV2c%iJOJcN3{C*{qT&5#C4p)SwY*g9S zP))p0W+Z#gB%LK0aREiVb(f9k_2g7YG=Ef*NDD?%Y&>{Kk{5t=Z$iR$>u)A??2e>b JCH$-BKLHYvzV844 diff --git a/src/main/webapp/images/list.png b/src/main/webapp/images/list.png deleted file mode 100755 index acc30b853b3740bad231e4daa8e9f5a81f3f757b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 473 zcmV;~0Ve*5P)x=~R!WME*cb6K0H8ItD70ARH|h P00000NkvXXu0mjfzPQHT diff --git a/src/main/webapp/images/resultset_first.png b/src/main/webapp/images/resultset_first.png deleted file mode 100755 index b03eaf8b5416fa6878165d95116e73003f8445f5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 522 zcmV+l0`>igP)ufs8f5Kzx*fI63}@)AAFXgQp7K#X5)&2^7g z_9O9^7^ARqyc%qAP{1M7?|}io8xW>dotf=a%%ZSXBBI&Rf<-t`#(~H!2g~*8&15{# zVXjXMwHZYVJ6lk!gb6?r$g;SuO>QI;yeQ51#0H@Z6sk_ajqECPZEqLq!PMf5MQ5gS1i(Owi(ut_CY*w|Psf-Iy6=08Y` zHnsuDs6h)+OwcBqopImX_v1c`5LkrSCWWWFUvW71z%eN$cB714YVYtd`}$X<%JbQ) zM;;CHJDu;#-swg0iul07{S&4s!M>4O+`c|6_tW_i^y+I%|aPsIlEx5K=^ki~8LwqDy-)t}thx1D9 zB6|#ECQ%2a60OQQ<{6-)5|okv)6E>1Xpv+@iIv@MJ8v15 zR{N~1_2z$e&R$WgNhIQelIl1rK}5XruIN#GDZA_4bJqcqID*^mXXFcgt1K5iK7HPL zwLW*@#tu()#Cyd@CHc^75Ul6pYT4PCpSeBE)hh4bY>IO8de(|Ml<%@O-40!dwX61{2C5s-llVw2V@@N0oo_PPieZ!0Y2~+R( zk!(QTf=B;X9DnzJ@u9c>OP4(U@7{849!UlyO@H`*;lVfmCvAW6f9CF&{}ZR*{jXDW zb_vl21ozzrYJBy-Vb$aRjjJF3@7nm}zjw#A|58cE9uZ}LbIY~=6ShA8U$XeY|MDdd zfQCH!?_7WRzhvaG%|sbsT7Kz&`}!yUix%Do#>T_{_Ei`DO9UTSBkH=Hg(w4*^UnUS zTk-IJ<+2C=ZObqG7Z2FGlB7VCN;>(!bn*TFHYMl(i+Sx`L~=ArL>~EXU3lidsO!!J pWF;gqzXSh89JkLNxXeT<1_12n>%V}Y6R`jQ002ovPDHLkV1iLCz99er diff --git a/src/main/webapp/images/resultset_previous.png b/src/main/webapp/images/resultset_previous.png deleted file mode 100755 index 18f9cc10948f025fde708328fa704b520161e5f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 389 zcmV;00eb$4P)K{b{Xc8(tN&i@ zH%T)fYQpV#rAr?FpSkE_eXe+_wJd|K3f{{%aMTC(eL? z&YO?2=RWv9b;pbUjjJF3FIss2fAiYM|D{t;5@!?n%vQ}6um-u(1``H~0!(`ViJ zU$yMvf616*#2KJfaGFIu@9Y|n)@%Q3RzCcnHskjH!iD$#iw7MbEf6JRj;ypTzwkeA z{@wqXv+w*Db>B;RG>UocU1Xkp@_*9QTmMBIcK#@+1&aazfGU7ezSm^v zpACwO+tu0su66!(dT=`e05DeeCnCFJW(8|RKtKa{4LGONnx2V85A4m%PEQ?MEtR-esdM$pB-`H542D0)N2zSC6Imf)4L8?>%ZrW+H>xCKi$unm zvGZq-*Q%Aahx;C*=l+K%-?>XB)6TB$-L$r*`RUvlA`xP1NG2?)ge8@TQ4EN|Jks0u zcDg;oFC#-#R`YbWB`D?Q`1#y7l$LXhjSLf8AvQuB84}i#j0^!#g{VE#(K7h@5pFHy zSenl=@XBEdxp`h2Ji>CR%=qXJ7!e|?paKet-~;#ok#jETyeB(5&Bkhp;!+;51~G=) zH?L7xmDUu_h+a$+xuWom;AWW!mS$%%+436Rjc@}y?l1134kgD0AOf$OmjOR zstUlshZk$ZC!bAyIg{Y29z#&@3SJ;6D4+_eFume9^#TmMccC5u0J!ZCTnO6m$lnD| z5JeFHf`Xs~1vP>RLKI1GKDY<~pjr2&bi(fX;6Nj-ss@Ds0CcoO0H{JsEQkKLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a(?@3)XSs8O^N5RyOM=TTmp(3=8^+zpz2r)C z^>JO{deZfso3oq3?Wo(Y?l$ge?uXo;%ru`Vo>?<<(8I_>;8Eq#KMS9gFl*neeosSB zfoHYnBQIkwkyowPu(zdms`p{<7e4kra-ZWq<2*OsGTvEV%s0Td$hXT+!*8Bnh2KMe zBmZRodjHV?r+_5^X9J0WL4jKW`}lf%A-|44I@@LTvf1rHjG(ze6+w@Jt%Bvjts!X0 z?2xS?_ve_-kiKB_KiJlZ$9G`c^=E@oNG)mWWaNo-3TIW8)$Hg0Ub-~8?KhvJ>$ z3*&nim@mj(aCxE5!t{lw7O5^0EIO7zOo&c6l<+|iDySBWCGrz@C5{St!X3hAA}`T4 z(TLbXTq+(;@<=L8dXnssyft|w#WSTW<++3>sgS%(4NTpeI-VAqb|7ssJvzNHgOZVu zaYCvgO_R1~>SyL=cFU|~g|hy|Zi}}s9+d~lYqOB71z9Z$wnC=pR9Yz4DhIM>Wmjgu z&56o6maCpC&F##y%G;1PobR9i?GnNg;gYtchD%p19a!eQtZF&3JaKv33gZ<8D~47E ztUS1iwkmDaPpj=$m#%)jCVEY4fnLGNg2A-`YwHVD3gv};>)hAvT~AmqS>Lr``i7kw zJ{5_It`yrBmlc25DBO7E8;5VoznR>Ww5hAaxn$2~(q`%A-YuS64wkBy=9dm`4cXeX z4c}I@?e+FW+b@^RDBHV(wnMq2zdX3SWv9u`%{xC-q*U}&`cyXV(%rRT*Z6MH?i+i& z_B8C(+grT%{XWUQ+f@NoP1R=AW&26{v-dx)iK^-Nmiuj8txj!m?Z*Ss1N{dh4z}01 z)YTo*JycSU)+_5r4#yw9{+;i4Ee$peRgIj+;v;ZGdF1K$3E%e~4LaI(jC-u%2h$&R z9cLXcYC@Xwnns&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z000P?Nkl!Y}QU}?-nNthu zzh!P(<{kV_GMBoOlBeamUIzf0&?irw?7%$r_7nhwMngM+^d1N2`@jFu`Afe6X3w5I z_7Q)$vhrq0`$v~`w_!B$rB|0$r`^3j>>>NQu&!B-4M)NNkiL^{Ei^)i88uzkwW`*N zTi5kUsnS~DYC)w5ZStrEb-VJ{s+v~S%vCIEUDvk@U*~$)bzPp8#eOj`7|?ZHz9n~- zZOvJm7x>fkLcS$43=@uo2_dOFsaCZQ-Pzl9f(|?Wt~&eD#g}0>2LLPD(!GTOZ+~Eb z0RR>Ywcf1O8)fDGOFrS3T>zjKRk2@0-=qNv04|)rz}OfpG|vG~U@$QG_N0Uy2A zF~OrjwVDY|Ln6G%=n~G78G_z3t(+e(gG1kq%1fWLoGG0)qhnh+d3}{UQR^sv2Sg z073{dTsVJ$CbTKb*|~Tu&f3{Zse)Fd0Vy7fn>?X#h!7Hw#myZS3Wv(>+N%aJ)V* z0OWJ|sT)&TRig>*J>caXd^{F^_G`~#n$?1eYSCH$VZYf4gg(LR^Cl(|G@&b{3I?{# z*=QnWXFtBUvfOAk*0rVcS6}=2*S}4uUo?%n1*~8+8qL*e?VtL(N}WD^TG#bVI+LHx zFD)+Z`RE=(2-fe&i4g!u%1Oq?+@8FB!$aBH#8d3s@m3x5xeD(38A_zxmcplxn4)yz*1SN~w$Y4Z{G6lC$zxpLuTg zu9byq!fGJ^Kv{RK8_S&Sh!p?=gMp#rLwqkkH#---7{#sabUDo}m`bK-LOWefLWtAl z#FFGVj(6~c5QbsudYxgIbTXY7PpAbIYabJUpOsPt4e<_MEvlNP#jnK2((v(NXP=WM^bQXU*3Jrjf-MovcRdVO5%|c&(~!h9vFtjrfl--MgUK+<1QiV1Xv{5idZ~fF^+P z_}=F>ZUvgA#ba^PlIRwvZcHU65{Zcf&LfPC@f`3ZCK9a^N}EY}TAsQw#n>2K*N2Y} zmrLbzGA&Qb$lnUl>+@<=EqXC(&e^P;#p#A7G{?11T)2dKFky*_gxD{(?G?4CnmWaP z5qD&p>_f@p^JrCV{Mxu#oprr#28Xq?(tuPcRT2}4bTW;D5AWdlUVc0L{y~2{7Dr%0 zpAa}4n7lE0Y3vd*w-(>Vn-Pok?6-b);qRA!@P{9(_w!KGzWar5b`xu^blWf*&E~4- zu@^Yz2mpX#7=~e#7D~nWVrij-KgZ6E&EB0Y&KHdqT3cH)8MdV2e6cuRTw7afeXsxDVs^%UoeW9P=I%hk=C=!Lm7c5dw5ci!!QVM|n|(Xn%5D2o8v;I*mk zfZvSFb{=g>f4gxNo+gp!Ppvl^50>LsW!FS{xVZRNlVRf>%I3QTA*AiTLI@%DP7P=C z{ief>r%itcPR7Qx_Ge{A;d{5fn{W2Q?8!T%N~wYaJzfS-whh3RfIC}hTisG&8;u_N z+~qTu?=2LqmU?k9>Tx{(3GNhS?J*fFTmDz@(3|i3NI1LhiHtsh1EzPArg^Q zIZrOk#rNsfjaSbMAL;<4h;Z=jvu8dzyz8N&Nb7=z03ZUw?9z%8KQEa6yM5=kUnka& z3?FJk2}L7q>na=T#;<7U*P91xfF`;`6%pVgWgRy0?1ZryL@%z52=-!fGXWGEn4M351L4<+7eDgwo|moqXT+s1&Kmn>-uQQ8mL7XY)w5Zk*(g+<3Y3tmkR!bL zOUKaUtj_pX26sH+=Iorwu}MGd`_%O-_sS}8VpG#fJA)Fcs#ezwtZf?q?Ac70mDv`rVs{$od?VPKeqf<-kUjNtS6ecB*mq<&M97K^6IVsDO zt2$Ru!b+>2S<}_H>$RcInusU_8PMNdf(W{sNlJ3FkrwMJPeBPO#d}Y^a{9TH(#{Y) l0D?dWAV4eUJX#h`!2gmISk&ZKd4B)^002ovPDHLkV1g&sd|Lnj diff --git a/src/main/webapp/public/docs/css/reset.css b/src/main/webapp/public/docs/css/reset.css deleted file mode 100644 index b2b078943..000000000 --- a/src/main/webapp/public/docs/css/reset.css +++ /dev/null @@ -1,125 +0,0 @@ -/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */ -html, -body, -div, -span, -applet, -object, -iframe, -h1, -h2, -h3, -h4, -h5, -h6, -p, -blockquote, -pre, -a, -abbr, -acronym, -address, -big, -cite, -code, -del, -dfn, -em, -img, -ins, -kbd, -q, -s, -samp, -small, -strike, -strong, -sub, -sup, -tt, -var, -b, -u, -i, -center, -dl, -dt, -dd, -ol, -ul, -li, -fieldset, -form, -label, -legend, -table, -caption, -tbody, -tfoot, -thead, -tr, -th, -td, -article, -aside, -canvas, -details, -embed, -figure, -figcaption, -footer, -header, -hgroup, -menu, -nav, -output, -ruby, -section, -summary, -time, -mark, -audio, -video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} -/* HTML5 display-role reset for older browsers */ -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -menu, -nav, -section { - display: block; -} -body { - line-height: 1; -} -ol, -ul { - list-style: none; -} -blockquote, -q { - quotes: none; -} -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ''; - content: none; -} -table { - border-collapse: collapse; - border-spacing: 0; -} diff --git a/src/main/webapp/public/docs/css/screen.css b/src/main/webapp/public/docs/css/screen.css deleted file mode 100644 index 478b99837..000000000 --- a/src/main/webapp/public/docs/css/screen.css +++ /dev/null @@ -1,1224 +0,0 @@ -/* Original style from softwaremaniacs.org (c) Ivan Sagalaev */ -.swagger-section pre code { - display: block; - padding: 0.5em; - background: #F0F0F0; -} -.swagger-section pre code, -.swagger-section pre .subst, -.swagger-section pre .tag .title, -.swagger-section pre .lisp .title, -.swagger-section pre .clojure .built_in, -.swagger-section pre .nginx .title { - color: black; -} -.swagger-section pre .string, -.swagger-section pre .title, -.swagger-section pre .constant, -.swagger-section pre .parent, -.swagger-section pre .tag .value, -.swagger-section pre .rules .value, -.swagger-section pre .rules .value .number, -.swagger-section pre .preprocessor, -.swagger-section pre .ruby .symbol, -.swagger-section pre .ruby .symbol .string, -.swagger-section pre .aggregate, -.swagger-section pre .template_tag, -.swagger-section pre .django .variable, -.swagger-section pre .smalltalk .class, -.swagger-section pre .addition, -.swagger-section pre .flow, -.swagger-section pre .stream, -.swagger-section pre .bash .variable, -.swagger-section pre .apache .tag, -.swagger-section pre .apache .cbracket, -.swagger-section pre .tex .command, -.swagger-section pre .tex .special, -.swagger-section pre .erlang_repl .function_or_atom, -.swagger-section pre .markdown .header { - color: #800; -} -.swagger-section pre .comment, -.swagger-section pre .annotation, -.swagger-section pre .template_comment, -.swagger-section pre .diff .header, -.swagger-section pre .chunk, -.swagger-section pre .markdown .blockquote { - color: #888; -} -.swagger-section pre .number, -.swagger-section pre .date, -.swagger-section pre .regexp, -.swagger-section pre .literal, -.swagger-section pre .smalltalk .symbol, -.swagger-section pre .smalltalk .char, -.swagger-section pre .go .constant, -.swagger-section pre .change, -.swagger-section pre .markdown .bullet, -.swagger-section pre .markdown .link_url { - color: #080; -} -.swagger-section pre .label, -.swagger-section pre .javadoc, -.swagger-section pre .ruby .string, -.swagger-section pre .decorator, -.swagger-section pre .filter .argument, -.swagger-section pre .localvars, -.swagger-section pre .array, -.swagger-section pre .attr_selector, -.swagger-section pre .important, -.swagger-section pre .pseudo, -.swagger-section pre .pi, -.swagger-section pre .doctype, -.swagger-section pre .deletion, -.swagger-section pre .envvar, -.swagger-section pre .shebang, -.swagger-section pre .apache .sqbracket, -.swagger-section pre .nginx .built_in, -.swagger-section pre .tex .formula, -.swagger-section pre .erlang_repl .reserved, -.swagger-section pre .prompt, -.swagger-section pre .markdown .link_label, -.swagger-section pre .vhdl .attribute, -.swagger-section pre .clojure .attribute, -.swagger-section pre .coffeescript .property { - color: #8888ff; -} -.swagger-section pre .keyword, -.swagger-section pre .id, -.swagger-section pre .phpdoc, -.swagger-section pre .title, -.swagger-section pre .built_in, -.swagger-section pre .aggregate, -.swagger-section pre .css .tag, -.swagger-section pre .javadoctag, -.swagger-section pre .phpdoc, -.swagger-section pre .yardoctag, -.swagger-section pre .smalltalk .class, -.swagger-section pre .winutils, -.swagger-section pre .bash .variable, -.swagger-section pre .apache .tag, -.swagger-section pre .go .typename, -.swagger-section pre .tex .command, -.swagger-section pre .markdown .strong, -.swagger-section pre .request, -.swagger-section pre .status { - font-weight: bold; -} -.swagger-section pre .markdown .emphasis { - font-style: italic; -} -.swagger-section pre .nginx .built_in { - font-weight: normal; -} -.swagger-section pre .coffeescript .javascript, -.swagger-section pre .javascript .xml, -.swagger-section pre .tex .formula, -.swagger-section pre .xml .javascript, -.swagger-section pre .xml .vbscript, -.swagger-section pre .xml .css, -.swagger-section pre .xml .cdata { - opacity: 0.5; -} -.swagger-section .swagger-ui-wrap { - line-height: 1; - font-family: "Droid Sans", sans-serif; - max-width: 960px; - margin-left: auto; - margin-right: auto; -} -.swagger-section .swagger-ui-wrap b, -.swagger-section .swagger-ui-wrap strong { - font-family: "Droid Sans", sans-serif; - font-weight: bold; -} -.swagger-section .swagger-ui-wrap q, -.swagger-section .swagger-ui-wrap blockquote { - quotes: none; -} -.swagger-section .swagger-ui-wrap p { - line-height: 1.4em; - padding: 0 0 10px; - color: #333333; -} -.swagger-section .swagger-ui-wrap q:before, -.swagger-section .swagger-ui-wrap q:after, -.swagger-section .swagger-ui-wrap blockquote:before, -.swagger-section .swagger-ui-wrap blockquote:after { - content: none; -} -.swagger-section .swagger-ui-wrap .heading_with_menu h1, -.swagger-section .swagger-ui-wrap .heading_with_menu h2, -.swagger-section .swagger-ui-wrap .heading_with_menu h3, -.swagger-section .swagger-ui-wrap .heading_with_menu h4, -.swagger-section .swagger-ui-wrap .heading_with_menu h5, -.swagger-section .swagger-ui-wrap .heading_with_menu h6 { - display: block; - clear: none; - float: left; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - width: 60%; -} -.swagger-section .swagger-ui-wrap table { - border-collapse: collapse; - border-spacing: 0; -} -.swagger-section .swagger-ui-wrap table thead tr th { - padding: 5px; - font-size: 0.9em; - color: #666666; - border-bottom: 1px solid #999999; -} -.swagger-section .swagger-ui-wrap table tbody tr:last-child td { - border-bottom: none; -} -.swagger-section .swagger-ui-wrap table tbody tr.offset { - background-color: #f0f0f0; -} -.swagger-section .swagger-ui-wrap table tbody tr td { - padding: 6px; - font-size: 0.9em; - border-bottom: 1px solid #cccccc; - vertical-align: top; - line-height: 1.3em; -} -.swagger-section .swagger-ui-wrap ol { - margin: 0px 0 10px; - padding: 0 0 0 18px; - list-style-type: decimal; -} -.swagger-section .swagger-ui-wrap ol li { - padding: 5px 0px; - font-size: 0.9em; - color: #333333; -} -.swagger-section .swagger-ui-wrap ol, -.swagger-section .swagger-ui-wrap ul { - list-style: none; -} -.swagger-section .swagger-ui-wrap h1 a, -.swagger-section .swagger-ui-wrap h2 a, -.swagger-section .swagger-ui-wrap h3 a, -.swagger-section .swagger-ui-wrap h4 a, -.swagger-section .swagger-ui-wrap h5 a, -.swagger-section .swagger-ui-wrap h6 a { - text-decoration: none; -} -.swagger-section .swagger-ui-wrap h1 a:hover, -.swagger-section .swagger-ui-wrap h2 a:hover, -.swagger-section .swagger-ui-wrap h3 a:hover, -.swagger-section .swagger-ui-wrap h4 a:hover, -.swagger-section .swagger-ui-wrap h5 a:hover, -.swagger-section .swagger-ui-wrap h6 a:hover { - text-decoration: underline; -} -.swagger-section .swagger-ui-wrap h1 span.divider, -.swagger-section .swagger-ui-wrap h2 span.divider, -.swagger-section .swagger-ui-wrap h3 span.divider, -.swagger-section .swagger-ui-wrap h4 span.divider, -.swagger-section .swagger-ui-wrap h5 span.divider, -.swagger-section .swagger-ui-wrap h6 span.divider { - color: #aaaaaa; -} -.swagger-section .swagger-ui-wrap a { - color: #547f00; -} -.swagger-section .swagger-ui-wrap a img { - border: none; -} -.swagger-section .swagger-ui-wrap article, -.swagger-section .swagger-ui-wrap aside, -.swagger-section .swagger-ui-wrap details, -.swagger-section .swagger-ui-wrap figcaption, -.swagger-section .swagger-ui-wrap figure, -.swagger-section .swagger-ui-wrap footer, -.swagger-section .swagger-ui-wrap header, -.swagger-section .swagger-ui-wrap hgroup, -.swagger-section .swagger-ui-wrap menu, -.swagger-section .swagger-ui-wrap nav, -.swagger-section .swagger-ui-wrap section, -.swagger-section .swagger-ui-wrap summary { - display: block; -} -.swagger-section .swagger-ui-wrap pre { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - background-color: #fcf6db; - border: 1px solid #e5e0c6; - padding: 10px; -} -.swagger-section .swagger-ui-wrap pre code { - line-height: 1.6em; - background: none; -} -.swagger-section .swagger-ui-wrap .content > .content-type > div > label { - clear: both; - display: block; - color: #0F6AB4; - font-size: 1.1em; - margin: 0; - padding: 15px 0 5px; -} -.swagger-section .swagger-ui-wrap .content pre { - font-size: 12px; - margin-top: 5px; - padding: 5px; -} -.swagger-section .swagger-ui-wrap .icon-btn { - cursor: pointer; -} -.swagger-section .swagger-ui-wrap .info_title { - padding-bottom: 10px; - font-weight: bold; - font-size: 25px; -} -.swagger-section .swagger-ui-wrap p.big, -.swagger-section .swagger-ui-wrap div.big p { - font-size: 1em; - margin-bottom: 10px; -} -.swagger-section .swagger-ui-wrap form.fullwidth ol li.string input, -.swagger-section .swagger-ui-wrap form.fullwidth ol li.url input, -.swagger-section .swagger-ui-wrap form.fullwidth ol li.text textarea, -.swagger-section .swagger-ui-wrap form.fullwidth ol li.numeric input { - width: 500px !important; -} -.swagger-section .swagger-ui-wrap .info_license { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .info_tos { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .message-fail { - color: #cc0000; -} -.swagger-section .swagger-ui-wrap .info_contact { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .info_description { - padding-bottom: 10px; - font-size: 15px; -} -.swagger-section .swagger-ui-wrap .markdown ol li, -.swagger-section .swagger-ui-wrap .markdown ul li { - padding: 3px 0px; - line-height: 1.4em; - color: #333333; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.string input, -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.url input, -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.numeric input { - display: block; - padding: 4px; - width: auto; - clear: both; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.string input.title, -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.url input.title, -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.numeric input.title { - font-size: 1.3em; -} -.swagger-section .swagger-ui-wrap table.fullwidth { - width: 100%; -} -.swagger-section .swagger-ui-wrap .model-signature { - font-family: "Droid Sans", sans-serif; - font-size: 1em; - line-height: 1.5em; -} -.swagger-section .swagger-ui-wrap .model-signature .signature-nav a { - text-decoration: none; - color: #AAA; -} -.swagger-section .swagger-ui-wrap .model-signature .signature-nav a:hover { - text-decoration: underline; - color: black; -} -.swagger-section .swagger-ui-wrap .model-signature .signature-nav .selected { - color: black; - text-decoration: none; -} -.swagger-section .swagger-ui-wrap .model-signature .propType { - color: #5555aa; -} -.swagger-section .swagger-ui-wrap .model-signature pre:hover { - background-color: #ffffdd; -} -.swagger-section .swagger-ui-wrap .model-signature pre { - font-size: .85em; - line-height: 1.2em; - overflow: auto; - max-height: 200px; - cursor: pointer; -} -.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav { - display: block; - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav li:last-child { - padding-right: 0; - border-right: none; -} -.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav li { - float: left; - margin: 0 5px 5px 0; - padding: 2px 5px 2px 0; - border-right: 1px solid #ddd; -} -.swagger-section .swagger-ui-wrap .model-signature .propOpt { - color: #555; -} -.swagger-section .swagger-ui-wrap .model-signature .snippet small { - font-size: 0.75em; -} -.swagger-section .swagger-ui-wrap .model-signature .propOptKey { - font-style: italic; -} -.swagger-section .swagger-ui-wrap .model-signature .description .strong { - font-weight: bold; - color: #000; - font-size: .9em; -} -.swagger-section .swagger-ui-wrap .model-signature .description div { - font-size: 0.9em; - line-height: 1.5em; - margin-left: 1em; -} -.swagger-section .swagger-ui-wrap .model-signature .description .stronger { - font-weight: bold; - color: #000; -} -.swagger-section .swagger-ui-wrap .model-signature .propName { - font-weight: bold; -} -.swagger-section .swagger-ui-wrap .model-signature .signature-container { - clear: both; -} -.swagger-section .swagger-ui-wrap .body-textarea { - width: 300px; - height: 100px; - border: 1px solid #aaa; -} -.swagger-section .swagger-ui-wrap .markdown p code, -.swagger-section .swagger-ui-wrap .markdown li code { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - background-color: #f0f0f0; - color: black; - padding: 1px 3px; -} -.swagger-section .swagger-ui-wrap .required { - font-weight: bold; -} -.swagger-section .swagger-ui-wrap input.parameter { - width: 300px; - border: 1px solid #aaa; -} -.swagger-section .swagger-ui-wrap h1 { - color: black; - font-size: 1.5em; - line-height: 1.3em; - padding: 10px 0 10px 0; - font-family: "Droid Sans", sans-serif; - font-weight: bold; -} -.swagger-section .swagger-ui-wrap .heading_with_menu { - float: none; - clear: both; - overflow: hidden; - display: block; -} -.swagger-section .swagger-ui-wrap .heading_with_menu ul { - display: block; - clear: none; - float: right; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - margin-top: 10px; -} -.swagger-section .swagger-ui-wrap h2 { - color: black; - font-size: 1.3em; - padding: 10px 0 10px 0; -} -.swagger-section .swagger-ui-wrap h2 a { - color: black; -} -.swagger-section .swagger-ui-wrap h2 span.sub { - font-size: 0.7em; - color: #999999; - font-style: italic; -} -.swagger-section .swagger-ui-wrap h2 span.sub a { - color: #777777; -} -.swagger-section .swagger-ui-wrap span.weak { - color: #666666; -} -.swagger-section .swagger-ui-wrap .message-success { - color: #89BF04; -} -.swagger-section .swagger-ui-wrap caption, -.swagger-section .swagger-ui-wrap th, -.swagger-section .swagger-ui-wrap td { - text-align: left; - font-weight: normal; - vertical-align: middle; -} -.swagger-section .swagger-ui-wrap .code { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.text textarea { - font-family: "Droid Sans", sans-serif; - height: 250px; - padding: 4px; - display: block; - clear: both; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.select select { - display: block; - clear: both; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean { - float: none; - clear: both; - overflow: hidden; - display: block; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean label { - display: block; - float: left; - clear: none; - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean input { - display: block; - float: left; - clear: none; - margin: 0 5px 0 0; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.required label { - color: black; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li label { - display: block; - clear: both; - width: auto; - padding: 0 0 3px; - color: #666666; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li label abbr { - padding-left: 3px; - color: #888888; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li p.inline-hints { - margin-left: 0; - font-style: italic; - font-size: 0.9em; - margin: 0; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.buttons { - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap span.blank, -.swagger-section .swagger-ui-wrap span.empty { - color: #888888; - font-style: italic; -} -.swagger-section .swagger-ui-wrap .markdown h3 { - color: #547f00; -} -.swagger-section .swagger-ui-wrap .markdown h4 { - color: #666666; -} -.swagger-section .swagger-ui-wrap .markdown pre { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - background-color: #fcf6db; - border: 1px solid #e5e0c6; - padding: 10px; - margin: 0 0 10px 0; -} -.swagger-section .swagger-ui-wrap .markdown pre code { - line-height: 1.6em; -} -.swagger-section .swagger-ui-wrap div.gist { - margin: 20px 0 25px 0 !important; -} -.swagger-section .swagger-ui-wrap ul#resources { - font-family: "Droid Sans", sans-serif; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource { - border-bottom: 1px solid #dddddd; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource:hover div.heading h2 a, -.swagger-section .swagger-ui-wrap ul#resources li.resource.active div.heading h2 a { - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource:hover div.heading ul.options li a, -.swagger-section .swagger-ui-wrap ul#resources li.resource.active div.heading ul.options li a { - color: #555555; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource:last-child { - border-bottom: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading { - border: 1px solid transparent; - float: none; - clear: both; - overflow: hidden; - display: block; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options { - overflow: hidden; - padding: 0; - display: block; - clear: none; - float: right; - margin: 14px 10px 0 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li { - float: left; - clear: none; - margin: 0; - padding: 2px 10px; - border-right: 1px solid #dddddd; - color: #666666; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a { - color: #aaaaaa; - text-decoration: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:hover { - text-decoration: underline; - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:hover, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:active, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a.active { - text-decoration: underline; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li:first-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li.first { - padding-left: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li.last { - padding-right: 0; - border-right: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options:first-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options.first { - padding-left: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 { - color: #999999; - padding-left: 0; - display: block; - clear: none; - float: left; - font-family: "Droid Sans", sans-serif; - font-weight: bold; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a { - color: #999999; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a:hover { - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation { - float: none; - clear: both; - overflow: hidden; - display: block; - margin: 0 0 10px; - padding: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading { - float: none; - clear: both; - overflow: hidden; - display: block; - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 { - display: block; - clear: none; - float: left; - width: auto; - margin: 0; - padding: 0; - line-height: 1.1em; - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path { - padding-left: 10px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a { - color: black; - text-decoration: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover { - text-decoration: underline; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.http_method a { - text-transform: uppercase; - text-decoration: none; - color: white; - display: inline-block; - width: 50px; - font-size: 0.7em; - text-align: center; - padding: 7px 0 4px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -o-border-radius: 2px; - -ms-border-radius: 2px; - -khtml-border-radius: 2px; - border-radius: 2px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span { - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options { - overflow: hidden; - padding: 0; - display: block; - clear: none; - float: right; - margin: 6px 10px 0 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li { - float: left; - clear: none; - margin: 0; - padding: 2px 10px; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li a { - text-decoration: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li.access { - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content { - border-top: none; - padding: 10px; - -moz-border-radius-bottomleft: 6px; - -webkit-border-bottom-left-radius: 6px; - -o-border-bottom-left-radius: 6px; - -ms-border-bottom-left-radius: 6px; - -khtml-border-bottom-left-radius: 6px; - border-bottom-left-radius: 6px; - -moz-border-radius-bottomright: 6px; - -webkit-border-bottom-right-radius: 6px; - -o-border-bottom-right-radius: 6px; - -ms-border-bottom-right-radius: 6px; - -khtml-border-bottom-right-radius: 6px; - border-bottom-right-radius: 6px; - margin: 0 0 20px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content h4 { - font-size: 1.1em; - margin: 0; - padding: 15px 0 5px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header { - float: none; - clear: both; - overflow: hidden; - display: block; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header a { - padding: 4px 0 0 10px; - display: inline-block; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header input.submit { - display: block; - clear: none; - float: left; - padding: 6px 8px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header span.response_throbber { - background-image: url('../images/throbber.gif'); - width: 128px; - height: 16px; - display: block; - clear: none; - float: right; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content form input[type='text'].error { - outline: 2px solid black; - outline-color: #cc0000; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.response div.block pre { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - padding: 10px; - font-size: 0.9em; - max-height: 400px; - overflow-y: auto; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading { - background-color: #f9f2e9; - border: 1px solid #f0e0ca; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 span.http_method a { - background-color: #c5862b; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #f0e0ca; - color: #c5862b; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li a { - color: #c5862b; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content { - background-color: #faf5ee; - border: 1px solid #f0e0ca; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content h4 { - color: #c5862b; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.sandbox_header a { - color: #dcb67f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading { - background-color: #fcffcd; - border: 1px solid black; - border-color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading h3 span.http_method a { - text-transform: uppercase; - background-color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #ffd20f; - color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li a { - color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content { - background-color: #fcffcd; - border: 1px solid black; - border-color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content h4 { - color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content div.sandbox_header a { - color: #6fc992; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading { - background-color: #f5e8e8; - border: 1px solid #e8c6c7; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 span.http_method a { - text-transform: uppercase; - background-color: #a41e22; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #e8c6c7; - color: #a41e22; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li a { - color: #a41e22; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content { - background-color: #f7eded; - border: 1px solid #e8c6c7; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content h4 { - color: #a41e22; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.sandbox_header a { - color: #c8787a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading { - background-color: #e7f6ec; - border: 1px solid #c3e8d1; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 span.http_method a { - background-color: #10a54a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #c3e8d1; - color: #10a54a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li a { - color: #10a54a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content { - background-color: #ebf7f0; - border: 1px solid #c3e8d1; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content h4 { - color: #10a54a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.sandbox_header a { - color: #6fc992; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading { - background-color: #FCE9E3; - border: 1px solid #F5D5C3; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 span.http_method a { - background-color: #D38042; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #f0cecb; - color: #D38042; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li a { - color: #D38042; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content { - background-color: #faf0ef; - border: 1px solid #f0cecb; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content h4 { - color: #D38042; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.sandbox_header a { - color: #dcb67f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading { - background-color: #e7f0f7; - border: 1px solid #c3d9ec; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 span.http_method a { - background-color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #c3d9ec; - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li a { - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content { - background-color: #ebf3f9; - border: 1px solid #c3d9ec; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content h4 { - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header a { - color: #6fa5d2; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading { - background-color: #e7f0f7; - border: 1px solid #c3d9ec; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading h3 span.http_method a { - background-color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #c3d9ec; - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li a { - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content { - background-color: #ebf3f9; - border: 1px solid #c3d9ec; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content h4 { - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content div.sandbox_header a { - color: #6fa5d2; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content { - border-top: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li.last { - padding-right: 0; - border-right: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a:hover, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a:active, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a.active { - text-decoration: underline; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li:first-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li.first { - padding-left: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations:first-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations.first { - padding-left: 0; -} -.swagger-section .swagger-ui-wrap p#colophon { - margin: 0 15px 40px 15px; - padding: 10px 0; - font-size: 0.8em; - border-top: 1px solid #dddddd; - font-family: "Droid Sans", sans-serif; - color: #999999; - font-style: italic; -} -.swagger-section .swagger-ui-wrap p#colophon a { - text-decoration: none; - color: #547f00; -} -.swagger-section .swagger-ui-wrap h3 { - color: black; - font-size: 1.1em; - padding: 10px 0 10px 0; -} -.swagger-section .swagger-ui-wrap .markdown ol, -.swagger-section .swagger-ui-wrap .markdown ul { - font-family: "Droid Sans", sans-serif; - margin: 5px 0 10px; - padding: 0 0 0 18px; - list-style-type: disc; -} -.swagger-section .swagger-ui-wrap form.form_box { - background-color: #ebf3f9; - border: 1px solid #c3d9ec; - padding: 10px; -} -.swagger-section .swagger-ui-wrap form.form_box label { - color: #0f6ab4 !important; -} -.swagger-section .swagger-ui-wrap form.form_box input[type=submit] { - display: block; - padding: 10px; -} -.swagger-section .swagger-ui-wrap form.form_box p.weak { - font-size: 0.8em; -} -.swagger-section .swagger-ui-wrap form.form_box p { - font-size: 0.9em; - padding: 0 0 15px; - color: #7e7b6d; -} -.swagger-section .swagger-ui-wrap form.form_box p a { - color: #646257; -} -.swagger-section .swagger-ui-wrap form.form_box p strong { - color: black; -} -.swagger-section .title { - font-style: bold; -} -.swagger-section .secondary_form { - display: none; -} -.swagger-section .main_image { - display: block; - margin-left: auto; - margin-right: auto; -} -.swagger-section .oauth_body { - margin-left: 100px; - margin-right: 100px; -} -.swagger-section .oauth_submit { - text-align: center; -} -.swagger-section .api-popup-dialog { - z-index: 10000; - position: absolute; - width: 500px; - background: #FFF; - padding: 20px; - border: 1px solid #ccc; - border-radius: 5px; - display: none; - font-size: 13px; - color: #777; -} -.swagger-section .api-popup-dialog .api-popup-title { - font-size: 24px; - padding: 10px 0; -} -.swagger-section .api-popup-dialog .api-popup-title { - font-size: 24px; - padding: 10px 0; -} -.swagger-section .api-popup-dialog p.error-msg { - padding-left: 5px; - padding-bottom: 5px; -} -.swagger-section .api-popup-dialog button.api-popup-authbtn { - height: 30px; -} -.swagger-section .api-popup-dialog button.api-popup-cancel { - height: 30px; -} -.swagger-section .api-popup-scopes { - padding: 10px 20px; -} -.swagger-section .api-popup-scopes li { - padding: 5px 0; - line-height: 20px; -} -.swagger-section .api-popup-scopes .api-scope-desc { - padding-left: 20px; - font-style: italic; -} -.swagger-section .api-popup-scopes li input { - position: relative; - top: 2px; -} -.swagger-section .api-popup-actions { - padding-top: 10px; -} -.swagger-section .access { - float: right; -} -.swagger-section .auth { - float: right; -} -.swagger-section #api_information_panel { - position: absolute; - background: #FFF; - border: 1px solid #ccc; - border-radius: 5px; - display: none; - font-size: 13px; - max-width: 300px; - line-height: 30px; - color: black; - padding: 5px; -} -.swagger-section #api_information_panel p .api-msg-enabled { - color: green; -} -.swagger-section #api_information_panel p .api-msg-disabled { - color: red; -} -.swagger-section .api-ic { - height: 18px; - vertical-align: middle; - display: inline-block; - background: url(../images/explorer_icons.png) no-repeat; -} -.swagger-section .ic-info { - background-position: 0 0; - width: 18px; - margin-top: -7px; - margin-left: 4px; -} -.swagger-section .ic-warning { - background-position: -60px 0; - width: 18px; - margin-top: -7px; - margin-left: 4px; -} -.swagger-section .ic-error { - background-position: -30px 0; - width: 18px; - margin-top: -7px; - margin-left: 4px; -} -.swagger-section .ic-off { - background-position: -90px 0; - width: 58px; - margin-top: -4px; - cursor: pointer; -} -.swagger-section .ic-on { - background-position: -160px 0; - width: 58px; - margin-top: -4px; - cursor: pointer; -} -.swagger-section #header { - background-color: #89bf04; - padding: 14px; -} -.swagger-section #header a#logo { - font-size: 1.5em; - font-weight: bold; - text-decoration: none; - background: transparent url(../images/logo_small.png) no-repeat left center; - padding: 20px 0 20px 40px; - color: white; -} -.swagger-section #header form#api_selector { - display: block; - clear: none; - float: right; -} -.swagger-section #header form#api_selector .input { - display: block; - clear: none; - float: left; - margin: 0 10px 0 0; -} -.swagger-section #header form#api_selector .input input#input_apiKey { - width: 200px; -} -.swagger-section #header form#api_selector .input input#input_baseUrl { - width: 400px; -} -.swagger-section #header form#api_selector .input a#explore { - display: block; - text-decoration: none; - font-weight: bold; - padding: 6px 8px; - font-size: 0.9em; - color: white; - background-color: #547f00; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; - -o-border-radius: 4px; - -ms-border-radius: 4px; - -khtml-border-radius: 4px; - border-radius: 4px; -} -.swagger-section #header form#api_selector .input a#explore:hover { - background-color: #547f00; -} -.swagger-section #header form#api_selector .input input { - font-size: 0.9em; - padding: 3px; - margin: 0; -} -.swagger-section #content_message { - margin: 10px 15px; - font-style: italic; - color: #999999; -} -.swagger-section #message-bar { - min-height: 30px; - text-align: center; - padding-top: 10px; -} diff --git a/src/main/webapp/public/docs/images/explorer_icons.png b/src/main/webapp/public/docs/images/explorer_icons.png deleted file mode 100644 index ed9d2fffb64a2e6e282b90e489d83fc4ddfac3cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5763 zcmZ{mbyU<(_s2g-OG-&gcc*kqH^>44l1sRf(jbV^A<_-v(jAL*ch?e2h)bu^&BOEk zo%4PE`u#EQxpQV-XJ+oXbLU3rXer}8rF;qi0G_Ifq8D|DCwR-n=IDL>ob*=NNmlJRW(O8-vWlRta1d^>JngezA^kml zYwJ9+!B3f7079%<8+!LUMik&OP*ReUp#!rGK=Gc&!2&uoGdlRF!yX8B<rv|{n1^9Hszpw*n ze!$xSMn-Soa~eSM>exu~FJ}ee)}wE|(`qCenZ%TWO|iILF^!CPXxYY8pL3FkSU#~# zm*wg5Nuv-579#j{G6Dd(@uZKpJ-PE9!>~ceSt0K?#!Fpf0btD| zaPppux0W(U0wV}=|DE{|&E6a*_rpb$T@8V3J&?PzXmsN8U*9O@eQjJ=*jQhmSL=~C zwHz`ExCeJxbQs;ey9$)Ny*T^T_M0hKz${o9?ebUG$f*XDdi)#qXRD>nIOW?0oQGSQ zX@(wEt40t92~wBHHC8b_`a}TA5F!7Ky_b3F!RGfW*A1%lsxVOHD2?J5&s}6@je4%m zN(l1k_LG~eQ<6aL(GIz?k%s`Nx>Ni&aFjr*aF&L_q>Bj;9#oSe93FV*K1W~)aWiR_A&lWmbMZ@uycSe>*s6*F2 zG{FU*r_1mszLX2WwIx<|CtFJ}Hk#Z37O^G$VmOLbB#1E<>v`IjOZrX~G@>Xby1{S~ zT?X}dVHJM8NCP@U6`Eryw42}Pp}v#t|SS`Xv{3g7t7ULm6&q zA7$0+GSudXGwbncFEpZHr4DQnG%tBNOIkSSx_9R)&Nk z^*WZOXIDMsRs#HCAQdh~I8huiFQH$!LXRjDQG|j3Yvb1^s?|RXrii9qO}*D++~F$D z5K^IJOc-3WajL--OXQ;C9Qd-HwcfohxK6cBe{A|R%SzVu$EE&nHoYN7HHr0+ZHWUA`W^6yF0l=jccvQCJDM$k{;VN1*Xt1cq_9Mz^-Y58d2q3uH?l9ga0ctv46F6JBZPhhX6z zmg><3e@~9))H|ByD5;X-JTV19H9@0Vy^};c8BAoV>t&{g7WNifVaiEh!mNT;rDo%sV0^iLHP$z*%HX&$^sFuY1^wm1 zr-fviQsQS7JS9$0s=Q`JulDzahpE|Z=0VvS&V?&Jty|aB0laqxcaZDCGi6*5MlCKA z1_F1CT(Vc#)mf5;w;%CWSHY}XRsm|6WSO$|IlggHGJp0}%qxOuhrTyRCM2W}(wEPI z!9vfXuDPpun69VUSioK&p&_BsKRPn{eH5N1oFTVl`)sG+VIxI+k^{N1p8^L zTC;9aV0;K`dH=;k%oqwXG%>4vRi0JO3~w%PE__zlsFk2qnhghcSN(+z!ipOxsy5~^ z5EU>8EWi?M^&H<hV=((3%j?6cBSKg^3rofL}^uLKEm-=SCv_T6`saEb~w%p!YO+ zhZhVQCmf#_M8b%N*?Sza^fRWF!Oy{s?ja}PQ4#8&hIvw?c`~T_mIqqb)jZBz&DMOU z&ayIUGrA6n5S51_hYp8fOF1J#IqccSg6`=!(FKvBijJN5eqFuy(g|w#AoKg^!F6HV?iJ zlR#k*GYS|rB3Lfi^vTVouRncztc*Cq_Pl1{KrTABQI1qD?o;`vjm~m<`+@zh<@6U@ zsbleD4)|Ym0=MB4n3kKCQQd*KtY5;u7=_Bjx`cx$C;3x^y(X6w+*cK^6_XWLGQj-W zVwK!#!W_~iJdTo!qD?|gGJQOD#v`+!ERgCub!ssljtY_Y@7h*x4^F~{FjEnl3N{@1)3N_`Jd! z4qB~a6%I|`Z~O5r!ahvBf>5rF#?P$9Ut2WrG?p{Ov&qsu=^z49;;sB4-{QZz%9qe< zCcwbE;7vQv;WFDVHTS*mqZ)W=lQ0LJYQL7D8*@K}$ro%Jn6S-pVAgPFl&pv~4YN3j}7S0BVvBq=&)=xdBJ$)Axh z4#=!_>48y7MPMt7uclM5dFRll&UzH5JsiWQ8(#wUmgWx3v_ZVatM!)Gp;=VYq!E!7 zB#7rJq#x(mmb^Ep!kmZN)0PtJic5PMZN}}U>~=O+xU)_1lS@)IQ}Ey8EiBgIt-h{1 zI6GHD@TQEiA(}&A3XS>gl0RE)3kSzWC1ebK7@Qhh8;BfEE!SJlUA~_@r1EPy7uugi zn6_NpNe{Lm3{eags)eBlY@kP&Qzp^#V=@*_fU>aUW z`Sj!TR~h>0H>OsmP1+;UlknXY-&yG>NEX`!kYw&goFn))YOw( zYe8xr-L1DQ>%Ku;&*L1$jsDC@8?B7 z?-MBKHNU^m`rvoixYa&>vgEGYW4WTIsZZ%(FNoTWaJa%cx{9em2ADf(GO$6d+CF-( zWZ5)q{&46X;Nuc+l_niquGuQt+wDFH8WWnJ$dzzlEn|77npQ!FH8|~buJuu_klohE z9`q!7A8wO>CjPc}9e@1q#;~DUOuj2TQK&rnsns?I2+Y}PHS>8F>FDE#r~V>4Bh=O? z_moH{<-({M-?aQ!#ovBI0?X&2&{e-9De3ENMuvD5y^wUX@Z%E7^5@8pC` z(3V!+otU1UPUE-6aBlgFk-)0WLWqSs&`TVl_~**s#>PfRUtfWb+@n5canWQ97K1@I z>b2nmF{U&PDeu&o97XD;)Svki@Z8aO34qdX&r{O)kSmva?WOMYV>~crytbKM7tx;pKq9zpG|!kg1R_4aVFa`(>zmR zcxGa1y0g9A0mI~B`g`S%OCj)Cg-M=`#H}?)hYhXdqa7)~a26TJbLKNHX-xW^i8Y(O zXg-8iAztfLa82cORaQoWGpZ~xF5#S4^R7!_ zsrRt~GV}Q8ehA^AuLGH(Mp`W%83 z^8SHi()-gY^(Jx!(vDc2Rgj4s5?Hc<%;LKn+*=YWub+$qF$rH8x@$C?NQ!PjF&X$> zGSabH;mPOo5_}};K{?DEONS0|rHIOiNKa_gaom&R1Q#r?rl7gKRy$Nv3ybm1(Tp@H zKat+v-p}2Z@G|4>bYUk@oqfEuko)EcJvpv;uN?v==DvvwXv^FQb%zmnt%zz857%Jq zTM0uzryX=^$4_qWv+T}a9KBuFA^7P3jtv=l18UoG+NzDy99qvpg(#NUug_MhBdr2X zOkxwhl83?_wOaa+VBrs}`KE;w<1c4E?eK2*xXY7TG~`Ht{#2XpavNY=tMR&BHsz*nhhKS~2ms#4^T=+mBH^id& zQbIe-{4mcvzYi>*R*(9RF8Vbd)8J#~8D=P`z$)7V4Gj&YihtlRapD?wgVUi%o{R`S zW=L@e4ANhg24#r+LpfPKKG0w48_-|JtE3f3aLGe9tL<+&H8DS^jZ@n+3pL20EFg!A zc2!9SufK-))r+nTmeL(cA;*Yc#Iziv@5F3g5eVzW&4}UdaQ2hC@iG=oqF#g16U-dFD!xwAE!biy^7EF1^$Gd)46lQX!T8nO1NF^~iImLR zug)H8g^*U)<_vxex99SE^e<~gR%o-0h~c?s78OxgoY|I|ndD~uFzbGN&x1wuj?2GD zc23Ub0+z%9e$%_3xE2VX;0F=YvQ)2-lNG85+{YN-vyD=k<|&ACo`dO1iY%*&ahqC* zBAI^jm6?qfPn;&53rr0AiommjDouEJ+M;Om>nLcgv#8dbAIdpA+&m`*bXq+yNAI59 zBaS*g-q5`91~a}sxgu|ZahfGHF#jM(;zsq|aYKd>UYdK{I1;Chwt7^biqEm$aNN4} z`>vF8I;OvLWq5RGB!%#Dz{PTzN&Qf<_J_i{x*2|0@S8ruI4^?F-WRg_W&Yi5uSNEo z4eTFIhq2tvrTxrab$u$OBm)(ZVqEK@TQ`Zm7cZ(LG1El+EpxkLs)WUm4o$>ODTvmA zS$8f-CRTL9&d%oezjGGEl$CitpjB@e2lwwn)!j*LV#44Aowwr2QX2Zm2E`>xbyHKS zg@pxnil52JWKV)+m%e0}=^A(`>_wI|6$YCjY~y2X&x~t#RbNtTl~_EkEc$cyw`dui z=ZAkL#_`(egJ`Cp*a34^1mwlGgGqo++n(5XvlOes_xR3;DfYBb2z72w6Q$vO7R2ux zd=?LyMqaYo#Aa5}X0c=9b$5NX$cIbo|3|K-rsf-E9UT5z#Cc`pS7!)27Z>#eNdXl4 zWoSsPFPcI@S2w;i&DhMW{J}sb6vwi8)d^aGQGk~g*qbkUq_XpJ0XF&x9jB*W&jAGV za@Nm4Gonb z5QyG5lX=|M8Qjzv`u#gYnmc2UU>Q$A#SDcSLLV3UNyN8IKF6@gxBT>6q!O0eZ%4>8(W#wYqhSwb{^F1i1co+>ms!v9G((c|!6!BrK11rQipnJ)eVnTSzHNF zN8ab&RhE5cC$$4FI-PZXx$pga@8yN)KS}L2Us~^y$(x-xioWbnFcV+~b9ig=!ft8Q z0RD+rpA8910Smyc0GviVUOPGiY6YM@-r6Nn8S&~cxHl27$l)-R$1(!Xx045RDy;_& zeXkG{;_#i9rz0B6149#Ddj=KM6MV^rTD%ylzGdCBX<^=^@I0X3SCR7OMbn}sUKdeF zKO-flaJa%@kJ27@Rod?J9=+Qx5|=PtG8n> zy~9rIu}+48M}FW5Bbqw3t#po?c?kmG!FX32W(dOjzTb+U@64MzHItoeB!M0Jcd}|E z>ekW`<~FjR_ZVVJkF|_htH&v!({Oad?xax?0K0sLwBY%nr46DpCmIIaa?@|Y&?n0q z@kJlMy`pE2HtEgASNd~xNzt$Kn7w#^Fy5oi`e$bUE*+f>Vk5z7=-2pj68afrqli$_ zvqe##5V?a)QU_-s9+s?mJYT5m`MQDRH4cYs^L1lCW;Dua5Ln9lG0BC@9DJQHA(}y&Z}$apb{kU zbezR}b^|O%6i+$BFsT3zqAe8wg9`vfiRp#{)z2bsJw`vBQL7Bt!IexM3$Hsf0tHK3 z+R=x{lR$K`s;7__?ASPW=3?*xgCpGaiadSEpoi0pw-_V#OXM8Ap{4qlG08x0ig9IY z3Ijqh(t1_=g#jocuqyJO=729e9OSiNDSrhR0Gc5G)(QGH?*IS*07*qoM6N<$f<~fU A82|tP diff --git a/src/main/webapp/public/docs/images/pet_store_api.png b/src/main/webapp/public/docs/images/pet_store_api.png deleted file mode 100644 index f9f9cd4aeb35a108c4b2f1dddb59977d56c595d8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 824 zcmV-81IPS{P)n=Rd;8mVwQNY4k4xJQ%YT}s;WA7;r!W@XgqjG_4og} z8w>{OB9REiMa8-B85td+y}bji^~2KA`Md4j-u{zw=H%Da@83%_8qEnl9k1WK;pWX- zb-lg)pQYAreK@>)*5Clqni{IZVYGG+NY67Bp-^bn;L{Nbh44I6CIK+n7p8#U?;fCA zYMFcy%UEjup4fgnli%NyzSe*@419QuU9lJ|T$?f9w?HIQ$RwEJGK7^!y7LhxIgVJp z9c!kB{0aydM1epU1NJ=h(}2X?Y{qn70yEN$dwm~favs=VbQ+T?!AvSl{P~PE zS&zsJbTQttne>kdM4$jBhLMFy@I1)3u-4cAzrY*l!o9eK^w%+jqY!oi(Ri8sMauvK zwnCP#%3hEH#FtNqq{iT(?=_JA_8XC>5Y8Y@!wmxKb|A87ZbpHA`+%v~0pt{5Nko1L zLKR^25YExt1lH7L1{t{|P z@n)yHyZf~3>LZ@#&CNw1rA#OlY^|)UJQKUrlKKO&x%wPhH}6&e0000K^a6u zQ3;5MiU^7p6*M3qDk!2=YEcHMQ>nzEYP;R`e2C@r+U+?#XaC*&gKPcB#k$`o&;7mu zYNhYYXe|Uo84#4ZIko#rcU5K8*yFL{qT47O&^5fZH$ zVZ@%(l~vVHjnm;H@KL8@r%yUHoo;rbHI_4lIH(_nsTT>S2`DFOD~uCb9_dF4`#QgI zy7ldMcLs+A_s%|e1pRPrbX-tpeNP!9(IpMFTce`t_5U%lP99z%&i6`1d~ zWeM!Rxc50<+d$e^9LT`?B+aMK~apR zHm?q;p<7{wN2g|I^aGlSws;VP84j(z%aQwvAWv83Z$}p(% zZ^?2;gxg(ey_`V5J7{;!o;o;KslW@z5EP~JGs|U)J7dF&(ff#A=6vU?cGQ$-4+;Jf z-ggJEa!yStn`_EWvl)#yhm6XVs}UUbsi;+agri;mCfjH^Uy;lH+Zw^h)4N?oZgZz4 zJk(fTZ|Bi^;+s_M=~+d#vyoxEPzTlOS=mX@sbl*uRj>=MaMr}cFIY8i?UM61>86uB zV$DlOUCiUJwbzJMP@D$urzK|lL2-PC!p1l47V-ZG<5Ev0Z5h~Kx?`KOp7gkAjV93A z-Gc7MrlxTf?wF;CbNc@tCHJH{TB3c;#{SVu%97}tyAM2n&|9W_?qv}$*Jt*%7Yxb# zV0;d;7|lDEltJYS+U)#aiJO};?_Jyy_4%syQ(uy?-J-Yx-9O5nKRk@@XSS~X<(2u~ zV-LamWm~!iqtH9wkpf8mAXZhOD&L#aA_%)4h2M;1M5jt zIR>Us+%W-GXa_f^opKg=DSrAs)AXeRa;Hp0aC1OgbxQ%Qr_QvTleM1jkR!2mkcX$3 ztsR8~G9iqh(-FJ@F_rQBIYDXV_6s7G9SxaVF^laZqcx$!D97m|7t16j6@Jt6UdDRy49Qyvs|c>RuA|@b%}`*wU}2^7q;&Vtc6@lb zcXl)T!6nYDzmMJ~%n$KNXyNlCG)GkJ4!82;v6@d3>s5r~E+3!O?049JDr14Y^PeMI02R`0lJ^=oJ zYd|*u9|SU(j7hY?+<=(?fP*mtV*zFhOrz6%{VA?ozdm&(Jf^V zMfPZ?>l`mS3{Uq8IM;e!+1YjJy2!mzK$O|wPeU{*QSbs9m+@`f5KxO3PBnQ=%RsZg%go*fJ`*w9TL{-WgZVIA$!YV}3BRcfeXaR$x#b zW)Tpd#8E4)^MyYdkH;4_;ChJuw%n+Be7Ko4;w-nHvyo$d_0e-YiF78Df&)_)(}fcr_r0mPH(4RRYWIu+d@t0&Ss@O^s! zOKyX&13)%N@83r^;QsgN{rl(!0|RF1FA)b1{CRXAy&1ySz@>olPiR4r$aMdq&_=nK zq|cFs8phWJ1@%dZ-gXd{zDbTILD>)qEvH-NU*Rf1b2J1Ri79`rBFl@ z8E^0I)OqEi{pH(a24b9YPG;Kz@t-qZW;3Mpe`MRlmYx{7bH-XZ&`RQ7Rb^%}gc&X| zd}Q-FZf|RWxHU?PR!(C?80zu(^l>*h{#ulSiid(O!J(8P-41bNM3tnX@U6NS5yo0? zdcF)~xFE&+&|gZ$23dV5t~?$$&ymZ;F8j7GGMncGSsDo%>J`26=&l=X#rSKv_64;0 zr;k6no@=gV`P)K!=kaHl>q?!`X>(A;84tg^Md<`zA%qbRLby1Z=fn*ZRdNqs%Tq|3 zOt}lZu0q9oKJhgz&+^7PCt$=UFW=R*w?a1)ePoL*`R$Gxj?TU@12tTHsT$giHQU+sqf;fS0FpT!< z z#UR4L_rT;lfRLVo8|3$7cmuxwjY5rmYs&kR6z_LRhf9-=4QalKQYEWw^4-EBI3j$& zA>$Im_{ZA>0`)E_&m%x6a)BThkx=e|aMkOrK9zb1YzqpQ&WZ^$)2T>CwTCuYRn5y) z3fVXg-@R5&Bf4?WUTyD|hBDe2>xEh|o-y}o5Se~+Ob!5xN>CaAN!<4)F zwNh!Y7B?@AigokFYNJL`0Vz&-ekrY95-n3M<%GR<;SzXRmO7(zd+gf|$Thb%;pby2 zyd{5TJ?|JYUgpSlJ0=LB@k6#d&opuPGq^qJAIumfhigC2qAX0OEnYnT@O;bA?X1O5 zpLe9|%_H+Yki!Rv$7Kvjv8r7Z?$<>G)g*%D*V#s&kz>Z3V1 z3!ZKh9H8Nl9IdhEW_rY#oYdDCLTe+nQ{(d2pBX8%CmxL+1`|b#Vb!?IY!kT7$PDWAP9$FY=e9KSK{DEH|408! zl-$lv)U8$EB{~es&j>rYg%{{JRvIl8@NK}L=xDAEVv(o#W@3LUDc*m?yKSPR0O|nY zAh;*QuBdpja8HzP8Uw`ce-r*LrUA47ZvZ)ff3k4^>;dFcof}9eXeeM<0OVj&CKDVK zpUKKIF%hSmry!pwK68UX>zOF@dv}B4Gg)^2GQmN7@A?zG!xO6dT*Cq0+r{eY6}AfU zf`|~y!?^R*nB0!iTcg|CgM}ou^H*s~5)%h;Xh;PYOM!|Yhfk$w;@`1Dx1y!EZrM&^zMat!^Wz# z=Z{;Pa0w21oA1X3*9=`*c7o3ePa^k%Vzu>2C_7DaZJ8FW5GJv|t>`Ym;_S>7g_3XI zdRb!Ppd`ErK`pUDHRsJd9@)bu>}s1)nKsyAR7h21<1u{DX1gd_Vf;^zdUpFPeSHHR z7AMgw^{FlFlK91CGMafKt`$FLhq#^=->@Uok7pqW6&#Zs4*E(i5-jog43A*qC@!(8 z8&F}pofRcMVmcJd=f;fvlfAR!ZqeaTE?#TQ^jQM0ioaJf8m^!Kdv^`f5kEsD0=gX#4={QE1$3A4K~V$ITKEd){XVLx?i6K*D>JF6E=i znqF^X#&UX}rfB|#A9%y|sR5i6B5gyk>8@Q+xHg|^5iz7C2}YkGF)nuP4LX#k2tRBP z=!VnWnXea(K#Wvg2&0f{!mXuuWaPpsoZ)3TSaEp;i|_)CvP=4wjI; zH%7tcLM8dQXsHW*#|}%TG9yiGpyjBltpcpXkpl8zg~x zD{QG)2Z8x$vfjgDc(J6i|OHoLX&!<+m^<$S3DtA8Mf!{ z7;g1}0uqJ0Mxuy%=#BFX5;Xh9JkrA$d}neS9T;$F$kXn}ss zF{Jn}9EDk=>h)sMy$YXfhKIDxr7U@3xl+uI|N5y!>?{aVn703L1Qgb$ql%JT^lsGD%)~)(H?Spj$zNt)h)Raob z@KyVB@&ngE0rtMW4!UTqGX>{&KHJAWqb)oYq9O)e)nmN0jVa;LNbKXx04a+8&O;q) zHBzGejrqt7Dk$Z2VR%%K#`!((pXE*MR{jGtv|q$p5#v9N0f^6B9IB!Q6(y$TmHRLM zsYXm2jn3f{9T)KVVzotDx=Ng8q0Z*VDZOkd5C!p0PRoFt>NyVEc9*%YR&2>Nq~$AI zXOQfjJ&wpGMe~I8y=cC(QR4=W2GWccFK(3`d&gN+)qWtW-`*}mZI%KDRl4@rUv1%d zxFO82lhW$xQyYxJg8tOZyXm1As%kEFNn)eW{R61M>af@wr(YW{R@+eL2 zx?SovK+867$F%T;Dfeajw|kiQ81GcOnS$Y4+hp8g_w1P8_~79d9p$*M1_Ei81$H$Ti6oi?ZW)&tmsJa7RV1LKddm7R*qL54L7j zvCr1Mrb;l!=m^TbJun-C_6$7w81E1eAQC^6s4>rZ4&I5+yyu$kha%Z&d+|S7Ki#{2 zy}%Giz|eR|G?ychX%%=eL`W(aLarb(L4jd>J+wlX;xMV9H8J!l&i?~Mw7)jlIuLD% zyq+AK92j#kC`ycv$SJ|E7!FBParx#v<3_rZ-DLQ@>`#sdl5}immok8&`{YgF|+< z`tB>e%6G{=B4?V-be>`&*}0d*f?$yBX@w+rJht@O+=^zttqB2p=IiA17#YD$4-fih z@$gJ95mGmFhN!d;3Ag4#>3o`>%L{G=9<}qOJ$wDN)%)MN6bVsAPG4oKB3+8r6!Qf9 z3m8?jIpWcEJbt6|f?Y4nMXK(--YZ|GA2_aRS!do%J9S7?Q&4FYL@sPilq}e4tlYa& z?f+we^=FH^Z9|dnXZghblW!IYGIAT{``58&7vZBybh+GuIPP{h*J?&vf7i8rv6qgx zab9~l+K`tvC7pWtlS!5lt(n#Yl}PAR(v01oXjc0F?T0w>+*p#PtE?Tf_hMrEaZ!^V zbv_>=4xibc0TUxg^I>TS?HR4fdiWl`@6{7|WU9G68l7tOz2p>oIe~NNr!>Q&PHm`4 z98R?g(IT*nl#{_|*WO_h0X78;WwMp?A^Zi)W@BX5q==TdOl?~J6HK(0b(xD6?m3e3 z#+zMaSJb(W$h5+d+6vujSjyi_R80c9>7h;0YlUFDvN`iNGu&5HQ5^e>6x?&JSc4V$6_I1jJ4vnCVbkU`Gz=Uy#~OI( zlL-$UAE$pVCsD_rICM#Q!ltzcqDphp5L|ZrqUm>=H%x!RjMrF#*?BN2shvUg=H;)& zy~_xWl*k$~9Hl6PIq({dELPE-r4*YNs7?5{>dlC`EcK~lPKB_8V)G@H)UZFF8$tXT z@^raW#Hq4OJGFL2Aye|HU&_NL%dYans6?ltqEBz`Q|m=@Zh4=-p2r;}q(Nbsk$fUI zP|(Ns2>MDvZi1H7<55frlQn#%?`WY3g`+fRuC#UJx%#d!zxEu3=}zF514S=6f@?~$ zeuSB=6E7r3ya|; z@K7M3VBrls6c{M*M_{AB_fVjgQ|F(FuK(@=1eWeVMSpLglllqV6Rg-L_46;?^IskS z)x6|SR1^gGl6amWjkb1dX}^8DumNXNmhsfxKA#;bBBIZE@0gma5yQY(FX>|N~Y^mgq`xc zdxOf6r{9u#_e0gV3(fdBTdV2Sc4SN5ZmP?cB4?KRdvj&>@zN_HP5m0E=+A=efDBI*IG*Gy%%< zz@yc%2XvGm)QQv5k^ZC6!9MwX8BCmQ{3eAX|GTwn#>(PS6PoB=$Pwn*?wz?%Tx2gwJ4apoy`A15D=>?%}hj`fV*p=6XW=YR(sp))`dxTnqHE&{&; zPdeO}SVkf*6_$c45W3Z}u|Z&a8{r!6ZNY62S>5{jAd)Hkjg@h%@c)c#BvZK2lmGw| z`Vh+%ECkF{t=)XpF3Z1bj=Pe9LpHbnQwjeTU#=4hB76#52DU2P2Ouj~^lRWwRd%eN zBw_z%FL0CUlk!`s2!`>QG&H__i_)I9=AuA=jn40z>;@hRsg)>J(58cx;l;h_zE*-R7Wbz6Ff#1Mss*)zTImU4`2@?a7y;v4 zH=lJ_PM5Rkw*AU`Cmq6aa>chASJ&Z3Ebj`y;w$MM!fa6`13VU7Kc|T5Xl#7ecj?mp zREV-nBJ6C)`?&}QDe_(KM>BrlN|iF{7-90j+J>N0^vY=LK;8!^9Y_m*aRPX{!S6ag zgRw(13pJvt`;{^S-vgUk?8pV_Vh4a4P7~}uHT)ENFMqd71QIOl8Q6+24TM_+158z) z54U-*C{M)S&!2Bfu&`?Ti6;WojY;%6+I;uCof+*T2iUMz!7Eg<{}#DJSx)C$5f zP(oSf>_s1t06cJ-U3?<9poS4O{Go>H>hro^ks;r3mm1Ehfq?m(_YE8UiVUgG%W9ZY z!@O^}KR%JW*0e=66rUYj5BP~=x%$^x92-m_ - - - Swagger UI - - - - - - - - - - - - - - - - - - - - - - - - - - -
     
    -
    - - diff --git a/src/main/webapp/public/docs/lib/backbone-min.js b/src/main/webapp/public/docs/lib/backbone-min.js deleted file mode 100644 index c1c0d4fff..000000000 --- a/src/main/webapp/public/docs/lib/backbone-min.js +++ /dev/null @@ -1,38 +0,0 @@ -// Backbone.js 0.9.2 - -// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc. -// Backbone may be freely distributed under the MIT license. -// For all details and documentation: -// http://backbonejs.org -(function(){var l=this,y=l.Backbone,z=Array.prototype.slice,A=Array.prototype.splice,g;g="undefined"!==typeof exports?exports:l.Backbone={};g.VERSION="0.9.2";var f=l._;!f&&"undefined"!==typeof require&&(f=require("underscore"));var i=l.jQuery||l.Zepto||l.ender;g.setDomLibrary=function(a){i=a};g.noConflict=function(){l.Backbone=y;return this};g.emulateHTTP=!1;g.emulateJSON=!1;var p=/\s+/,k=g.Events={on:function(a,b,c){var d,e,f,g,j;if(!b)return this;a=a.split(p);for(d=this._callbacks||(this._callbacks= -{});e=a.shift();)f=(j=d[e])?j.tail:{},f.next=g={},f.context=c,f.callback=b,d[e]={tail:g,next:j?j.next:f};return this},off:function(a,b,c){var d,e,h,g,j,q;if(e=this._callbacks){if(!a&&!b&&!c)return delete this._callbacks,this;for(a=a?a.split(p):f.keys(e);d=a.shift();)if(h=e[d],delete e[d],h&&(b||c))for(g=h.tail;(h=h.next)!==g;)if(j=h.callback,q=h.context,b&&j!==b||c&&q!==c)this.on(d,j,q);return this}},trigger:function(a){var b,c,d,e,f,g;if(!(d=this._callbacks))return this;f=d.all;a=a.split(p);for(g= -z.call(arguments,1);b=a.shift();){if(c=d[b])for(e=c.tail;(c=c.next)!==e;)c.callback.apply(c.context||this,g);if(c=f){e=c.tail;for(b=[b].concat(g);(c=c.next)!==e;)c.callback.apply(c.context||this,b)}}return this}};k.bind=k.on;k.unbind=k.off;var o=g.Model=function(a,b){var c;a||(a={});b&&b.parse&&(a=this.parse(a));if(c=n(this,"defaults"))a=f.extend({},c,a);b&&b.collection&&(this.collection=b.collection);this.attributes={};this._escapedAttributes={};this.cid=f.uniqueId("c");this.changed={};this._silent= -{};this._pending={};this.set(a,{silent:!0});this.changed={};this._silent={};this._pending={};this._previousAttributes=f.clone(this.attributes);this.initialize.apply(this,arguments)};f.extend(o.prototype,k,{changed:null,_silent:null,_pending:null,idAttribute:"id",initialize:function(){},toJSON:function(){return f.clone(this.attributes)},get:function(a){return this.attributes[a]},escape:function(a){var b;if(b=this._escapedAttributes[a])return b;b=this.get(a);return this._escapedAttributes[a]=f.escape(null== -b?"":""+b)},has:function(a){return null!=this.get(a)},set:function(a,b,c){var d,e;f.isObject(a)||null==a?(d=a,c=b):(d={},d[a]=b);c||(c={});if(!d)return this;d instanceof o&&(d=d.attributes);if(c.unset)for(e in d)d[e]=void 0;if(!this._validate(d,c))return!1;this.idAttribute in d&&(this.id=d[this.idAttribute]);var b=c.changes={},h=this.attributes,g=this._escapedAttributes,j=this._previousAttributes||{};for(e in d){a=d[e];if(!f.isEqual(h[e],a)||c.unset&&f.has(h,e))delete g[e],(c.silent?this._silent: -b)[e]=!0;c.unset?delete h[e]:h[e]=a;!f.isEqual(j[e],a)||f.has(h,e)!=f.has(j,e)?(this.changed[e]=a,c.silent||(this._pending[e]=!0)):(delete this.changed[e],delete this._pending[e])}c.silent||this.change(c);return this},unset:function(a,b){(b||(b={})).unset=!0;return this.set(a,null,b)},clear:function(a){(a||(a={})).unset=!0;return this.set(f.clone(this.attributes),a)},fetch:function(a){var a=a?f.clone(a):{},b=this,c=a.success;a.success=function(d,e,f){if(!b.set(b.parse(d,f),a))return!1;c&&c(b,d)}; -a.error=g.wrapError(a.error,b,a);return(this.sync||g.sync).call(this,"read",this,a)},save:function(a,b,c){var d,e;f.isObject(a)||null==a?(d=a,c=b):(d={},d[a]=b);c=c?f.clone(c):{};if(c.wait){if(!this._validate(d,c))return!1;e=f.clone(this.attributes)}a=f.extend({},c,{silent:!0});if(d&&!this.set(d,c.wait?a:c))return!1;var h=this,i=c.success;c.success=function(a,b,e){b=h.parse(a,e);if(c.wait){delete c.wait;b=f.extend(d||{},b)}if(!h.set(b,c))return false;i?i(h,a):h.trigger("sync",h,a,c)};c.error=g.wrapError(c.error, -h,c);b=this.isNew()?"create":"update";b=(this.sync||g.sync).call(this,b,this,c);c.wait&&this.set(e,a);return b},destroy:function(a){var a=a?f.clone(a):{},b=this,c=a.success,d=function(){b.trigger("destroy",b,b.collection,a)};if(this.isNew())return d(),!1;a.success=function(e){a.wait&&d();c?c(b,e):b.trigger("sync",b,e,a)};a.error=g.wrapError(a.error,b,a);var e=(this.sync||g.sync).call(this,"delete",this,a);a.wait||d();return e},url:function(){var a=n(this,"urlRoot")||n(this.collection,"url")||t(); -return this.isNew()?a:a+("/"==a.charAt(a.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(a){return a},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},change:function(a){a||(a={});var b=this._changing;this._changing=!0;for(var c in this._silent)this._pending[c]=!0;var d=f.extend({},a.changes,this._silent);this._silent={};for(c in d)this.trigger("change:"+c,this,this.get(c),a);if(b)return this;for(;!f.isEmpty(this._pending);){this._pending= -{};this.trigger("change",this,a);for(c in this.changed)!this._pending[c]&&!this._silent[c]&&delete this.changed[c];this._previousAttributes=f.clone(this.attributes)}this._changing=!1;return this},hasChanged:function(a){return!arguments.length?!f.isEmpty(this.changed):f.has(this.changed,a)},changedAttributes:function(a){if(!a)return this.hasChanged()?f.clone(this.changed):!1;var b,c=!1,d=this._previousAttributes,e;for(e in a)if(!f.isEqual(d[e],b=a[e]))(c||(c={}))[e]=b;return c},previous:function(a){return!arguments.length|| -!this._previousAttributes?null:this._previousAttributes[a]},previousAttributes:function(){return f.clone(this._previousAttributes)},isValid:function(){return!this.validate(this.attributes)},_validate:function(a,b){if(b.silent||!this.validate)return!0;var a=f.extend({},this.attributes,a),c=this.validate(a,b);if(!c)return!0;b&&b.error?b.error(this,c,b):this.trigger("error",this,c,b);return!1}});var r=g.Collection=function(a,b){b||(b={});b.model&&(this.model=b.model);b.comparator&&(this.comparator=b.comparator); -this._reset();this.initialize.apply(this,arguments);a&&this.reset(a,{silent:!0,parse:b.parse})};f.extend(r.prototype,k,{model:o,initialize:function(){},toJSON:function(a){return this.map(function(b){return b.toJSON(a)})},add:function(a,b){var c,d,e,g,i,j={},k={},l=[];b||(b={});a=f.isArray(a)?a.slice():[a];c=0;for(d=a.length;c=b))this.iframe=i('