Examples of PsmlManagerService


Examples of org.apache.jetspeed.services.psmlmanager.PsmlManagerService

            }

            //
            // get a handle to the exporter service
            //
            PsmlManagerService exporterService = null;
            PsmlManagerService importerService = null;

            try
            {
                exporterService = (PsmlManagerService)TurbineServices.getInstance().getService("PsmlImportManager");
            }
            catch (org.apache.turbine.services.InstantiationException e)
            {
                String msg = "PSML Importer: error loading Psml Exporter Service";
                data.setMessage(msg);
                Log.error(msg, e);
            }

            //
            // get a handle to the importer service
            //
            try
            {
                importerService = PsmlManager.getService();
            }
            catch (org.apache.turbine.services.InstantiationException e)
            {
                String msg = "PSML Importer: error loading Psml Importer Service";
                data.setMessage(msg);
                Log.error(msg, e);
            }

            if (exporterService.getClass().getName().equals(importerService.getClass().getName()))
            {
                String msg = "PSML Importer Error: Importer Class cannot equal Exporter Class.";
                data.setMessage(msg);
                Log.error(msg);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.