public class ServiceUnit extends Object implements HasUniqueId
Modifier and Type | Field and Description |
---|---|
protected Set<Capability> |
capabilities |
protected ServiceCategory |
category |
protected Contract |
contract |
protected DomainEntity |
domain |
protected Set<ExtensibleModel> |
extra |
protected String |
name |
protected String |
uuid
This is the global ID in ELISE, is assigned at the time a service unit is created.
|
Constructor and Description |
---|
ServiceUnit() |
ServiceUnit(String name,
ServiceCategory category) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<String> |
findAllCapabilities() |
Set<Capability> |
getCapabilities() |
Capability |
getCapabilityByName(String name) |
ServiceCategory |
getCategory() |
Contract |
getContract() |
DomainEntity |
getDomain() |
Set<ExtensibleModel> |
getExtra() |
ExtensibleModel |
getExtraByClass(Class clazz) |
Long |
getGraphID() |
String |
getName() |
String |
getUuid() |
ServiceUnit |
hasCapabilities(Set<Capability> primitives) |
ServiceUnit |
hasCapability(Capability primitive) |
ServiceUnit |
hasExtra(ExtensibleModel extra) |
int |
hashCode() |
void |
setCapabilities(Set<Capability> capabilities) |
void |
setCategory(ServiceCategory category) |
void |
setContract(Contract contract) |
void |
setDomain(DomainEntity domain) |
void |
setExtra(Set<ExtensibleModel> extra) |
void |
setGraphID(Long graphID) |
void |
setName(String name) |
void |
setUuid(String uuid) |
String |
toJson() |
protected String uuid
protected String name
protected ServiceCategory category
protected Set<Capability> capabilities
protected DomainEntity domain
protected Contract contract
protected Set<ExtensibleModel> extra
public ServiceUnit()
public ServiceUnit(String name, ServiceCategory category)
public Capability getCapabilityByName(String name)
public ServiceUnit hasCapability(Capability primitive)
public ServiceUnit hasCapabilities(Set<Capability> primitives)
public ServiceUnit hasExtra(ExtensibleModel extra)
public String toJson()
public String getUuid()
getUuid
in interface HasUniqueId
public void setUuid(String uuid)
public String getName()
public void setName(String name)
public ServiceCategory getCategory()
public void setCategory(ServiceCategory category)
public Set<Capability> getCapabilities()
public void setCapabilities(Set<Capability> capabilities)
public DomainEntity getDomain()
public void setDomain(DomainEntity domain)
public Set<ExtensibleModel> getExtra()
public ExtensibleModel getExtraByClass(Class clazz)
public void setExtra(Set<ExtensibleModel> extra)
public Long getGraphID()
public void setGraphID(Long graphID)
public Contract getContract()
public void setContract(Contract contract)
Copyright © 2016. All Rights Reserved.