Package org.openmuc.eebus.spine.spi
Interface FeaturePermission
-
public interface FeaturePermission
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
bindingAllowed(org.eebus.docs.spine.xsd.v1.NodeManagementBindingRequestCallType.BindingRequest bindingRequest)
default boolean
isTrusted(org.eebus.docs.spine.xsd.v1.FeatureAddressType clientAddress, java.lang.String minimumTrustLevel)
boolean
subscriptionAllowed(org.eebus.docs.spine.xsd.v1.NodeManagementSubscriptionRequestCallType.SubscriptionRequest subscriptionRequest)
-
-
-
Method Detail
-
bindingAllowed
boolean bindingAllowed(org.eebus.docs.spine.xsd.v1.NodeManagementBindingRequestCallType.BindingRequest bindingRequest)
- Parameters:
bindingRequest
- the binding request- Returns:
- true if request is permitted, false otherwise
-
subscriptionAllowed
boolean subscriptionAllowed(org.eebus.docs.spine.xsd.v1.NodeManagementSubscriptionRequestCallType.SubscriptionRequest subscriptionRequest)
- Parameters:
subscriptionRequest
- the subscription request- Returns:
- true if request is permitted, false otherwise
-
isTrusted
default boolean isTrusted(org.eebus.docs.spine.xsd.v1.FeatureAddressType clientAddress, java.lang.String minimumTrustLevel)
- Parameters:
clientAddress
- the address of the client featureminimumTrustLevel
- the minimum trust level set on the accessed feature- Returns:
- if the client is allowed to access the features this permission belongs to
-
-