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;
22  
23  import org.universAAL.middleware.bus.member.BusMember;
24  import org.universAAL.ri.gateway.eimanager.impl.importing.InternalImportOperation;
25  import org.universAAL.ri.gateway.eimanager.impl.registry.RegistryEntry;
26  
27  public class ImportEntry extends RegistryEntry {
28  
29      private BusMember member;
30      private String uuid;
31      private boolean success;
32      private String errorMessage;
33      
34      public ImportEntry(final String id, final BusMember member,
35  	    final String uuid, final InternalImportOperation operation, boolean success, String errorMessage) {
36  	super(id, operation);
37  	operation.setImportEntry(this);
38  	this.member = member;
39  	this.uuid = uuid;
40  	this.success = success;
41  	this.errorMessage = errorMessage;
42      }
43  
44      public BusMember getMember() {
45  	return member;
46      }
47  
48      public void setMember(final BusMember member) {
49  	this.member = member;
50      }
51  
52      public String getUuid() {
53  	return uuid;
54      }
55  
56      public void setUuid(final String uuid) {
57  	this.uuid = uuid;
58      }
59  
60  	public boolean isSuccess() {
61  		return success;
62  	}
63  
64  	public void setSuccess(boolean success) {
65  		this.success = success;
66  	}
67  
68  	public String getErrorMessage() {
69  		return errorMessage;
70  	}
71  
72  	public void setErrorMessage(String errorMessage) {
73  		this.errorMessage = errorMessage;
74  	}
75  
76  }