Class BasicManagementServiceComponentInformation
- java.lang.Object
-
- de.fraunhofer.iese.mydata.common.MyDataEntity
-
- de.fraunhofer.iese.mydata.component.information.BasicManagementServiceComponentInformation
-
@Entity public class BasicManagementServiceComponentInformation extends MyDataEntity
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull @Valid ComponentId
componentId
The unique ID.protected List<URI>
urls
A list ofURI
s that can be used to communicate with the component.
-
Constructor Summary
Constructors Modifier Constructor Description protected
BasicManagementServiceComponentInformation()
Default constructor for JPA.BasicManagementServiceComponentInformation(ComponentId id)
Constructs aBasicManagementServiceComponentInformation
without URLs or ComponentInterface.BasicManagementServiceComponentInformation(ComponentId id, List<URI> urls)
Constructs aBasicManagementServiceComponentInformation
, including its location (URI
) and its usage (MethodInterfaceDescription
).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addUrl(URI url)
Adds a URL to the list ofURI
s that can be used to communicate with the component.boolean
equals(Object o)
List<URI>
getUrlsForProtocol(String... protocols)
Provides a list of URLs of a certain protocol/scheme.int
hashCode()
void
setUrls(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
The unique ID.
-
-
Constructor Detail
-
BasicManagementServiceComponentInformation
protected BasicManagementServiceComponentInformation()
Default constructor for JPA.
-
BasicManagementServiceComponentInformation
public BasicManagementServiceComponentInformation(ComponentId id)
Constructs aBasicManagementServiceComponentInformation
without URLs or ComponentInterface.- Parameters:
id
- the id
-
BasicManagementServiceComponentInformation
public BasicManagementServiceComponentInformation(ComponentId id, List<URI> urls)
Constructs aBasicManagementServiceComponentInformation
, including its location (URI
) and its usage (MethodInterfaceDescription
).- Parameters:
id
- the idurls
- a list ofURI
s that can be used to communicate with theBasicManagementServiceComponentInformation
-
-
Method Detail
-
addUrl
public void addUrl(URI url)
Adds a URL to the list ofURI
s 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
URI
s that can be used to communicate with the component
-
-