@Beta public interface IntentDomainService extends ListenerService<IntentDomainEvent,IntentDomainListener>
Modifier and Type | Method and Description |
---|---|
IntentDomain |
getDomain(IntentDomainId id)
Returns the intent domain for the given id.
|
java.util.Set<IntentDomain> |
getDomains()
Returns a set of all intent domains.
|
java.util.Set<IntentDomain> |
getDomains(DeviceId deviceId)
Returns any network domains associated with the given device id.
|
java.util.List<IntentResource> |
request(IntentDomainId domainId,
IntentPrimitive primitive)
Requests an intent primitive from the intent domain.
|
void |
submit(IntentDomainId domainId,
IntentResource resource)
Submits an intent resource to the intent domain for installation.
|
addListener, removeListener
IntentDomain getDomain(IntentDomainId id)
id
- id to look upjava.util.Set<IntentDomain> getDomains()
java.util.Set<IntentDomain> getDomains(DeviceId deviceId)
deviceId
- device id to look upjava.util.List<IntentResource> request(IntentDomainId domainId, IntentPrimitive primitive)
domainId
- id of target domainprimitive
- intent primitivevoid submit(IntentDomainId domainId, IntentResource resource)
domainId
- id of target domainresource
- intent resource