Package edu.indiana.dlib.metsnav.config

Examples of edu.indiana.dlib.metsnav.config.DataSourceConfig


            try {
                collConfig = (CollectionConfig) Configurator.configure(confFile);

                String prefix = collConfig.getPrefix();
                context.setAttribute(Globals.INTERFACE_KEY + prefix, collConfig.getUserInterface());
                DataSourceConfig dsc = collConfig.getDataSource();
                dsc.setPathPrefix(context.getRealPath("/"));
                context.setAttribute(Globals.DATA_SOURCE_KEY + prefix, dsc);
                ParameterMapFactory pmf = ParameterMapFactory.newInstance();
                pmf.registerParameterMap(Globals.NAVIGATE_ACTION, collConfig.getDigitalImage());

                // TODO: generalize this
View Full Code Here


    JSONObject jo = new JSONObject();
        JSONArray array = new JSONArray();
        MetsObjectController controller = null;
        String json = null;
    try {
        DataSourceConfig dsConfig = new URLDataSource();
        dsConfig.setDaoType("edu.indiana.dlib.metsnav.dao.PersistentMetsFileDAO");
        CollectionConfig config = new CollectionConfig();
        config.setDataSource(dsConfig);
        controller = new MetsObjectController(config);       
          MetsObject metsObj = controller.getMetsObject(oid);
View Full Code Here

TOP

Related Classes of edu.indiana.dlib.metsnav.config.DataSourceConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.