View Javadoc

1   /*
2   Copyright 2011-2014 AGH-UST, http://www.agh.edu.pl
3   Faculty of Computer Science, Electronics and Telecommunications
4   Department of Computer Science 
5   
6   See the NOTICE file distributed with this work for additional
7   information regarding copyright ownership
8   
9   Licensed under the Apache License, Version 2.0 (the "License");
10  you may not use this file except in compliance with the License.
11  You may obtain a copy of the License at
12  
13    http://www.apache.org/licenses/LICENSE-2.0
14  
15  Unless required by applicable law or agreed to in writing, software
16  distributed under the License is distributed on an "AS IS" BASIS,
17  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  See the License for the specific language governing permissions and
19  limitations under the License.
20  */
21  package org.universAAL.ri.gateway.eimanager.impl.importing;
22  
23  import java.util.List;
24  import java.util.Map;
25  
26  import org.universAAL.middleware.context.owl.ContextProvider;
27  import org.universAAL.middleware.service.owls.profile.ServiceProfile;
28  import org.universAAL.middleware.bus.member.BusMember;
29  import org.universAAL.middleware.ui.UIHandlerProfile;
30  import org.universAAL.ri.gateway.eimanager.ImportEntry;
31  import org.universAAL.ri.gateway.eimanager.impl.InternalEIOperation;
32  import org.universAAL.ri.gateway.eimanager.impl.registry.RepoOperation;
33  
34  public class InternalImportOperation extends InternalEIOperation {
35  
36      private String uuid;
37      private String remoteRegisteredProxyId;
38  
39      private Map<String, List<ServiceProfile>> realizedServices;
40  
41      private ContextProvider contextProvider;
42  
43      private UIHandlerProfile[] uiHandlerProfile;
44  
45      private ImportEntry importEntry;
46  
47      public InternalImportOperation(final BusMember member,
48  	    final RepoOperation op, final String uuid) {
49  	super(member, op);
50  	this.uuid = uuid;
51      }
52  
53      public String getRemoteRegisteredProxyId() {
54  	return remoteRegisteredProxyId;
55      }
56  
57      public void setRemoteRegisteredProxyId(final String remoteRegisteredProxyId) {
58  	this.remoteRegisteredProxyId = remoteRegisteredProxyId;
59      }
60  
61      public String getUuid() {
62  	return uuid;
63      }
64  
65      public void setUuid(final String uuid) {
66  	this.uuid = uuid;
67      }
68  
69      public ContextProvider getContextProvider() {
70  	return contextProvider;
71      }
72  
73      public void setContextProvider(final ContextProvider contextProvider) {
74  	this.contextProvider = contextProvider;
75      }
76  
77      public UIHandlerProfile[] getUiHandlerProfiles() {
78  	return uiHandlerProfile;
79      }
80  
81      public void setUiHandlerProfiles(final UIHandlerProfile uiHandlerProfile[]) {
82  	this.uiHandlerProfile = uiHandlerProfile;
83      }
84  
85      public ImportEntry getImportEntry() {
86  	return importEntry;
87      }
88  
89      public void setImportEntry(final ImportEntry importEntry) {
90  	if (this.importEntry != null) {
91  	    throw new IllegalArgumentException("Cannot do it twice");
92  	}
93  	this.importEntry = importEntry;
94      }
95  
96  	public Map<String, List<ServiceProfile>> getRealizedServices() {
97  		return realizedServices;
98  	}
99  
100 	public void setRealizedServices(Map<String, List<ServiceProfile>> realizedServices) {
101 		this.realizedServices = realizedServices;
102 	}
103 }
104