Package org.openremote.model.gateway
Class GatewayConnection
java.lang.Object
org.openremote.model.gateway.GatewayConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map
<String, GatewayAssetSyncRule> A map ofGatewayAssetSyncRule
s where the key should be anAsset
type to which the rules should be applied, to apply to all asset types use the * wildcard.protected List
<GatewayAttributeFilter> Filters are applied in order and the first to match theAttributeEvent
will be applied; if a catch all filter is to be used (i.e.protected @NotNull(message="{GatewayConnection.clientId.NotNull}") @Size(min=1,max=255,message="{GatewayConnection.clientId.Size}") String
protected @NotNull(message="{GatewayConnection.clientSecret.NotNull}") @Size(min=36,max=36,message="{GatewayConnection.clientSecret.Size}") String
protected boolean
protected @NotNull(message="{GatewayConnection.host.NotNull}") @Size(min=1,max=255,message="{GatewayConnection.host.Size}") String
protected String
protected @Min(value=1L,message="{GatewayConnection.port.Range}") @Max(value=65536L,message="{GatewayConnection.port.Range}") Integer
protected String
protected Boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
For JPAGatewayConnection
(String host, Integer port, String realm, String clientId, String clientSecret, Boolean secured, boolean disabled) GatewayConnection
(String localRealm, String host, Integer port, String realm, String clientId, String clientSecret, Boolean secured, List<GatewayAttributeFilter> attributeFilters, Map<String, GatewayAssetSyncRule> assetSyncRules, boolean disabled) -
Method Summary
Modifier and TypeMethodDescriptiongetHost()
getPort()
getRealm()
boolean
boolean
setAssetSyncRules
(Map<String, GatewayAssetSyncRule> assetSyncRules) setAttributeFilters
(List<GatewayAttributeFilter> attributeFilters) void
setClientId
(String clientId) void
setClientSecret
(String clientSecret) void
setDisabled
(boolean disabled) void
void
setLocalRealm
(String localRealm) void
setPort
(int port) void
void
void
setSecured
(boolean secured) toString()
-
Field Details
-
localRealm
-
host
@NotNull(message="{GatewayConnection.host.NotNull}") @Size(min=1, max=255, message="{GatewayConnection.host.Size}") protected @NotNull(message="{GatewayConnection.host.NotNull}") @Size(min=1,max=255,message="{GatewayConnection.host.Size}") String host -
port
@Min(value=1L, message="{GatewayConnection.port.Range}") @Max(value=65536L, message="{GatewayConnection.port.Range}") protected @Min(value=1L,message="{GatewayConnection.port.Range}") @Max(value=65536L,message="{GatewayConnection.port.Range}") Integer port -
realm
-
clientId
@NotNull(message="{GatewayConnection.clientId.NotNull}") @Size(min=1, max=255, message="{GatewayConnection.clientId.Size}") protected @NotNull(message="{GatewayConnection.clientId.NotNull}") @Size(min=1,max=255,message="{GatewayConnection.clientId.Size}") String clientId -
clientSecret
@NotNull(message="{GatewayConnection.clientSecret.NotNull}") @Size(min=36, max=36, message="{GatewayConnection.clientSecret.Size}") protected @NotNull(message="{GatewayConnection.clientSecret.NotNull}") @Size(min=36,max=36,message="{GatewayConnection.clientSecret.Size}") String clientSecret -
secured
-
disabled
protected boolean disabled -
attributeFilters
Filters are applied in order and the first to match theAttributeEvent
will be applied; if a catch all filter is to be used (i.e.== null
) it should be last in the list. -
assetSyncRules
A map ofGatewayAssetSyncRule
s where the key should be anAsset
type to which the rules should be applied, to apply to all asset types use the * wildcard.
-
-
Constructor Details
-
GatewayConnection
protected GatewayConnection()For JPA -
GatewayConnection
-
GatewayConnection
-
-
Method Details
-
getLocalRealm
-
setLocalRealm
-
getHost
-
setHost
-
getPort
-
setPort
public void setPort(int port) -
setPort
-
getRealm
-
setRealm
-
getClientId
-
setClientId
-
getClientSecret
-
setClientSecret
-
isSecured
public boolean isSecured() -
setSecured
public void setSecured(boolean secured) -
isDisabled
public boolean isDisabled() -
setDisabled
public void setDisabled(boolean disabled) -
getAttributeFilters
-
setAttributeFilters
-
getAssetSyncRules
-
setAssetSyncRules
-
toString
-