Record change for OODT-836, OODT-837.
Project: http://git-wip-us.apache.org/repos/asf/oodt/repo Commit: http://git-wip-us.apache.org/repos/asf/oodt/commit/098cc4fa Tree: http://git-wip-us.apache.org/repos/asf/oodt/tree/098cc4fa Diff: http://git-wip-us.apache.org/repos/asf/oodt/diff/098cc4fa Branch: refs/heads/feature/zookeeper-config Commit: 098cc4fa63e6a1febd5a620f6a6b881cd4d48073 Parents: a82ee5d Author: Chris Mattmann <[email protected]> Authored: Sun Jul 16 09:05:36 2017 -0700 Committer: Chris Mattmann <[email protected]> Committed: Sun Jul 16 09:05:36 2017 -0700 ---------------------------------------------------------------------- app/fmbrowser/pom.xml | 81 - app/fmbrowser/src/main/bin/filemgr-browser | 37 - .../browser/controller/TableListener.java | 172 - .../browser/controller/WindowListener.java | 166 - .../oodt/cas/filemgr/browser/model/CasDB.java | 187 -- .../cas/filemgr/browser/model/QueryBuilder.java | 102 - .../oodt/cas/filemgr/browser/model/Results.java | 68 - .../browser/system/XmlRpcFilemgrBrowser.java | 35 - .../cas/filemgr/browser/view/GuiParams.java | 28 - .../cas/filemgr/browser/view/MainWindow.java | 70 - .../cas/filemgr/browser/view/menus/MenuBar.java | 98 - .../browser/view/menus/RightClickMenu.java | 51 - .../filemgr/browser/view/panels/BottomPane.java | 64 - .../cas/filemgr/browser/view/panels/Cell.java | 73 - .../filemgr/browser/view/panels/HeaderCell.java | 49 - .../filemgr/browser/view/panels/HeaderRow.java | 99 - .../browser/view/panels/HeaderSpacer.java | 48 - .../filemgr/browser/view/panels/MiddlePane.java | 52 - .../filemgr/browser/view/panels/QueryField.java | 97 - .../filemgr/browser/view/panels/QueryPane.java | 69 - .../cas/filemgr/browser/view/panels/Row.java | 83 - .../filemgr/browser/view/panels/TablePane.java | 150 - .../browser/view/prompts/ConnectPrompt.java | 105 - .../view/prompts/QueryBuilderPrompt.java | 444 --- .../browser/view/prompts/SortPrompt.java | 153 - app/weditor/.gitignore | 1 - app/weditor/pom.xml | 110 - app/weditor/src/main/assembly/assembly.xml | 72 - app/weditor/src/main/bin/weditor | 22 - .../oodt/cas/workflow/gui/WorkflowGUI.java | 325 -- .../oodt/cas/workflow/gui/menu/EditMenu.java | 48 - .../oodt/cas/workflow/gui/menu/FileMenu.java | 82 - .../oodt/cas/workflow/gui/model/ModelGraph.java | 307 -- .../oodt/cas/workflow/gui/model/ModelNode.java | 375 --- .../model/repo/XmlWorkflowModelRepository.java | 614 ---- .../repo/XmlWorkflowModelRepositoryFactory.java | 49 - .../gui/perspective/MultiStatePerspective.java | 103 - .../workflow/gui/perspective/Perspective.java | 87 - .../gui/perspective/build/BuildPerspective.java | 436 --- .../gui/perspective/view/MultiStateView.java | 46 - .../cas/workflow/gui/perspective/view/View.java | 97 - .../gui/perspective/view/ViewChange.java | 97 - .../gui/perspective/view/ViewListener.java | 32 - .../gui/perspective/view/ViewState.java | 271 -- .../perspective/view/impl/DefaultPropView.java | 862 ----- .../perspective/view/impl/DefaultTreeView.java | 496 --- .../perspective/view/impl/GlobalConfigView.java | 270 -- .../gui/perspective/view/impl/GraphView.java | 1140 ------- .../perspective/view/impl/IdentifiableEdge.java | 92 - .../view/impl/JungJGraphModelAdapter.java | 246 -- .../perspective/view/impl/TreeProjectView.java | 155 - .../oodt/cas/workflow/gui/toolbox/Tool.java | 125 - .../oodt/cas/workflow/gui/toolbox/ToolBox.java | 76 - .../oodt/cas/workflow/gui/util/GuiUtils.java | 377 --- .../oodt/cas/workflow/gui/util/IconLoader.java | 83 - .../apache/oodt/cas/workflow/gui/util/Line.java | 79 - .../gui/util/exceptions/WorkflowException.java | 27 - app/weditor/src/main/resources/REMOVE.log | 18 - .../src/main/resources/examples/GranuleMaps.xml | 238 -- .../main/resources/examples/mspi-workflow.xml | 124 - .../resources/examples/shared-properties.xml | 85 - .../src/main/resources/examples/test.xml | 78 - .../src/main/resources/icons/cursor-zoom.png | Bin 2967 -> 0 bytes .../src/main/resources/icons/delete-sel.jpg | Bin 2686 -> 0 bytes app/weditor/src/main/resources/icons/delete.jpg | Bin 2219 -> 0 bytes .../src/main/resources/icons/edit-sel.jpg | Bin 2276 -> 0 bytes app/weditor/src/main/resources/icons/edit.jpg | Bin 2375 -> 0 bytes .../src/main/resources/icons/move-sel.jpg | Bin 1924 -> 0 bytes app/weditor/src/main/resources/icons/move.jpg | Bin 2021 -> 0 bytes .../src/main/resources/icons/zoom-in-sel.jpg | Bin 2438 -> 0 bytes .../src/main/resources/icons/zoom-in.jpg | Bin 2192 -> 0 bytes .../src/main/resources/icons/zoom-out-sel.jpg | Bin 2356 -> 0 bytes .../src/main/resources/icons/zoom-out.jpg | Bin 2137 -> 0 bytes .../src/main/resources/logging.properties | 40 - balance/etc/skel/.htaccess | 45 - balance/etc/skel/README.txt | 90 - balance/etc/skel/config.ini | 82 - balance/etc/skel/hooks.php | 98 - balance/etc/skel/index.php | 48 - .../skel/scripts/widgets/BreadcrumbsWidget.php | 101 - balance/etc/skel/static/css/balance/balance.css | 119 - balance/etc/skel/static/css/site.css | 19 - balance/etc/skel/views/common/footer.php | 38 - balance/etc/skel/views/common/header.php | 56 - balance/etc/skel/views/errors/403.php | 30 - balance/etc/skel/views/errors/404.php | 29 - balance/etc/skel/views/index.php | 35 - balance/lib/pear/Boot/bootstrap.php | 59 - balance/lib/pear/Core/Application.class.php | 427 --- .../pear/Core/ApplicationDataResponse.class.php | 81 - .../lib/pear/Core/ApplicationRequest.class.php | 171 - .../lib/pear/Core/ApplicationResponse.class.php | 311 -- .../IApplicationAuthenticationProvider.php | 162 - .../IApplicationAuthorizationProvider.php | 62 - .../Interfaces/IApplicationDataProvider.php | 125 - .../Interfaces/IApplicationErrorProvider.php | 39 - .../lib/pear/Interfaces/IApplicationWidget.php | 67 - .../LDAPAuthenticationProvider.class.php | 170 - .../LDAPAuthorizationProvider.class.php | 109 - .../Providers/Data/MDB2DataProvider.class.php | 137 - .../Providers/Data/MySqlDataProvider.class.php | 128 - .../Providers/Data/PDODataProvider.class.php | 142 - .../Error/DefaultErrorProvider.class.php | 38 - balance/lib/pear/README | 34 - balance/lib/pear/package.xml | 136 - .../cas-browser/classes/CasBrowser.class.php | 455 --- .../modules/cas-browser/classes/Utils.class.php | 388 --- balance/modules/cas-browser/config.ini | 121 - .../modules/cas-browser/element-ordering.ini | 64 - .../modules/cas-browser/element-visibility.ini | 49 - balance/modules/cas-browser/hooks.php | 74 - .../cas-browser/scripts/allTypeScript.php | 64 - .../scripts/crossTypeQueryScript.php | 246 -- .../modules/cas-browser/scripts/pageScript.php | 102 - .../cas-browser/scripts/productTypeFilter.php | 70 - .../modules/cas-browser/scripts/queryScript.php | 155 - .../scripts/widgets/BasicSearchWidget.php | 42 - .../scripts/widgets/CrossTypeSearchWidget.php | 125 - .../scripts/widgets/CustomSearchWidget.php | 178 -- .../scripts/widgets/FilterWidget.php | 136 - .../scripts/widgets/MetadataDisplayWidget.php | 90 - .../scripts/widgets/ProductDownloadWidget.php | 96 - .../scripts/widgets/ProductPageWidget.php | 133 - .../scripts/widgets/ProductTypeListWidget.php | 92 - .../cas-browser/static/css/cas-browser.css | 289 -- .../cas-browser/static/css/dataTables.css | 469 --- .../static/img/dataTables/Sorting icons.psd | Bin 27490 -> 0 bytes .../static/img/dataTables/back_disabled.png | Bin 1361 -> 0 bytes .../static/img/dataTables/back_enabled.png | Bin 1379 -> 0 bytes .../img/dataTables/back_enabled_hover.png | Bin 1375 -> 0 bytes .../static/img/dataTables/favicon.ico | Bin 894 -> 0 bytes .../static/img/dataTables/forward_disabled.png | Bin 1363 -> 0 bytes .../static/img/dataTables/forward_enabled.png | Bin 1380 -> 0 bytes .../img/dataTables/forward_enabled_hover.png | Bin 1379 -> 0 bytes .../static/img/dataTables/sort_asc.png | Bin 1118 -> 0 bytes .../static/img/dataTables/sort_asc_disabled.png | Bin 1050 -> 0 bytes .../static/img/dataTables/sort_both.png | Bin 1136 -> 0 bytes .../static/img/dataTables/sort_desc.png | Bin 1127 -> 0 bytes .../img/dataTables/sort_desc_disabled.png | Bin 1045 -> 0 bytes .../cas-browser/static/img/download-icon.gif | Bin 556 -> 0 bytes .../modules/cas-browser/static/img/loading.gif | Bin 7247 -> 0 bytes .../cas-browser/static/img/zip-icon-smaller.gif | Bin 1877 -> 0 bytes .../modules/cas-browser/static/img/zip-icon.gif | Bin 3476 -> 0 bytes .../static/js/crosstypesearchwidget.js | 106 - .../cas-browser/static/js/customsearchwidget.js | 78 - .../cas-browser/static/js/filterwidget.js | 98 - .../cas-browser/static/js/jcorner.jquery.js | 247 -- .../cas-browser/static/js/jquery-1.4.2-min.js | 154 - .../static/js/jquery.dataTables.min.js | 388 --- .../cas-browser/static/js/querywidget.js | 314 -- balance/modules/cas-browser/views/dataset.php | 100 - balance/modules/cas-browser/views/index.php | 87 - balance/modules/cas-browser/views/product.php | 84 - balance/modules/cas-browser/views/products.php | 156 - balance/modules/cas-browser/views/search.php | 89 - .../modules/cas-browser/views/typesearch.php | 121 - balance/modules/profile/README.txt | 88 - .../LDAPAuthenticationProvider.class.php | 263 -- .../classes/LDAPAuthorizationProvider.class.php | 113 - .../NullAuthenticationProvider.class.php | 96 - .../classes/NullAuthorizationProvider.class.php | 45 - balance/modules/profile/config.ini | 180 -- balance/modules/profile/hooks.php | 91 - balance/modules/profile/scripts/access.php | 107 - balance/modules/profile/scripts/changePwd.php | 69 - balance/modules/profile/scripts/login.php | 46 - balance/modules/profile/scripts/logout.php | 36 - balance/modules/profile/scripts/manage.php | 59 - .../scripts/widgets/UserStatusWidget.php | 91 - balance/modules/profile/static/css/profile.css | 150 - .../profile/static/js/additional-methods.js | 259 -- .../profile/static/js/jquery.validate.min.js | 16 - .../profile/static/js/jquery.validate.pack.js | 15 - balance/modules/profile/views/changePwd.php | 76 - balance/modules/profile/views/createUser.php | 184 -- balance/modules/profile/views/groups.php | 82 - balance/modules/profile/views/index.php | 81 - balance/modules/profile/views/login.php | 71 - balance/modules/profile/views/manage.php | 87 - .../profile/views/passwordChangeConfirmed.php | 44 - balance/modules/puny/README.txt | 115 - balance/modules/puny/classes/Puny.class.php | 166 - .../puny/classes/Puny_Container.class.php | 85 - .../puny/classes/Puny_Resource.class.php | 163 - .../puny/classes/data/Puny_DataStore.class.php | 69 - .../data/Puny_LocalFileDataStore.class.php | 79 - .../classes/data/Puny_MongoDataStore.class.php | 75 - .../classes/data/Puny_PdoDataStore.class.php | 111 - .../parsers/Puny_MarkdownParser.class.php | 36 - .../puny/classes/parsers/Puny_Parser.class.php | 40 - balance/modules/puny/config.ini | 75 - balance/modules/puny/hooks.php | 17 - balance/modules/puny/libs/markdown.php | 2949 ------------------ balance/modules/puny/schemas/schema.pdo.mysql | 26 - balance/modules/puny/scripts/login.php | 52 - balance/modules/puny/scripts/logout.php | 32 - balance/modules/puny/scripts/store.php | 40 - balance/modules/puny/static/css/defaults.css | 39 - balance/modules/puny/static/css/dialog.css | 157 - balance/modules/puny/static/css/editor.css | 567 ---- balance/modules/puny/static/css/github.css | 677 ---- balance/modules/puny/static/css/puny.css | 32 - balance/modules/puny/static/img/icon-sprite.png | Bin 9542 -> 0 bytes balance/modules/puny/static/js/editable.js | 1090 ------- .../puny/static/js/editor/gollum.editor.js | 1090 ------- .../puny/static/js/editor/langs/markdown.js | 228 -- balance/modules/puny/static/js/gollum.dialog.js | 279 -- balance/modules/puny/static/js/gollum.js | 178 -- .../puny/static/js/gollum.placeholder.js | 71 - .../modules/puny/static/js/jquery-1.7.2.min.js | 4 - balance/modules/puny/static/js/puny.js | 56 - balance/modules/puny/views/edit.php | 141 - balance/modules/puny/views/error.php | 31 - balance/modules/puny/views/login.php | 61 - balance/modules/puny/views/logout.php | 32 - balance/modules/puny/views/preview.php | 36 - catalog/.gitignore | 1 - catalog/pom.xml | 236 -- catalog/src/main/assembly/assembly.xml | 77 - catalog/src/main/bin/catserv-client | 33 - catalog/src/main/bin/catserv-server | 33 - .../cli/action/CatalogServiceCliAction.java | 77 - .../action/GetSupportedCatalogIdsCliAction.java | 40 - .../action/LoadCatalogRepositoryCliAction.java | 80 - .../cli/action/LoadCatalogsCliAction.java | 70 - .../catalog/cli/action/PagedQueryCliAction.java | 116 - .../cas/catalog/cli/action/QueryCliAction.java | 95 - .../cli/action/ReducedPagedQueryCliAction.java | 134 - .../cli/action/ReducedQueryCliAction.java | 110 - .../catalog/cli/action/ShutdownCliAction.java | 38 - .../exception/CatalogDictionaryException.java | 41 - .../cas/catalog/exception/CatalogException.java | 40 - .../exception/CatalogIndexException.java | 40 - .../exception/CatalogRepositoryException.java | 40 - .../exception/CatalogServiceException.java | 40 - .../exception/IngestServiceException.java | 40 - .../exception/QueryServiceException.java | 40 - .../catalog/mapping/DataSourceIngestMapper.java | 259 -- .../mapping/DataSourceIngestMapperFactory.java | 91 - .../catalog/mapping/InMemoryIngestMapper.java | 41 - .../mapping/InMemoryIngestMapperFactory.java | 52 - .../oodt/cas/catalog/mapping/IngestMapper.java | 157 - .../catalog/mapping/IngestMapperFactory.java | 31 - .../cas/catalog/mapping/LuceneIngestMapper.java | 114 - .../mapping/LuceneIngestMapperFactory.java | 35 - .../mapping/MemoryBasedIngestMapper.java | 281 -- .../mapping/MemoryBasedIngestMapperFactory.java | 34 - .../catalog/metadata/TransactionalMetadata.java | 73 - .../oodt/cas/catalog/page/CatalogReceipt.java | 83 - .../oodt/cas/catalog/page/IndexPager.java | 77 - .../oodt/cas/catalog/page/IngestReceipt.java | 56 - .../org/apache/oodt/cas/catalog/page/Page.java | 77 - .../apache/oodt/cas/catalog/page/PageInfo.java | 49 - .../cas/catalog/page/ProcessedPageInfo.java | 47 - .../oodt/cas/catalog/page/QueryPager.java | 73 - .../cas/catalog/page/TransactionReceipt.java | 91 - .../query/ComparisonQueryExpression.java | 84 - .../catalog/query/CustomQueryExpression.java | 73 - .../query/CustomWrapperQueryExpression.java | 58 - .../catalog/query/FreeTextQueryExpression.java | 103 - .../cas/catalog/query/NotQueryExpression.java | 54 - .../oodt/cas/catalog/query/QueryExpression.java | 53 - .../cas/catalog/query/QueryLogicalGroup.java | 117 - .../cas/catalog/query/StdQueryExpression.java | 50 - .../cas/catalog/query/TermQueryExpression.java | 44 - .../catalog/query/WrapperQueryExpression.java | 57 - .../catalog/query/filter/FilterAlgorithm.java | 35 - .../cas/catalog/query/filter/QueryFilter.java | 60 - .../query/filter/time/MetadataTimeEvent.java | 41 - .../time/MetadataTimeEventFilterAlgorithm.java | 57 - .../time/MetadataTimeEventQueryFilter.java | 112 - .../conv/AsciiSortableVersionConverter.java | 39 - .../filter/time/conv/VersionConverter.java | 32 - .../query/parser/JJTQueryParserState.java | 123 - .../oodt/cas/catalog/query/parser/Node.java | 36 - .../catalog/query/parser/ParseException.java | 190 -- .../cas/catalog/query/parser/QueryParser.java | 1000 ------ .../cas/catalog/query/parser/QueryParser.jj | 497 --- .../cas/catalog/query/parser/QueryParser.jjt | 214 -- .../query/parser/QueryParserConstants.java | 65 - .../query/parser/QueryParserTokenManager.java | 806 ----- .../query/parser/QueryParserTreeConstants.java | 29 - .../catalog/query/parser/SimpleCharStream.java | 480 --- .../cas/catalog/query/parser/SimpleNode.java | 79 - .../oodt/cas/catalog/query/parser/Token.java | 131 - .../cas/catalog/query/parser/TokenMgrError.java | 146 - .../catalog/repository/CatalogRepository.java | 77 - .../repository/CatalogRepositoryFactory.java | 34 - .../MemoryBasedCatalogRepository.java | 120 - .../MemoryBasedCatalogRepositoryFactory.java | 38 - .../repository/SerializedCatalogRepository.java | 212 -- .../SerializedCatalogRepositoryFactory.java | 54 - .../repository/SpringCatalogRepository.java | 87 - .../SpringCatalogRepositoryFactory.java | 43 - .../server/CatalogServiceCommandLineClient.java | 46 - .../server/CatalogServiceServerLauncher.java | 51 - .../AbstractCommunicationChannelClient.java | 42 - .../AbstractCommunicationChannelServer.java | 404 --- .../channel/CommunicationChannelClient.java | 127 - .../CommunicationChannelClientFactory.java | 35 - .../channel/CommunicationChannelServer.java | 154 - .../CommunicationChannelServerFactory.java | 40 - .../rmi/RmiCommunicationChannelClient.java | 271 -- .../RmiCommunicationChannelClientInterface.java | 109 - .../rmi/RmiCommunicationChannelClientMBean.java | 27 - .../rmi/RmiCommunicationChannelServer.java | 275 -- .../XmlRpcCommunicationChannelClient.java | 639 ---- ...XmlRpcCommunicationChannelClientFactory.java | 93 - .../XmlRpcCommunicationChannelServer.java | 261 -- ...XmlRpcCommunicationChannelServerFactory.java | 77 - .../action/CatalogServiceServerCliAction.java | 82 - .../cli/action/LaunchXmlRpcServerCliAction.java | 68 - .../oodt/cas/catalog/struct/Dictionary.java | 65 - .../cas/catalog/struct/DictionaryFactory.java | 29 - .../apache/oodt/cas/catalog/struct/Index.java | 65 - .../oodt/cas/catalog/struct/IndexFactory.java | 29 - .../oodt/cas/catalog/struct/IngestService.java | 74 - .../oodt/cas/catalog/struct/QueryService.java | 80 - .../oodt/cas/catalog/struct/TransactionId.java | 72 - .../catalog/struct/TransactionIdFactory.java | 31 - .../dictionary/WorkflowManagerDictionary.java | 71 - .../WorkflowManagerDictionaryFactory.java | 34 - .../struct/impl/index/DataSourceIndex.java | 549 ---- .../impl/index/DataSourceIndexFactory.java | 67 - .../struct/impl/index/InMemoryIndex.java | 45 - .../struct/impl/index/InMemoryIndexFactory.java | 47 - .../index/WorkflowManagerDataSourceIndex.java | 323 -- .../WorkflowManagerDataSourceIndexFactory.java | 59 - .../transaction/LongTransactionIdFactory.java | 52 - .../transaction/StringTransactionIdFactory.java | 51 - .../transaction/UuidTransactionIdFactory.java | 55 - .../apache/oodt/cas/catalog/system/Catalog.java | 399 --- .../oodt/cas/catalog/system/CatalogFactory.java | 80 - .../oodt/cas/catalog/system/CatalogService.java | 130 - .../catalog/system/CatalogServiceFactory.java | 31 - .../system/impl/CatalogServiceClient.java | 407 --- .../impl/CatalogServiceClientFactory.java | 66 - .../system/impl/CatalogServiceLocal.java | 1336 -------- .../system/impl/CatalogServiceLocalFactory.java | 122 - .../apache/oodt/cas/catalog/term/Bucket.java | 47 - .../org/apache/oodt/cas/catalog/term/Term.java | 163 - .../oodt/cas/catalog/term/TermBucket.java | 103 - .../util/CasPropertyPlaceholderConfigurer.java | 62 - .../cas/catalog/util/PluginClassLoader.java | 100 - .../apache/oodt/cas/catalog/util/PluginURL.java | 47 - .../oodt/cas/catalog/util/QueryUtils.java | 91 - .../oodt/cas/catalog/util/Serializer.java | 99 - .../oodt/cas/catalog/util/SpringUtils.java | 54 - catalog/src/main/resources/REMOVE.log | 19 - catalog/src/main/resources/logging.properties | 56 - .../oracle/create-transaction-id-map-table.sql | 29 - .../oracle/create-transaction-index-table.sql | 31 - .../src/main/resources/policy/catserv-beans.xml | 71 - .../policy/catserv-client-action-beans.xml | 51 - .../policy/catserv-client-cmd-line-beans.xml | 302 -- .../resources/policy/catserv-client-config.xml | 29 - .../resources/policy/catserv-properties.xml | 43 - .../policy/catserv-server-cmd-line-beans.xml | 51 - .../resources/policy/catserv-server-config.xml | 28 - .../main/resources/policy/cmd-line-actions.xml | 51 - .../main/resources/policy/cmd-line-options.xml | 317 -- .../policy/cmd-line-server-actions.xml | 30 - .../policy/cmd-line-server-options.xml | 207 -- .../resources/policy/in-memory-index-cat.sql | 32 - .../policy/in-memory-ingest-mapper.sql | 26 - .../resources/policy/workflow-catalog-beans.xml | 56 - .../system/impl/TestCatalogServiceLocal.java | 204 -- catalog/src/test/resources/test-index-cat.sql | 32 - catalog/src/test/resources/test-mapper-cat.sql | 26 - docker/Dockerfile | 22 - grid/pom.xml | 138 - .../grid/AuthenticationRequiredException.java | 30 - .../java/org/apache/oodt/grid/ConfigBean.java | 177 -- .../org/apache/oodt/grid/ConfigServlet.java | 309 -- .../org/apache/oodt/grid/Configuration.java | 463 --- .../java/org/apache/oodt/grid/GridServlet.java | 126 - .../java/org/apache/oodt/grid/LoginServlet.java | 65 - .../apache/oodt/grid/ProductQueryServlet.java | 226 -- .../org/apache/oodt/grid/ProductServer.java | 65 - .../apache/oodt/grid/ProfileQueryServlet.java | 141 - .../org/apache/oodt/grid/ProfileServer.java | 71 - .../java/org/apache/oodt/grid/QueryServlet.java | 274 -- .../oodt/grid/RestfulProductQueryServlet.java | 88 - .../main/java/org/apache/oodt/grid/Server.java | 166 - .../main/java/org/apache/oodt/grid/Utility.java | 82 - grid/src/main/webapp/META-INF/context.xml | 23 - grid/src/main/webapp/WEB-INF/jetty-web.xml | 21 - grid/src/main/webapp/WEB-INF/web.xml | 86 - grid/src/main/webapp/config.jsp | 205 -- grid/src/main/webapp/error.jsp | 60 - grid/src/main/webapp/images/webapp-large.png | Bin 3529 -> 0 bytes grid/src/main/webapp/images/webapp-small.png | Bin 1222 -> 0 bytes grid/src/main/webapp/index.html | 32 - grid/src/main/webapp/style.css | 161 - grid/src/site/resources/images/web-grid.jpg | Bin 45879 -> 0 bytes grid/src/site/resources/images/web-grid.psd | Bin 741413 -> 0 bytes grid/src/site/resources/slides.pdf | Bin 631046 -> 0 bytes grid/src/site/site.xml | 30 - grid/src/site/xdoc/index.xml | 73 - .../org/apache/oodt/grid/ConfigurationTest.java | 180 -- opendapps/pom.xml | 99 - .../org/apache/oodt/opendapps/DapNames.java | 37 - .../apache/oodt/opendapps/DatasetCrawler.java | 126 - .../apache/oodt/opendapps/DatasetExtractor.java | 188 -- .../OpendapProfileElementExtractor.java | 174 -- .../oodt/opendapps/OpendapProfileHandler.java | 186 -- .../org/apache/oodt/opendapps/Profiler.java | 155 - .../oodt/opendapps/config/ConstantSpec.java | 86 - .../apache/oodt/opendapps/config/DapRoot.java | 88 - .../oodt/opendapps/config/DatasetMetElem.java | 68 - .../oodt/opendapps/config/OpendapConfig.java | 128 - .../opendapps/config/OpendapConfigMetKeys.java | 87 - .../opendapps/config/OpendapConfigReader.java | 133 - .../opendapps/config/OpendapProfileMetKeys.java | 36 - .../config/ProcessingInstructions.java | 102 - .../oodt/opendapps/config/RewriteSpec.java | 86 - .../extractors/DasMetadataExtractor.java | 186 -- .../opendapps/extractors/MetadataExtractor.java | 43 - .../extractors/NcmlMetadataExtractor.java | 55 - .../extractors/ThreddsMetadataExtractor.java | 315 -- .../opendapps/util/OpendapURLEvaluator.java | 48 - .../oodt/opendapps/util/ProfileChecker.java | 186 -- .../oodt/opendapps/util/ProfileSerializer.java | 109 - .../oodt/opendapps/util/ProfileUtils.java | 421 --- opendapps/src/main/resources/logging.properties | 35 - opendapps/src/main/resources/opendap.config.xml | 192 -- pom.xml | 15 - product/.gitignore | 1 - product/pom.xml | 138 - product/src/main/conf/displayableTypes.xml | 50 - product/src/main/conf/ofsn-ps.xml | 201 -- .../oodt/product/LargeProductQueryHandler.java | 57 - .../org/apache/oodt/product/QueryHandler.java | 38 - .../handlers/ofsn/AbstractCrawlLister.java | 116 - .../ofsn/DirListNonRecursiveHandler.java | 60 - .../handlers/ofsn/DirListRecursiveHandler.java | 63 - .../ofsn/FileListNonRecursiveHandler.java | 56 - .../handlers/ofsn/FileListRecursiveHandler.java | 55 - .../product/handlers/ofsn/MD5GetHandler.java | 143 - .../product/handlers/ofsn/OFSNFileHandler.java | 255 -- .../ofsn/OFSNFileHandlerConfiguration.java | 131 - .../OFSNFileHandlerConfigurationReader.java | 93 - .../product/handlers/ofsn/OFSNGetHandler.java | 73 - .../handlers/ofsn/OFSNHandlerConfig.java | 121 - .../product/handlers/ofsn/OFSNListHandler.java | 61 - .../handlers/ofsn/RawSizeListHandler.java | 60 - .../handlers/ofsn/SingleFileListHandler.java | 64 - .../handlers/ofsn/SingleZipFileListHandler.java | 83 - .../handlers/ofsn/StdOFSNGetHandler.java | 112 - .../product/handlers/ofsn/URLGetHandler.java | 252 -- .../handlers/ofsn/metadata/OFSNMetKeys.java | 41 - .../ofsn/metadata/OFSNXMLConfigMetKeys.java | 55 - .../handlers/ofsn/metadata/OFSNXMLMetKeys.java | 43 - .../handlers/ofsn/metadata/OODTMetKeys.java | 31 - .../handlers/ofsn/metadata/XMLQueryMetKeys.java | 32 - .../handlers/ofsn/util/OFSNObjectFactory.java | 112 - .../product/handlers/ofsn/util/OFSNUtils.java | 197 -- .../xmlquery/ChunkedProductInputStream.java | 215 -- .../org/apache/oodt/xmlquery/LargeResult.java | 166 - .../src/site/resources/images/delegation.png | Bin 59132 -> 0 bytes .../src/site/resources/images/delegation.psd | Bin 277484 -> 0 bytes .../src/site/resources/images/grid-product.jpg | Bin 55049 -> 0 bytes product/src/site/site.xml | 32 - product/src/site/xdoc/servlet/index.xml | 243 -- product/src/site/xdoc/tutorials/index.xml | 36 - product/src/site/xdoc/tutorials/lh/index.xml | 718 ----- product/src/site/xdoc/tutorials/ps/index.xml | 481 --- product/src/site/xdoc/tutorials/qh/index.xml | 704 ----- .../handlers/ofsn/util/OFSNUtilsTest.java | 59 - .../xmlquery/ChunkedProductInputStreamTest.java | 170 - .../apache/oodt/xmlquery/LargeResultTest.java | 54 - profile/pom.xml | 156 - profile/src/main/dtd/prof.dtd | 86 - .../org/apache/oodt/profile/DefaultFactory.java | 56 - .../oodt/profile/EnumeratedProfileElement.java | 106 - .../org/apache/oodt/profile/ObjectFactory.java | 109 - .../java/org/apache/oodt/profile/Profile.java | 401 --- .../apache/oodt/profile/ProfileAttributes.java | 344 -- .../org/apache/oodt/profile/ProfileElement.java | 586 ---- .../apache/oodt/profile/ProfileException.java | 57 - .../oodt/profile/ProfileSAXException.java | 37 - .../oodt/profile/ProfileSQLException.java | 34 - .../oodt/profile/RangedProfileElement.java | 115 - .../apache/oodt/profile/ResourceAttributes.java | 602 ---- .../oodt/profile/UnspecifiedProfileElement.java | 89 - .../java/org/apache/oodt/profile/Utility.java | 254 -- .../profile/activity/ConnectedToServer.java | 26 - .../activity/ProfileClientConstructed.java | 26 - .../oodt/profile/activity/QueriedHandlers.java | 26 - .../oodt/profile/activity/ReceivedQuery.java | 26 - .../apache/oodt/profile/gui/LeafListener.java | 288 -- .../oodt/profile/gui/ProfileBuilderGUI.form | 435 --- .../oodt/profile/gui/ProfileBuilderGUI.java | 962 ------ .../apache/oodt/profile/gui/profileTree.java | 41 - .../gui/pstructs/ProfileAttributesPrinter.java | 75 - .../gui/pstructs/ProfileElementPrinter.java | 64 - .../profile/gui/pstructs/ProfilePrinter.java | 77 - .../gui/pstructs/ResourceAttributesPrinter.java | 118 - .../handlers/DatabaseProfileManager.java | 277 -- .../oodt/profile/handlers/ProfileHandler.java | 64 - .../oodt/profile/handlers/ProfileManager.java | 149 - .../profile/handlers/cas/CASProfileHandler.java | 289 -- .../profile/handlers/cas/util/ProfileUtils.java | 107 - .../handlers/lightweight/AndExpression.java | 67 - .../lightweight/ConstantExpression.java | 65 - .../handlers/lightweight/FalseResult.java | 50 - .../handlers/lightweight/Intersection.java | 60 - .../lightweight/LightweightProfileServer.java | 306 -- .../handlers/lightweight/MatchingResult.java | 61 - .../handlers/lightweight/NotExpression.java | 59 - .../lightweight/OperatorExpression.java | 140 - .../handlers/lightweight/OrExpression.java | 67 - .../profile/handlers/lightweight/Result.java | 35 - .../SearchableEnumeratedProfileElement.java | 50 - .../lightweight/SearchableObjectFactory.java | 62 - .../handlers/lightweight/SearchableProfile.java | 44 - .../lightweight/SearchableProfileElement.java | 36 - .../SearchableRangedProfileElement.java | 66 - .../SearchableResourceAttributes.java | 142 - .../SearchableUnspecifiedProfileElement.java | 39 - .../profile/handlers/lightweight/Union.java | 58 - .../handlers/lightweight/WhereExpression.java | 55 - .../profile/handlers/lightweight/package.html | 32 - profile/src/site/resources/examples/src.jar | Bin 7973 -> 0 bytes profile/src/site/resources/images/class.png | Bin 120990 -> 0 bytes profile/src/site/resources/images/class.psd | Bin 499375 -> 0 bytes .../src/site/resources/images/delegation.png | Bin 48258 -> 0 bytes .../src/site/resources/images/delegation.psd | Bin 254613 -> 0 bytes .../src/site/resources/images/grid-profile.jpg | Bin 54712 -> 0 bytes profile/src/site/resources/images/stack.png | Bin 44350 -> 0 bytes profile/src/site/resources/images/stack.psd | Bin 256409 -> 0 bytes profile/src/site/resources/images/tree.png | Bin 27643 -> 0 bytes profile/src/site/resources/images/tree.psd | Bin 129734 -> 0 bytes profile/src/site/site.xml | 37 - profile/src/site/xdoc/adv/index.xml | 1072 ------- profile/src/site/xdoc/handler/index.xml | 595 ---- profile/src/site/xdoc/info/index.xml | 848 ----- profile/src/site/xdoc/querying/index.xml | 203 -- profile/src/site/xdoc/rep/index.xml | 334 -- .../profile/EnumeratedProfileElementTest.java | 130 - .../oodt/profile/ProfileAttributesTest.java | 167 - .../oodt/profile/ProfileElementTestCase.java | 187 -- .../org/apache/oodt/profile/ProfileTest.java | 130 - .../oodt/profile/RangedProfileElementTest.java | 82 - .../oodt/profile/ResourceAttributesTest.java | 178 -- .../LightweightProfileServerTest.java | 158 - .../handlers/lightweight/lightweightTest.xml | 119 - .../resources/org/apache/oodt/profile/test.xml | 71 - profile/src/test/resources/test.xml | 71 - protocol/api/.gitignore | 1 - protocol/api/pom.xml | 147 - protocol/api/src/main/assembly/assembly.xml | 94 - protocol/api/src/main/bin/protocol | 29 - .../org/apache/oodt/cas/protocol/Protocol.java | 60 - .../oodt/cas/protocol/ProtocolFactory.java | 31 - .../apache/oodt/cas/protocol/ProtocolFile.java | 142 - .../oodt/cas/protocol/auth/Authentication.java | 30 - .../cas/protocol/auth/BasicAuthentication.java | 46 - .../cas/protocol/auth/NoAuthentication.java | 34 - .../cli/action/BasicVerifyCliAction.java | 83 - .../action/CrossProtocolTransferCliAction.java | 123 - .../action/DeleteEmptyDirectoriesCliAction.java | 70 - .../protocol/cli/action/DownloadCliAction.java | 81 - .../action/GetSupportedFactoriesCliAction.java | 43 - .../protocol/cli/action/ProtocolCliAction.java | 84 - .../cas/protocol/config/ProtocolConfig.java | 39 - .../protocol/config/SpringProtocolConfig.java | 77 - .../protocol/exceptions/ProtocolException.java | 34 - .../protocol/system/ProtocolCommandLine.java | 31 - .../cas/protocol/system/ProtocolManager.java | 116 - .../cas/protocol/util/ProtocolFileFilter.java | 32 - .../protocol/verify/BasicProtocolVerifier.java | 84 - .../verify/BasicProtocolVerifierFactory.java | 47 - .../cas/protocol/verify/ProtocolVerifier.java | 35 - .../verify/ProtocolVerifierFactory.java | 28 - .../main/resources/policy/cmd-line-actions.xml | 42 - .../main/resources/policy/cmd-line-options.xml | 166 - .../main/resources/policy/protocol-config.xml | 31 - .../apache/oodt/cas/protocol/MockProtocol.java | 130 - .../oodt/cas/protocol/MockProtocolFactory.java | 51 - .../oodt/cas/protocol/TestProtocolFile.java | 53 - .../protocol/auth/TestBasicAuthentication.java | 49 - .../cas/protocol/auth/TestNoAuthentication.java | 35 - .../cli/action/MockProtocolCliAction.java | 33 - .../cli/action/TestBasicVerifyCliAction.java | 53 - .../cli/action/TestDownloadCliAction.java | 76 - .../cli/action/TestProtocolCliAction.java | 41 - .../config/MockSpringProtocolConfig.java | 44 - .../protocol/system/TestProtocolManager.java | 95 - .../src/test/resources/test-protocol-config.xml | 53 - protocol/ftp/.gitignore | 1 - protocol/ftp/pom.xml | 122 - .../cas/protocol/ftp/CogJGlobusFtpProtocol.java | 226 -- .../ftp/CogJGlobusFtpProtocolFactory.java | 39 - .../cas/protocol/ftp/CommonsNetFtpProtocol.java | 246 -- .../ftp/CommonsNetFtpProtocolFactory.java | 38 - .../resources/policy/ftp-protocol-config.xml | 32 - .../protocol/ftp/TestCogJGlobusFtpProtocol.java | 137 - .../ftp/src/test/resources/users.properties | 26 - protocol/http/.gitignore | 1 - protocol/http/pom.xml | 105 - .../apache/oodt/cas/protocol/http/HttpFile.java | 51 - .../oodt/cas/protocol/http/HttpProtocol.java | 242 -- .../cas/protocol/http/HttpProtocolFactory.java | 37 - .../oodt/cas/protocol/http/util/HttpUtils.java | 130 - .../resources/policy/http-protocol-config.xml | 31 - .../oodt/cas/protocol/http/TestHttpFile.java | 53 - .../cas/protocol/http/TestHttpProtocol.java | 103 - .../cas/protocol/http/util/TestHttpUtils.java | 173 - protocol/imaps/.gitignore | 1 - protocol/imaps/pom.xml | 114 - .../oodt/cas/protocol/imaps/ImapsProtocol.java | 385 --- .../protocol/imaps/ImapsProtocolFactory.java | 43 - .../resources/policy/imaps-protocol-config.xml | 31 - .../cas/protocol/imaps/TestImapsProtocol.java | 112 - protocol/sftp/.gitignore | 1 - protocol/sftp/pom.xml | 140 - .../cas/protocol/sftp/JschSftpProtocol.java | 211 -- .../protocol/sftp/JschSftpProtocolFactory.java | 48 - .../sftp/auth/HostKeyAuthentication.java | 49 - .../resources/policy/sftp-protocol-config.xml | 23 - .../sftp/DummyAuthenticationProvider.java | 71 - .../cas/protocol/sftp/TestJschSftpProtocol.java | 298 -- .../sftp/UnsupportedShellProcessProvider.java | 114 - .../sftp/auth/TestHostKeyAuthentication.java | 36 - .../sftp/src/test/resources/authorization.xml | 24 - protocol/sftp/src/test/resources/platform.xml | 35 - protocol/sftp/src/test/resources/sample-dsa.key | 12 - protocol/sftp/src/test/resources/sample-dsa.pub | 1 - protocol/sftp/src/test/resources/server.xml | 28 - .../src/test/resources/sshTestDir/sshTestFile | 18 - pushpull/pom.xml | 181 -- pushpull/src/main/assembly/assembly.xml | 85 - pushpull/src/main/bin/pushpull | 32 - pushpull/src/main/bin/url-downloader | 21 - .../apache/oodt/cas/pushpull/config/Config.java | 405 --- .../oodt/cas/pushpull/config/ConfigMetKeys.java | 71 - .../pushpull/config/ConfigParserMetKeys.java | 113 - .../oodt/cas/pushpull/config/DaemonInfo.java | 131 - .../oodt/cas/pushpull/config/DataFilesInfo.java | 47 - .../oodt/cas/pushpull/config/DownloadInfo.java | 86 - .../oodt/cas/pushpull/config/ParserInfo.java | 104 - .../oodt/cas/pushpull/config/PropFilesInfo.java | 164 - .../oodt/cas/pushpull/config/ProtocolInfo.java | 168 - .../oodt/cas/pushpull/config/RemoteSpecs.java | 364 --- .../oodt/cas/pushpull/config/SiteInfo.java | 120 - .../apache/oodt/cas/pushpull/daemon/Daemon.java | 576 ---- .../cas/pushpull/daemon/DaemonController.java | 208 -- .../cas/pushpull/daemon/DaemonLauncher.java | 194 -- .../pushpull/daemon/DaemonLauncherMBean.java | 38 - .../cas/pushpull/daemon/DaemonListener.java | 40 - .../oodt/cas/pushpull/daemon/DaemonMBean.java | 95 - .../oodt/cas/pushpull/daemon/DaemonManager.java | 123 - .../cas/pushpull/daemon/DaemonRmiInterface.java | 97 - .../exceptions/AlreadyInDatabaseException.java | 41 - .../pushpull/exceptions/ConfigException.java | 45 - .../exceptions/CrawlDaemonException.java | 41 - .../pushpull/exceptions/CrawlerException.java | 45 - .../exceptions/FileRestrictionsException.java | 41 - .../exceptions/MetExtractorException.java | 41 - .../pushpull/exceptions/MethodException.java | 41 - .../pushpull/exceptions/ParserException.java | 45 - .../exceptions/ProtocolDeletionError.java | 41 - .../pushpull/exceptions/ProtocolException.java | 42 - .../exceptions/ProtocolFileException.java | 42 - .../exceptions/PushPullFrameworkException.java | 57 - .../exceptions/RemoteConnectionException.java | 45 - .../exceptions/RetrievalMethodException.java | 45 - .../exceptions/ThreadEvaluatorException.java | 41 - .../ToManyFailedDownloadsException.java | 41 - .../exceptions/UndefinedTypeException.java | 41 - .../pushpull/expressions/GlobalVariables.java | 40 - .../oodt/cas/pushpull/expressions/Method.java | 301 -- .../oodt/cas/pushpull/expressions/Operator.java | 45 - .../cas/pushpull/expressions/Punctuation.java | 45 - .../cas/pushpull/expressions/ValidInput.java | 36 - .../oodt/cas/pushpull/expressions/Variable.java | 126 - .../filerestrictions/FileRestrictions.java | 518 --- .../cas/pushpull/filerestrictions/Parser.java | 43 - .../pushpull/filerestrictions/VirtualFile.java | 315 -- .../filerestrictions/VirtualFileStructure.java | 66 - .../parsers/ClassNoaaEmailParser.java | 123 - .../parsers/DirStructXmlParser.java | 346 -- .../parsers/FileListParser.java | 59 - .../parsers/GenericEmailParser.java | 168 - .../renamingconventions/RenamingConvention.java | 168 - .../objectfactory/PushPullObjectFactory.java | 76 - .../cas/pushpull/protocol/ProtocolHandler.java | 603 ---- .../cas/pushpull/protocol/ProtocolPath.java | 142 - .../oodt/cas/pushpull/protocol/RemoteSite.java | 133 - .../cas/pushpull/protocol/RemoteSiteFile.java | 87 - .../pushpull/retrievalmethod/ListRetriever.java | 111 - .../pushpull/retrievalmethod/RemoteCrawler.java | 174 -- .../retrievalmethod/RetrievalMethod.java | 45 - .../DataFileToPropFileLinker.java | 183 -- .../retrievalsystem/DownloadListener.java | 41 - .../DownloadThreadEvaluator.java | 164 - .../retrievalsystem/DownloadingFileInfo.java | 66 - .../retrievalsystem/FileRetrievalSystem.java | 966 ------ .../pushpull/retrievalsystem/RemoteFile.java | 97 - .../retrievalsystem/RemoteFileMetKeys.java | 57 - .../retrievalsystem/RetrievalSetup.java | 267 -- .../retrievalsystem/TimeAndThreadCount.java | 48 - .../pushpull/url/handlers/imaps/Handler.java | 41 - .../url/handlers/imaps/ImapsURLConnection.java | 46 - .../cas/pushpull/url/handlers/sftp/Handler.java | 41 - .../url/handlers/sftp/SftpURLConnection.java | 44 - .../cas/pushpull/util/ExpressionValidator.java | 131 - pushpull/src/main/resources/REMOVE.log | 18 - pushpull/src/main/resources/default.properties | 21 - .../Push-Pull-User-Manual_2008-02-12.doc | Bin 431616 -> 0 bytes .../ClassNoaaEmailParserFiles/IasiEmail | 129 - .../DirStructXmlParserFiles/AIRABRAD.xml | 26 - .../DirStructXmlParserFiles/AIRS3ST8.xml | 23 - .../DirStructXmlParserFiles/AIRS3STD.xml | 23 - .../DirStructXmlParserFiles/CLASS_Email.xml | 22 - .../CLASS_Text_Email.xml | 26 - .../DirStructXmlParserFiles/CloudSAT.xml | 20 - .../examples/DirStructXmlParserFiles/GFS.xml | 30 - .../examples/DirStructXmlParserFiles/IASI.xml | 22 - .../examples/DirStructXmlParserFiles/IASI_2.xml | 22 - .../DirStructXmlParserFiles/IBIBLIO.xml | 25 - .../examples/DirStructXmlParserFiles/MODIS.xml | 23 - .../DirStructXmlParserFiles/RTG_SST.xml | 24 - .../ExternalSourcesFiles/ExternalSources.xml | 75 - .../FileListParserFiles/DownloadList.txt | 7 - .../examples/ProcmailForwarding/[dot]forward | 1 - .../ProcmailForwarding/[dot]procmail/general.rc | 25 - .../examples/ProcmailForwarding/[dot]procmailrc | 7 - .../examples/RemoteSpecsFiles/RemoteSpecs.xml | 181 -- pushpull/src/main/resources/jssecacerts | Bin 113900 -> 0 bytes pushpull/src/main/resources/logging.properties | 43 - .../policy/ParserToRetrievalMethodMap.xml | 30 - .../resources/policy/ProtocolFactoryInfo.xml | 45 - .../src/main/resources/policy/mimetypes.xml | 60 - .../src/main/resources/policy/mimetypes.xsd | 71 - .../resources/push_pull_framework.properties | 106 - .../src/site/resources/images/cas-pushpull.jpg | Bin 72076 -> 0 bytes .../src/site/resources/images/cas-pushpull.psd | Bin 1013848 -> 0 bytes .../resources/images/pp_extension_points.png | Bin 50656 -> 0 bytes .../site/resources/images/pp_object_model.png | Bin 15808 -> 0 bytes pushpull/src/site/site.xml | 32 - .../src/site/xdoc/development/developer.xml | 286 -- pushpull/src/site/xdoc/development/maven.xml | 176 -- pushpull/src/site/xdoc/user/advanced.xml | 50 - pushpull/src/site/xdoc/user/basic.xml | 50 - pushpull/src/site/xdoc/user/index.xml | 49 - .../parsers/GenericEmailParserTest.java | 75 - pushpull/src/test/resources/TestEmail.txt | 16 - sso/pom.xml | 75 - .../sso/AbstractWebBasedSingleSignOn.java | 90 - .../org/apache/oodt/security/sso/DummyImpl.java | 102 - .../apache/oodt/security/sso/OpenSSOImpl.java | 190 -- .../apache/oodt/security/sso/SingleSignOn.java | 85 - .../oodt/security/sso/SingleSignOnFactory.java | 68 - .../security/sso/opensso/IdentityDetails.java | 136 - .../oodt/security/sso/opensso/SSOMetKeys.java | 81 - .../oodt/security/sso/opensso/SSOProxy.java | 308 -- .../sso/opensso/SingleSignOnException.java | 11 - .../oodt/security/sso/opensso/UserDetails.java | 97 - sso/src/main/php/pear/Config.php | 65 - sso/src/main/php/pear/SingleSignOn.php | 202 -- sso/src/main/php/pear/package.xml | 94 - vagrant/radix/README.txt | 51 - vagrant/radix/Vagrantfile | 129 - vagrant/radix/vagrant/conf/terminal/bashrc | 110 - vagrant/radix/vagrant/env.sh | 28 - vagrant/radix/vagrant/provision.sh | 70 - xmlps/.gitignore | 1 - xmlps/pom.xml | 146 - xmlps/src/main/conf/example-ps.xml | 71 - xmlps/src/main/conf/example.db.properties | 21 - .../oodt/xmlps/exceptions/XmlpsException.java | 27 - .../oodt/xmlps/mapping/DatabaseTable.java | 118 - .../oodt/xmlps/mapping/DatabaseTableGroup.java | 82 - .../apache/oodt/xmlps/mapping/FieldScope.java | 35 - .../apache/oodt/xmlps/mapping/FieldType.java | 35 - .../org/apache/oodt/xmlps/mapping/Mapping.java | 163 - .../apache/oodt/xmlps/mapping/MappingField.java | 251 -- .../oodt/xmlps/mapping/MappingReader.java | 206 -- .../xmlps/mapping/MappingReaderMetKeys.java | 65 - .../oodt/xmlps/mapping/funcs/MappingFunc.java | 64 - .../oodt/xmlps/mapping/funcs/ReplaceFunc.java | 77 - .../apache/oodt/xmlps/product/DBMSExecutor.java | 68 - .../oodt/xmlps/product/XMLPSProductHandler.java | 390 --- .../apache/oodt/xmlps/profile/DBMSExecutor.java | 169 - .../oodt/xmlps/profile/XMLPSProfileHandler.java | 200 -- .../oodt/xmlps/queryparser/AndExpression.java | 30 - .../xmlps/queryparser/ContainsExpression.java | 30 - .../xmlps/queryparser/EqualsExpression.java | 30 - .../oodt/xmlps/queryparser/Expression.java | 34 - .../GreaterThanEqualsExpression.java | 31 - .../queryparser/GreaterThanExpression.java | 31 - .../xmlps/queryparser/HandlerQueryParser.java | 132 - .../queryparser/LessThanEqualsExpression.java | 33 - .../xmlps/queryparser/LessThanExpression.java | 33 - .../apache/oodt/xmlps/queryparser/Literal.java | 39 - .../oodt/xmlps/queryparser/LogOpExpression.java | 79 - .../oodt/xmlps/queryparser/OrExpression.java | 30 - .../oodt/xmlps/queryparser/ParseConstants.java | 65 - .../oodt/xmlps/queryparser/RelOpExpression.java | 75 - .../oodt/xmlps/queryparser/WildcardLiteral.java | 48 - .../apache/oodt/xmlps/structs/CDEResult.java | 181 -- .../xmlps/structs/CDEResultInputStream.java | 121 - .../org/apache/oodt/xmlps/structs/CDERow.java | 70 - .../org/apache/oodt/xmlps/structs/CDEValue.java | 74 - .../xmlps/util/GenericCDEObjectFactory.java | 70 - .../apache/oodt/xmlps/util/XMLQueryHelper.java | 38 - .../apache/oodt/xmlps/util/XMLQueryKeys.java | 30 - .../oodt/xmlps/mapping/TestMappingReader.java | 165 - .../xmlps/product/TestXMLPSProductHandler.java | 182 -- .../xmlps/profile/TestXMLPSProfileHandler.java | 71 - .../queryparser/TestHandlerQueryParser.java | 111 - .../oodt/xmlps/structs/TestCDEResult.java | 122 - .../xmlps/structs/TestCDEResultInputStream.java | 137 - xmlps/src/test/resources/loging.properties | 34 - xmlps/src/test/resources/test-ps.xml | 120 - .../test/resources/test-required-tables-ps.xml | 71 - .../test/resources/test-same-col-name-ps.xml | 63 - xmlquery/.gitignore | 1 - xmlquery/pom.xml | 128 - xmlquery/src/main/conf/mime.properties | 407 --- xmlquery/src/main/dtd/query.dtd | 100 - .../oodt/product/HttpRedirectException.java | 40 - .../apache/oodt/product/ProductException.java | 62 - .../java/org/apache/oodt/product/Retriever.java | 46 - .../apache/oodt/xmlquery/ByteArrayCodec.java | 63 - .../java/org/apache/oodt/xmlquery/Codec.java | 85 - .../org/apache/oodt/xmlquery/CodecFactory.java | 60 - .../oodt/xmlquery/CompressedObjectCodec.java | 110 - .../oodt/xmlquery/CompressedStringCodec.java | 91 - .../java/org/apache/oodt/xmlquery/Header.java | 211 -- .../org/apache/oodt/xmlquery/ObjectCodec.java | 106 - .../org/apache/oodt/xmlquery/QueryElement.java | 148 - .../apache/oodt/xmlquery/QueryException.java | 37 - .../org/apache/oodt/xmlquery/QueryHeader.java | 304 -- .../org/apache/oodt/xmlquery/QueryResult.java | 151 - .../java/org/apache/oodt/xmlquery/Result.java | 447 --- .../java/org/apache/oodt/xmlquery/Results.java | 60 - .../org/apache/oodt/xmlquery/Statistic.java | 155 - .../org/apache/oodt/xmlquery/StringCodec.java | 51 - .../oodt/xmlquery/UnsupportedMimeTypeCodec.java | 44 - .../java/org/apache/oodt/xmlquery/XMLQuery.java | 981 ------ .../xmlquery/activity/QueryConstructed.java | 23 - .../oodt/xmlquery/activity/ResultsReceived.java | 23 - .../java/org/apache/oodt/xmlquery/package.html | 26 - .../src/site/resources/images/edm-query.jpg | Bin 57650 -> 0 bytes .../src/site/resources/images/large-stack.png | Bin 41424 -> 0 bytes .../src/site/resources/images/large-stack.psd | Bin 282874 -> 0 bytes xmlquery/src/site/resources/images/results.png | Bin 53580 -> 0 bytes xmlquery/src/site/resources/images/results.psd | Bin 275480 -> 0 bytes .../src/site/resources/images/small-stack.png | Bin 12368 -> 0 bytes .../src/site/resources/images/small-stack.psd | Bin 89725 -> 0 bytes xmlquery/src/site/resources/images/xmlquery.png | Bin 85734 -> 0 bytes xmlquery/src/site/resources/images/xmlquery.psd | Bin 352069 -> 0 bytes xmlquery/src/site/site.xml | 33 - xmlquery/src/site/xdoc/disquery/index.xml | 106 - xmlquery/src/site/xdoc/servlet/index.xml | 640 ---- xmlquery/src/site/xdoc/tutorial/index.xml | 659 ---- .../apache/oodt/xmlquery/CodecFactoryTest.java | 61 - .../org/apache/oodt/xmlquery/CodecTest.java | 77 - .../xmlquery/CompressedObjectCodecTest.java | 42 - .../xmlquery/CompressedStringCodecTest.java | 37 - .../oodt/xmlquery/EmptyByteArrayCodecTest.java | 51 - .../org/apache/oodt/xmlquery/HeaderTest.java | 142 - .../apache/oodt/xmlquery/ObjectCodecTest.java | 42 - .../apache/oodt/xmlquery/QueryElementTest.java | 93 - .../org/apache/oodt/xmlquery/ResultTest.java | 166 - .../apache/oodt/xmlquery/StringCodecTest.java | 37 - .../org/apache/oodt/xmlquery/XMLQueryTest.java | 225 -- 870 files changed, 103981 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/fmbrowser/pom.xml ---------------------------------------------------------------------- diff --git a/app/fmbrowser/pom.xml b/app/fmbrowser/pom.xml deleted file mode 100644 index f266b2e..0000000 --- a/app/fmbrowser/pom.xml +++ /dev/null @@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Licensed to the Apache Software Foundation (ASF) under one or more contributor -license agreements. See the NOTICE.txt file distributed with this work for -additional information regarding copyright ownership. The ASF licenses this -file to you under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.apache.oodt</groupId> - <artifactId>oodt-core</artifactId> - <version>1.1-SNAPSHOT</version> - <relativePath>../../core/pom.xml</relativePath> - </parent> - <artifactId>cas-fm-browser</artifactId> - <name>Catalog and Archive File Management Browser</name> - <description>The graphical front-end interface to the Catalog and Archive Service. This component - provides the user of the CAS File Manager with a graphical environment in which they - can view archived products' metadata, query for products with particular metadata, - and export results of queries to the MS Excel(c) file format.</description> - <!-- All dependencies should be listed in core/pom.xml and be ordered alphabetically by package and artifact. - Once the dependency is in the core pom, it can then be used in other modules without the version tags. - For example, within core/pom.xml: - - <dependency> - <groupId>com.amazonaws</groupId> - <artifactId>aws-java-sdk</artifactId> - <version>1.7.4</version> - </dependency> - - Elsewhere in the platform: - <dependency> - <groupId>com.amazonaws</groupId> - <artifactId>aws-java-sdk</artifactId> - </dependency> - - Where possible the same dependency version should be used across the whole platform but if required the version - can be overridden in a specific pom and should have a comment explaing why the version has been overridden ---> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.oodt</groupId> - <artifactId>cas-filemgr</artifactId> - </dependency> - <dependency> - <groupId>org.apache.oodt</groupId> - <artifactId>cas-metadata</artifactId> - </dependency> - <dependency> - <groupId>org.apache.poi</groupId> - <artifactId>poi</artifactId> - </dependency> - - - </dependencies> - <build> - <plugins /> - </build> - <scm> - <!--<connection>scm:svn:https://svn.apache.org/repos/asf/oodt/trunk/app/fmbrowser</connection> - <developerConnection>scm:svn:https://svn.apache.org/repos/asf/oodt/trunk/app/fmbrowser</developerConnection> - <url>http://svn.apache.org/viewvc/oodt/trunk/app/fmbrowser</url>--> - <tag>0.13-SNAPSHOT</tag> - </scm> -</project> http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/fmbrowser/src/main/bin/filemgr-browser ---------------------------------------------------------------------- diff --git a/app/fmbrowser/src/main/bin/filemgr-browser b/app/fmbrowser/src/main/bin/filemgr-browser deleted file mode 100644 index f6d3881..0000000 --- a/app/fmbrowser/src/main/bin/filemgr-browser +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -# -# init script for XmlRpcFileManager -# -# chkconfig: 345 88 22 -# description: CAS File Manager Browser -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE.txt file distributed with -# this work for additional information regarding copyright ownership. The ASF -# licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -# $Id$ - -[ -f /etc/sysconfig/java ] && . /etc/sysconfig/java -#[ -f /etc/sysconfig/cas-filemgr] && . /etc/sysconfig/cas-filemgr - -JAVA_HOME=/path/to/java/home -export JAVA_HOME -FILEMGR_BROWSER_HOME=.. -export FILEMGR_BROWSER_HOME - -PATH=${JAVA_HOME}/bin:${FILEMGR_BROWSER_HOME}/bin:/usr/bin:/bin:/usr/sbin:/sbin -export PATH - -$JAVA_HOME/bin/java -Djava.ext.dirs=${FILEMGR_BROWSER_HOME}/lib \ - org.apache.oodt.cas.filemgr.browser.system.XmlRpcFilemgrBrowser & http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/TableListener.java ---------------------------------------------------------------------- diff --git a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/TableListener.java b/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/TableListener.java deleted file mode 100644 index 7f49328..0000000 --- a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/TableListener.java +++ /dev/null @@ -1,172 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.oodt.cas.filemgr.browser.controller; - -import org.apache.oodt.cas.filemgr.browser.view.menus.RightClickMenu; -import org.apache.oodt.cas.filemgr.browser.view.panels.HeaderCell; -import org.apache.oodt.cas.filemgr.browser.view.panels.HeaderSpacer; -import org.apache.oodt.cas.filemgr.browser.view.panels.Row; -import org.apache.oodt.cas.filemgr.browser.view.panels.TablePane; -import org.apache.poi.hssf.usermodel.HSSFRow; -import org.apache.poi.hssf.usermodel.HSSFSheet; -import org.apache.poi.hssf.usermodel.HSSFWorkbook; - -import java.awt.Component; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; -import java.awt.event.MouseEvent; -import java.awt.event.MouseListener; -import java.io.FileOutputStream; -import java.util.logging.Level; -import java.util.logging.Logger; - -import javax.swing.JFileChooser; - -public class TableListener implements MouseListener, ActionListener { - - private static Logger LOG = Logger.getLogger(TableListener.class.getName()); - - private Component caller; - private TablePane table; - private int mousePos; - private RightClickMenu rcMenu; - - public TableListener(TablePane t) { - table = t; - mousePos = -1; - caller = null; - rcMenu = new RightClickMenu(this); - - } - - public void mouseClicked(MouseEvent arg0) { - } - - public void mouseEntered(MouseEvent arg0) { - } - - public void mouseExited(MouseEvent e) { - } - - public void mousePressed(MouseEvent e) { - caller = e.getComponent(); - mousePos = e.getX() + caller.getX(); - } - - public void mouseReleased(MouseEvent e) { - if (caller != null) { - if (caller instanceof HeaderSpacer) { - HeaderSpacer hsCaller = (HeaderSpacer) caller; - if (e.getModifiers() == 18 - && table.hiddenCols.contains(Integer.valueOf(hsCaller.getColNum() + 1))) { - rcMenu.setUnhideMode(); - rcMenu.show(caller, e.getX(), e.getY()); - - } else { - int change = e.getX() + caller.getX() - mousePos; - int curWidth = table.header.getWidth(hsCaller.getColNum()); - table.header.changeWidth(hsCaller.getColNum(), curWidth + change); - - for (int i = 1; i < table.getComponentCount(); i++) { - ((Row) table.getComponent(i)).changeWidth(((HeaderSpacer) caller) - .getColNum(), curWidth + change + 2); - } - caller = null; - } - } else { - if (caller instanceof HeaderCell && e.getModifiers() == 18) { - rcMenu.setHideMode(); - rcMenu.show(caller, e.getX(), e.getY()); - - } - } - } - - } - - public void actionPerformed(ActionEvent arg0) { - if (arg0.getActionCommand().equals("Hide")) { - if (caller != null) { - int colNum = ((HeaderCell) caller).getColNum(); - table.hideColumn(colNum); - caller = null; - } - } else if (arg0.getActionCommand().equals("Unhide")) { - if (caller != null) { - int colNum = ((HeaderSpacer) caller).getColNum() + 1; - table.unhideColumn(colNum); - caller = null; - } - } else if (arg0.getActionCommand().equals("Unhide Columns")) { - while (!table.hiddenCols.isEmpty()) { - table.unhideColumn(table.hiddenCols.firstElement()); - } - } else if (arg0.getActionCommand().equals("Export Table")) { - - final JFileChooser fc = new JFileChooser(); - int returnVal = fc.showSaveDialog(table); - if (returnVal == JFileChooser.APPROVE_OPTION) { - - // write out excel file - String fullFileName = (fc.getSelectedFile()).getAbsolutePath(); - if (!fullFileName.endsWith(".xls")) { - fullFileName += ".xls"; - } - - HSSFWorkbook wb = new HSSFWorkbook(); - HSSFSheet sheet = wb.createSheet("results"); - HSSFRow headerRow = sheet.createRow((short) 0); - - int i = 0; - for (int j = 0; j < table.getRow(0).getComponentCount(); j++) { - if (!table.hiddenCols.contains(Integer.valueOf(j))) { - headerRow.createCell((short) i).setCellValue( - table.header.getText(j)); - i++; - } - } - - for (int k = 0; k < table.getComponentCount() - 1; k++) { - HSSFRow row = sheet.createRow((short) k + 1); - i = 0; - for (int j = 0; j < table.getRow(0).getComponentCount(); j++) { - if (!table.hiddenCols.contains(j)) { - row.createCell((short) i).setCellValue( - (table.getRow(k)).getText(j)); - i++; - } - } - } - - FileOutputStream fileOut; - try { - - fileOut = new FileOutputStream(fullFileName); - wb.write(fileOut); - fileOut.close(); - - } catch (Exception e) { - LOG.log(Level.SEVERE, e.getMessage()); - } - } - - } - - } - -} http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/WindowListener.java ---------------------------------------------------------------------- diff --git a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/WindowListener.java b/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/WindowListener.java deleted file mode 100644 index 81fd721..0000000 --- a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/WindowListener.java +++ /dev/null @@ -1,166 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.oodt.cas.filemgr.browser.controller; - -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; - -import javax.swing.JButton; -import javax.swing.JOptionPane; - -import org.apache.oodt.cas.filemgr.browser.model.CasDB; -import org.apache.oodt.cas.filemgr.browser.view.MainWindow; -import org.apache.oodt.cas.filemgr.browser.view.prompts.ConnectPrompt; -import org.apache.oodt.cas.filemgr.browser.view.prompts.QueryBuilderPrompt; -import org.apache.oodt.cas.filemgr.browser.view.prompts.SortPrompt; - -public class WindowListener implements ActionListener { - - private MainWindow window; - private ConnectPrompt prompt; - private SortPrompt sort; - private QueryBuilderPrompt query; - - private CasDB db; - - public WindowListener(MainWindow m) { - window = m; - db = new CasDB(); - } - - public void actionPerformed(ActionEvent arg0) { - if (arg0.getActionCommand().equals("About")) { - String aboutInfo = "OODT Catalog and Archive Server File Manger Browser.\n" - + "Copyright (c) 2010, Apache Software Foundation."; - JOptionPane.showMessageDialog(window, aboutInfo); - } else if (arg0.getActionCommand().equals("Query Language")) { - String aboutQueryLanguage = "The CAS File Manager Browser uses the Lucene Query Language.\n" - + "More Information can be found at:\n" - + "http://lucene.apache.org/java/docs/queryparsersyntax.html"; - JOptionPane.showMessageDialog(window, aboutQueryLanguage); - } else if (arg0.getActionCommand().equals("Exit")) { - String exitWarning = "Are you sure you want to exit the CAS File Manager Browser?\n" - + "All unexported queries will be lost."; - int returnVal = JOptionPane.showConfirmDialog(window, exitWarning, - "Exit", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); - if (returnVal == JOptionPane.OK_OPTION) { - System.exit(0); - } - } else if (arg0.getActionCommand().equals("Connect...")) { - // this is from the main menu - window.bar.changeConnectStatus(); - prompt = new ConnectPrompt(this); - prompt.pack(); - prompt.setVisible(true); - } else if (arg0.getActionCommand().equals("Disconnect")) { - String disconnectWarning = "Are you sure you want to disconnect from this File Manager?\n" - + "All unexported queries will be lost."; - int returnVal = JOptionPane.showConfirmDialog(window, disconnectWarning, - "Disconnect", JOptionPane.OK_CANCEL_OPTION, - JOptionPane.WARNING_MESSAGE); - if (returnVal == JOptionPane.OK_OPTION) { - window.bar.changeConnectStatus(); - db.disconnect(); - window.mPane.tPane.setBlank(); - window.qPane.updateTypes(new String[] { "" }); - window.bPane.changeStatus("Disconnected"); - } - } else if (arg0.getActionCommand().equals("Cancel")) { - if (((JButton) arg0.getSource()).getName().equals("ConnectCancel")) { - prompt.dispose(); - window.bar.changeConnectStatus(); - } else if (((JButton) arg0.getSource()).getName().equals("SortCancel")) { - sort.dispose(); - } - } else if (arg0.getActionCommand().equals("Connect")) { - // this is from the connect prompt - boolean connected = db.connect(prompt.getCASUrl()); - if (connected) { - window.qPane.updateTypes(db.getAvailableTypes()); - window.bPane.changeStatus("Connected to " + prompt.getCASUrl()); - } else { - window.bar.changeConnectStatus(); - String errorConnectingString = "Error Connecting to CAS File Manager at this following address:" - + prompt.getCASUrl(); - JOptionPane.showMessageDialog(window, errorConnectingString, "Error", - JOptionPane.ERROR_MESSAGE); - } - prompt.dispose(); - } else if (arg0.getActionCommand().equals("Sort")) { - sort = new SortPrompt(window, this); - sort.pack(); - sort.setVisible(true); - } else if (arg0.getActionCommand().equals("Query Builder")) { - if (db.isConnected()) { - query = new QueryBuilderPrompt(db, this); - query.pack(); - query.setVisible(true); - } else { - String errorQueryString = "You must connect to a CAS File Manager before using the Query Builder."; - JOptionPane.showMessageDialog(window, errorQueryString, "Disconnected", - JOptionPane.WARNING_MESSAGE); - } - } else if (arg0.getActionCommand().equals("OK")) { - window.mPane.tPane.sortRows(sort.getSortIndex(), sort.getSortType()); - sort.dispose(); - } else if (arg0.getActionCommand().equals("Search")) { - if (((JButton) arg0.getSource()).getName().equals("AdvancedQuery")) { - if (db.isConnected()) { - window.bPane.changeStatus("Querying the CAS..."); - boolean result = db.issueQuery(query.getQuery(), query - .getProductType()); - if (result) { - window.mPane.tPane.newTable(db.results.getData()); - window.bPane.changeStatus("Query: " + query.getQueryString() - + " returned " + db.results.getNumRecords() + " records."); - } else { - window.mPane.tPane.setBlank(); - window.bPane.changeStatus("Query failed."); - window.qPane.clearQuery(); - } - } - query.dispose(); - } else { - if (db.isConnected()) { - window.bPane.changeStatus("Querying the CAS..."); - String query = window.qPane.getQuery(); - boolean result = db.createQuery(query, window.qPane.getType()); - if (result) { - window.mPane.tPane.newTable(db.results.getData()); - window.bPane.changeStatus("Query: " + query + " returned " - + db.results.getNumRecords() + " records."); - } else { - window.mPane.tPane.setBlank(); - window.bPane.changeStatus("Query failed."); - window.qPane.clearQuery(); - } - } - } - } else if (arg0.getActionCommand().equals("Clear Query")) { - String clearWarning = "Are you sure you want to clear the current Query?\n" - + "All unexported queries will be lost."; - int returnVal = JOptionPane.showConfirmDialog(window, clearWarning, - "Clear", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); - if (returnVal == JOptionPane.OK_OPTION) { - window.mPane.tPane.setBlank(); - window.bPane.changeStatus("Query cleared."); - } - } - } - -} http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/model/CasDB.java ---------------------------------------------------------------------- diff --git a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/model/CasDB.java b/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/model/CasDB.java deleted file mode 100644 index ef7109e..0000000 --- a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/model/CasDB.java +++ /dev/null @@ -1,187 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.oodt.cas.filemgr.browser.model; - -import org.apache.oodt.cas.filemgr.structs.Element; -import org.apache.oodt.cas.filemgr.structs.Product; -import org.apache.oodt.cas.filemgr.structs.ProductType; -import org.apache.oodt.cas.filemgr.structs.exceptions.RepositoryManagerException; -import org.apache.oodt.cas.filemgr.structs.exceptions.ValidationLayerException; -import org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient; -import org.apache.oodt.cas.metadata.Metadata; - -import java.net.URL; -import java.util.Vector; -import java.util.logging.Level; -import java.util.logging.Logger; - -public class CasDB { - - public static final int INT = 20; - URL filemgrUrl; - XmlRpcFileManagerClient client; - public Results results; - private static Logger LOG = Logger.getLogger(CasDB.class.getName()); - private static String freeTextBlock = "__FREE__"; - - public CasDB() { - filemgrUrl = null; - } - - public boolean connect(String cas) { - try { - filemgrUrl = new URL(cas); - client = new XmlRpcFileManagerClient(filemgrUrl); - } catch (Exception e) { - filemgrUrl = null; - return false; - } - return true; - } - - public boolean disconnect() { - filemgrUrl = null; - return true; - } - - public boolean isConnected() { - return filemgrUrl != null; - } - - public String[] getAvailableTypes() { - String[] types = null; - if (filemgrUrl != null) { - try { - Vector<ProductType> v = (Vector<ProductType>) client.getProductTypes(); - types = new String[v.size()]; - - } catch (RepositoryManagerException e) { - LOG.log(Level.SEVERE, e.getMessage()); - } - - } else { - types = new String[1]; - types[0] = ""; - } - - return types; - } - - public String[] getAvailableElements(String productTypeName) { - String[] elements = null; - if (filemgrUrl != null) { - try { - ProductType pt = client.getProductTypeByName(productTypeName); - Vector<Element> v = (Vector<Element>) client - .getElementsByProductType(pt); - elements = new String[v.size()]; - - } catch (Exception e) { - LOG.log(Level.SEVERE, e.getMessage()); - } - } else { - elements = new String[1]; - elements[0] = ""; - } - return elements; - } - - public String getElementID(String elementName) { - String elementID = ""; - Element e; - try { - e = client.getElementByName(elementName); - elementID = e.getElementId(); - } catch (ValidationLayerException ignored) { - } - return elementID; - } - - public boolean issueQuery(org.apache.oodt.cas.filemgr.structs.Query query, - String productType) { - results = new Results(); - try { - ProductType type = client.getProductTypeByName(productType); - Vector<Product> products = (Vector<Product>) client.query(query, type); - int maxVal = INT; - if (products.size() < maxVal) { - maxVal = products.size(); - } - for (int i = 0; i < maxVal; i++) { - Metadata m = client.getMetadata(products.get(i)); - results.addProduct(m); - } - } catch (Exception e) { - return false; - } - - return true; - } - - public boolean createQuery(String queryText, String productType) { - - results = new Results(); - if (queryText.trim().equals("*")) { - ProductType type; - try { - type = client.getProductTypeByName(productType); - Vector<Product> products = (Vector<Product>) client - .getProductsByProductType(type); - int maxVal = INT; - if (products.size() < maxVal) { - maxVal = products.size(); - } - for (int i = 0; i < maxVal; i++) { - Metadata m = client.getMetadata(products.get(i)); - results.addProduct(m); - } - } catch (Exception e) { - return false; - } - - } else { - - QueryBuilder qb = new QueryBuilder(this); - org.apache.oodt.cas.filemgr.structs.Query casQ = qb.ParseQuery(queryText); - ProductType type; - try { - type = client.getProductTypeByName(productType); - Vector<Product> products = (Vector<Product>) client.query(casQ, type); - int maxVal = INT; - if (products.size() < maxVal) { - maxVal = products.size(); - } - for (int i = 0; i < maxVal; i++) { - Metadata m = client.getMetadata(products.get(i)); - results.addProduct(m); - } - } catch (Exception e) { - return false; - } - - } - - return true; - } - - public boolean clearQuery() { - results = null; - return true; - } - -} http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/model/QueryBuilder.java ---------------------------------------------------------------------- diff --git a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/model/QueryBuilder.java b/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/model/QueryBuilder.java deleted file mode 100644 index 3c08acb..0000000 --- a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/model/QueryBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.oodt.cas.filemgr.browser.model; - -import org.apache.lucene.index.Term; -import org.apache.lucene.queryparser.classic.QueryParser; -import org.apache.lucene.search.*; -import org.apache.lucene.util.BytesRef; -import org.apache.oodt.cas.filemgr.structs.Query; -import org.apache.oodt.cas.filemgr.structs.RangeQueryCriteria; -import org.apache.oodt.cas.filemgr.structs.TermQueryCriteria; -import org.apache.oodt.cas.filemgr.tools.CASAnalyzer; - -import java.util.List; -import java.util.logging.Level; -import java.util.logging.Logger; - -public class QueryBuilder { - - private CasDB database; - private static Logger LOG = Logger.getLogger(QueryBuilder.class.getName()); - public QueryBuilder(CasDB db) { - database = db; - } - - public Query ParseQuery(String query) { - // note that "__FREE__" is a control work for free text searching - QueryParser parser = new QueryParser("__FREE__", new CASAnalyzer()); - - org.apache.lucene.search.Query luceneQ = null; - org.apache.oodt.cas.filemgr.structs.Query casQ = new org.apache.oodt.cas.filemgr.structs.Query(); - - try { - luceneQ = parser.parse(query); - } catch (org.apache.lucene.queryparser.classic.ParseException e) { - // TODO Auto-generated catch block - LOG.log(Level.SEVERE, e.getMessage()); - } - - System.out.println(luceneQ != null ? luceneQ.toString() : null); - GenerateCASQuery(casQ, luceneQ); - - return casQ; - } - - public void GenerateCASQuery(org.apache.oodt.cas.filemgr.structs.Query casQ, - org.apache.lucene.search.Query luceneQ) { - if (luceneQ instanceof TermQuery) { - Term t = ((TermQuery) luceneQ).getTerm(); - if (!t.field().equals("__FREE__")) { - String element = database.getElementID(t.field()); - if (!element.equals("") && !t.text().equals("")) { - - casQ.addCriterion(new TermQueryCriteria(element, t.text())); - } - } - } else if (luceneQ instanceof PhraseQuery) { - Term[] t = ((PhraseQuery) luceneQ).getTerms(); - if (!t[0].field().equals("__FREE__")) { - for (Term aT : t) { - String element = database.getElementID(aT.field()); - if (!element.equals("") && !aT.text().equals("")) { - casQ.addCriterion(new TermQueryCriteria(element, aT.text())); - } - } - } - } else if (luceneQ instanceof TermRangeQuery) { - BytesRef startT = ((TermRangeQuery) luceneQ).getLowerTerm(); - BytesRef endT = ((TermRangeQuery) luceneQ).getUpperTerm(); - String element = database.getElementID(((TermRangeQuery) luceneQ).getField()); - if (!element.equals("") && !startT.utf8ToString().equals("") - && !endT.utf8ToString().equals("")) { - casQ.addCriterion(new RangeQueryCriteria(element, startT.utf8ToString(), endT - .utf8ToString())); - } - } else if (luceneQ instanceof BooleanQuery) { - List<BooleanClause> clauses = ((BooleanQuery) luceneQ).clauses(); - for (BooleanClause clause : clauses) { - GenerateCASQuery(casQ, (clause).getQuery()); - } - } else { - System.out.println("Error Parsing Query"); - System.exit(-1); - } - } - -} http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/model/Results.java ---------------------------------------------------------------------- diff --git a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/model/Results.java b/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/model/Results.java deleted file mode 100644 index 248067e..0000000 --- a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/model/Results.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.oodt.cas.filemgr.browser.model; - -import org.apache.oodt.cas.metadata.Metadata; - -import java.util.Enumeration; -import java.util.Hashtable; -import java.util.Vector; - -public class Results { - - public Vector<Metadata> products; - - public Results() { - products = new Vector<Metadata>(); - } - - public void addProduct(Metadata m) { - products.add(m); - } - - public int getNumRecords() { - return products.size(); - } - - public String[][] getData() { - - String[][] data = null; - if (products.size() > 0) { - data = new String[products.size() + 1][]; - - Hashtable hash = products.firstElement().getHashTable(); - int numCols = hash.size(); - data[0] = new String[numCols]; - int i = 0; - for (Enumeration e = hash.keys(); e.hasMoreElements();) { - data[0][i] = e.nextElement().toString(); - System.out.println(data[0][i]); - i++; - } - - for (int j = 0; j < products.size(); j++) { - data[j + 1] = new String[i]; - for (int k = 0; k < i; k++) { - data[j + 1][k] = products.get(j).getMetadata(data[0][k]); - } - } - - } - return data; - } -} http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/system/XmlRpcFilemgrBrowser.java ---------------------------------------------------------------------- diff --git a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/system/XmlRpcFilemgrBrowser.java b/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/system/XmlRpcFilemgrBrowser.java deleted file mode 100644 index 0ac9caf..0000000 --- a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/system/XmlRpcFilemgrBrowser.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.oodt.cas.filemgr.browser.system; - -import org.apache.oodt.cas.filemgr.browser.view.MainWindow; - -public class XmlRpcFilemgrBrowser { - - private static MainWindow window; - - public static void main(String args[]) { - javax.swing.SwingUtilities.invokeLater(new Runnable() { - public void run() { - window = new MainWindow(); - window.pack(); - window.setVisible(true); - } - }); - } -} http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/view/GuiParams.java ---------------------------------------------------------------------- diff --git a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/view/GuiParams.java b/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/view/GuiParams.java deleted file mode 100644 index 7f12da5..0000000 --- a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/view/GuiParams.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.oodt.cas.filemgr.browser.view; - -public class GuiParams { - - public static final int WINDOW_WIDTH = 600; - public static final int WINDOW_HEIGHT = 400; - - public static final int DEFAULT_CELL_WIDTH = 70; - public static final int DEFAULT_CELL_HEIGHT = 20; - -}
