Package de.innovationgate.wgaservices.types

Examples of de.innovationgate.wgaservices.types.DatabaseInformation


               
                ExportWGAApplication wizard = (ExportWGAApplication) getWizard();
               
                TaskStatus taskStatus = _taskStatusMap.get(DBNAME_TASK);
                try {
                    DatabaseInformation dbInfo = new DatabaseInformation();
                    dbInfo.setImplementationClass(wizard.getRemoteDatabaseServer().getCreateableContentStoreImplemenations().get(0));
                    dbInfo.getOptions().put(ExportWGAApplication.CS_PATH_OPTION_NAME, wizard.getRemoteDatabaseName());
                    List<DatabaseInformation> dbInfos = wizard.getRemoteServer().getServices().getAvailableDatabases(wizard.getRemoteServer().getSession(), wizard.getRemoteDatabaseServer(), dbInfo.getImplementationClass());
                    if (dbInfos.contains(dbInfo)) {
                        taskStatus.setSeverity(TaskStatus.ERROR);
                        //taskStatus.setSeverityLabel("duplicate database name");
                        taskStatus.setMessage("A database with name '" + dbInfo.getOptions().get(ExportWGAApplication.CS_PATH_OPTION_NAME) + "' already exists on the database server.");
                        canFinish = false;
                    } else {
                        taskStatus.setSeverity(TaskStatus.OK);
                        taskStatus.setMessage("OK");                       
                    }
View Full Code Here


       
        if (requestedServer != null) {
            try {
                List<de.innovationgate.webgate.api.servers.DatabaseInformation> infos = requestedServer.getAvailableDatabases((Class<? extends WGDatabaseCore>) _core.getLibraryLoader().loadClass(implClassName));
                for (de.innovationgate.webgate.api.servers.DatabaseInformation info : infos) {
                    DatabaseInformation serviceInfo = new DatabaseInformation();
                    serviceInfo.setImplementationClass(info.getImplementationClass().getName());
                    serviceInfo.setOptions(info.getOptions());
                    result.add(serviceInfo);
                }
            }
            catch (Exception e) {
                throw new WGAServiceException(e);
View Full Code Here

TOP

Related Classes of de.innovationgate.wgaservices.types.DatabaseInformation

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.