git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerCore@5135 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c6e42a5d4b
commit
3e381d5793
|
@ -19,7 +19,8 @@ import org.gcube.vremanagement.softwarerepository.stubs.GetMessage;
|
|||
import org.gcube.vremanagement.softwarerepository.stubs.ListScopedPackagesMessage;
|
||||
import org.gcube.vremanagement.softwarerepository.stubs.ListScopedPackagesMessageScope;
|
||||
import org.gcube.vremanagement.softwarerepository.stubs.SoftwareRepositoryPortType;
|
||||
import org.gcube.vremanagement.softwarerepository.stubs.StoreMessage;
|
||||
import org.gcube.vremanagement.softwarerepository.stubs.Store;
|
||||
import org.gcube.vremanagement.softwarerepository.stubs.StoreItem;
|
||||
import org.gcube.vremanagement.softwarerepository.stubs.service.SoftwareRepositoryServiceAddressingLocator;
|
||||
|
||||
import com.sun.org.omg.SendingContext.CodeBasePackage.URLSeqHelper;
|
||||
|
@ -114,12 +115,14 @@ public class SoftwareRepository implements SoftwareRepositoryI{
|
|||
SoftwareRepositoryPortType srPort = getSRPortType();
|
||||
String[] scopes = new String[1];
|
||||
scopes[0] = session.getScopeName();
|
||||
StoreMessage storeMsg = new StoreMessage();
|
||||
storeMsg.setDescription(description);
|
||||
storeMsg.setScopes(scopes);
|
||||
storeMsg.setServiceClass(serviceClass);
|
||||
storeMsg.setServiceName(serviceName);
|
||||
storeMsg.setServiceVersion(serviceVersion);
|
||||
Store storeMsg = new Store();
|
||||
StoreItem[] storeMessage = new StoreItem[1];
|
||||
storeMessage[0].setDescription(description);
|
||||
storeMessage[0].setScopes(scopes);
|
||||
storeMessage[0].setServiceClass(serviceClass);
|
||||
storeMessage[0].setServiceName(serviceName);
|
||||
storeMessage[0].setServiceVersion(serviceVersion);
|
||||
storeMsg.setStoreMessage(storeMessage);
|
||||
try {
|
||||
return srPort.store(storeMsg);
|
||||
} catch (GCUBEFault e) {
|
||||
|
|
Loading…
Reference in New Issue