Skip to content
Snippets Groups Projects
Commit 41215354 authored by Shanshan Jiang's avatar Shanshan Jiang
Browse files

Remove due to error in import path.

parent d3bd2208
No related branches found
No related tags found
No related merge requests found
package org.universAAL.ucc.deploymanagerservice.impl;
import java.util.Dictionary;
import java.util.Hashtable;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;
import org.universAAL.ucc.deploymanagerservice.DeployManagerService;
public class Activator implements BundleActivator {
private ServiceRegistration registration;
public void start(BundleContext bc) throws Exception {
Dictionary props = new Hashtable();
props.put("service.exported.interfaces", "*");
props.put("service.exported.configs", "org.apache.cxf.ws");
props.put("org.apache.cxf.ws.address", "http://localhost:9090/deploymanager");
registration = bc.registerService(DeployManagerService.class.getName(),
new DeployManagerServiceImpl(), props);
}
public void stop(BundleContext bc) throws Exception {
registration.unregister();
}
}
package org.universAAL.ucc.deploymanagerservice.impl;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;
import java.util.Map;
import org.universAAL.ucc.deploymanagerservice.DeployManagerService;
/**
* Implemenation of the DeployManager Web service
*
* @author sji
*
*/
public class DeployManagerServiceImpl implements DeployManagerService {
public void install(String sessionKey, String usrvfile) {
System.out.println("[DeployManagerService] Install with sessionKey: " + sessionKey + " for URL: " + usrvfile);
try {
URL usrvURL = new URL(usrvfile);
//TODO download the files and call Installer.install(usrvURL)
}
catch(MalformedURLException e)
{
System.out.println("[ERROR] Malformed URL Exception for " + usrvfile);
}
// TODO what check should be done with the sessionKey?
}
public void update(String sessionKey, String usrvfile) {
System.out.println("[DeployManagerService] Update with sessionKey: " + sessionKey + " for URL: " + usrvfile);
try {
URL usrvURL = new URL(usrvfile);
}
catch(MalformedURLException e)
{
System.out.println("[ERROR] Malformed URL Exception for " + usrvfile);
}
// TODO what check should be done with the sessionKey?
}
public void uninstall(String sessionKey, String serviceId) {
// TODO Auto-generated method stub
}
public String getInstalledServices(String sessionKey) {
// TODO Auto-generated method stub
return null;
}
public String getInstalledUnitsForService(String sessionKey, String serviceId) {
// TODO Auto-generated method stub
return null;
}
public String getAALSpaceProfile() {
// TODO Auto-generated method stub
return null;
}
public String getUserProfile(String sessionKey) {
// TODO Auto-generated method stub
return null;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment