Salome HOME
Modifications to respect PMD rules.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / admin / DatabaseIndexingAction.java
index 4287a4b11a356962a5eca4701fd44c8e7b594ac0..1dd125b4b084de54aa1e6e316f799b66ea7146c9 100644 (file)
@@ -22,11 +22,11 @@ public class DatabaseIndexingAction extends Action {
        /**
         * New studies which are not yet indexed by lucene.
         */
-       private List<ImportedStudyDTO> newstudies;
+       private transient List<ImportedStudyDTO> _newstudies;
        /**
         * Id's of studies to reindex.
         */
-       private String indices;
+       private String _indices;
        /**
         * Injected search service.
         */
@@ -59,8 +59,8 @@ public class DatabaseIndexingAction extends Action {
         * @return SUCCESS
         */
        public String doInitialize() {
-               newstudies = getSearchService().selectStudies();
-               indices = "";
+               _newstudies = getSearchService().selectStudies();
+               _indices = "";
                
                setMenuProperty("sysadmin");
                setToolProperty("none");
@@ -75,7 +75,7 @@ public class DatabaseIndexingAction extends Action {
         * @return SUCCESS
         */
        public String doIndexing() {
-               String[] ridlist = indices.split(",");
+               String[] ridlist = _indices.split(",");
                @SuppressWarnings("unchecked")
                Map<String, Object> filter = (Map<String, Object>) getSession().get(
                                "study.filter");
@@ -95,7 +95,7 @@ public class DatabaseIndexingAction extends Action {
         * @return the new studies
         */
        public List<ImportedStudyDTO> getNewStudies() {
-               return newstudies;
+               return _newstudies;
        }
 
        /**
@@ -103,15 +103,15 @@ public class DatabaseIndexingAction extends Action {
         * @return the indices
         */
        public String getIndices() {
-               return indices;
+               return _indices;
        }
 
        /**
         * Set the indices.
         * @param indices the indices to set
         */
-       public void setIndices(String indices) {
-               this.indices = indices;
+       public void setIndices(final String indices) {
+               this._indices = indices;
        }
 
        /**
@@ -129,7 +129,7 @@ public class DatabaseIndexingAction extends Action {
         * @param searchService
         *            the searchService to set
         */
-       public void setSearchService(SearchService searchService) {
+       public void setSearchService(final SearchService searchService) {
                _searchService = searchService;
        }
        
@@ -145,7 +145,7 @@ public class DatabaseIndexingAction extends Action {
         * Set the menuProperty.
         * @param menuProperty the menuProperty to set
         */
-       public void setMenuProperty(String menuProperty) {
+       public void setMenuProperty(final String menuProperty) {
                this._menuProperty = menuProperty;
        }