Class ManagementServiceComponentInformation
- java.lang.Object
-
- de.fraunhofer.iese.mydata.common.MyDataEntity
-
- de.fraunhofer.iese.mydata.component.information.ManagementServiceComponentInformation
-
@Entity public class ManagementServiceComponentInformation extends MyDataEntity
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull @Valid ComponentIdcomponentIdprotected @Valid @NotEmpty List<URI>urlsA list ofURIs that can be used to communicate with the component.
-
Constructor Summary
Constructors Modifier Constructor Description protectedManagementServiceComponentInformation()Default constructor for JPA.ManagementServiceComponentInformation(@NonNull ComponentId id, List<URI> urls)Constructs aManagementServiceComponentInformation, including its location (URI) and its usage (MethodInterfaceDescription).ManagementServiceComponentInformation(ComponentId id)Constructs aManagementServiceComponentInformationwithout URLs or ComponentInterface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUrl(@NonNull URI url)Adds a URL to the list ofURIs that can be used to communicate with the component.booleanequals(Object o)List<URI>getUrlsForProtocol(String... protocols)Provides a list of URLs of a certain protocol/scheme.inthashCode()voidsetUrls(@NonNull List<URI> urls)-
Methods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, toString, validate, validateAndNullCheck
-
-
-
-
Field Detail
-
componentId
@NotNull @Valid protected @NotNull @Valid ComponentId componentId
-
-
Constructor Detail
-
ManagementServiceComponentInformation
protected ManagementServiceComponentInformation()
Default constructor for JPA.
-
ManagementServiceComponentInformation
public ManagementServiceComponentInformation(ComponentId id)
Constructs aManagementServiceComponentInformationwithout URLs or ComponentInterface.- Parameters:
id- the id
-
ManagementServiceComponentInformation
public ManagementServiceComponentInformation(@NonNull @NonNull ComponentId id, List<URI> urls)Constructs aManagementServiceComponentInformation, including its location (URI) and its usage (MethodInterfaceDescription).- Parameters:
id- the idurls- a list ofURIs that can be used to communicate with theManagementServiceComponentInformation
-
-
Method Detail
-
addUrl
public void addUrl(@NonNull @NonNull URI url)Adds a URL to the list ofURIs that can be used to communicate with the component.- Parameters:
url- the url to add
-
getUrlsForProtocol
public List<URI> getUrlsForProtocol(String... protocols)
Provides a list of URLs of a certain protocol/scheme.- Parameters:
protocols- the list of protocols to be used linked by an "or" function- Returns:
- a list of
URIs that can be used to communicate with the component
-
-