/*
* Copyright 2013 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.overlord.rtgov.ui.client.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.jboss.errai.common.client.api.annotations.Portable;
import org.jboss.errai.databinding.client.api.Bindable;
/**
* Models the full details of a service.
*
* @author eric.wittmann@redhat.com
*/
@Portable
@Bindable
public class ServiceBean implements Serializable {
private static final long serialVersionUID = ServiceBean.class.hashCode();
private String serviceId;
private QName name;
private QName application;
private String serviceInterface;
private List<ReferenceSummaryBean> references = new ArrayList<ReferenceSummaryBean>();
private String serviceGraph = "...";
/**
* Constructor.
*/
public ServiceBean() {
}
/**
* @return the serviceId
*/
public String getServiceId() {
return serviceId;
}
/**
* @return the name
*/
public QName getName() {
return name;
}
/**
* @return the application
*/
public QName getApplication() {
return application;
}
/**
* @return the serviceInterface
*/
public String getServiceInterface() {
return serviceInterface;
}
/**
* @return the references
*/
public List<ReferenceSummaryBean> getReferences() {
return references;
}
/**
* @return the serviceGraph
*/
public String getServiceGraph() {
return serviceGraph;
}
/**
* @param references the references to set
*/
public void setReferences(List<ReferenceSummaryBean> references) {
this.references = references;
}
/**
* @param serviceId the serviceId to set
*/
public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}
/**
* @param name the name to set
*/
public void setName(QName name) {
this.name = name;
}
/**
* @param application the application to set
*/
public void setApplication(QName application) {
this.application = application;
}
/**
* @param serviceInterface the serviceInterface to set
*/
public void setServiceInterface(String serviceInterface) {
this.serviceInterface = serviceInterface;
}
/**
* @param serviceGraph the serviceGraph to set
*/
public void setServiceGraph(String serviceGraph) {
this.serviceGraph = serviceGraph;
}
}