Class Permission
java.lang.Object
energy.eddie.aiida.models.permission.Permission
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor only for JPA.Permission(QrCodeDto qrCodeDto, UUID userId) Create a new permission from the contents of the QR code. -
Method Summary
Modifier and TypeMethodDescriptionReturns the connectionId that was generated by the EDDIE framework and is sent along with each message to the EP.dataNeed()Only available if status isPermissionStatus.FETCHED_DETAILSor a later status.eddieId()Returns the UUID of the EDDIE application that created this permission.Returns the UTC timestamp when this permission expires and no more data should be shared.Returns the UTC timestamp when the customer granted the permission.id()Returns the UUID of this permission.Only available if status isPermissionStatus.FETCHED_MQTT_CREDENTIALSor a later status.Returns the time at which either the EP terminated the permission or the customer revoked the permission.Returns the service name for which this permission is for.voidsetConnectionId(String connectionId) voidsetDataNeed(AiidaLocalDataNeed dataNeed) voidsetDataSource(DataSource dataSource) voidsetExpirationTime(Instant expirationTime) voidsetGrantTime(Instant grantTime) voidsetMqttStreamingConfig(MqttStreamingConfig mqttStreamingConfig) voidsetRevokeTime(Instant revokeTime) Set the UTC timestamp when either the EP terminated the permission or the customer revoked the permission.voidsetStartTime(Instant startTime) voidsetStatus(PermissionStatus newStatus) Returns the UTC start timestamp for sharing data of this permission.status()Returns the current status of the permission.userId()
-
Constructor Details
-
Permission
Create a new permission from the contents of the QR code. The status will be set toPermissionStatus.CREATED. -
Permission
public Permission()Constructor only for JPA.
-
-
Method Details
-
eddieId
Returns the UUID of the EDDIE application that created this permission. -
id
Returns the UUID of this permission. -
startTime
Returns the UTC start timestamp for sharing data of this permission. Only available if status isPermissionStatus.FETCHED_DETAILSor a later status. -
expirationTime
Returns the UTC timestamp when this permission expires and no more data should be shared. Only available if status isPermissionStatus.FETCHED_DETAILSor a later status. -
grantTime
Returns the UTC timestamp when the customer granted the permission. Will return null until the customer grants the permission. Only available if status isPermissionStatus.ACCEPTEDor a later status. -
revokeTime
Returns the time at which either the EP terminated the permission or the customer revoked the permission. The return value ofstatus()indicates which of the two cases occurred. -
connectionId
Returns the connectionId that was generated by the EDDIE framework and is sent along with each message to the EP. Only available if status isPermissionStatus.FETCHED_DETAILSor a later status. -
serviceName
Returns the service name for which this permission is for. -
status
Returns the current status of the permission. -
mqttStreamingConfig
Only available if status isPermissionStatus.FETCHED_MQTT_CREDENTIALSor a later status. -
handshakeUrl
-
accessToken
-
userId
-
dataSource
-
dataNeed
Only available if status isPermissionStatus.FETCHED_DETAILSor a later status. -
setStatus
-
setStartTime
-
setExpirationTime
-
setGrantTime
-
setRevokeTime
Set the UTC timestamp when either the EP terminated the permission or the customer revoked the permission. UsesetStatus(PermissionStatus)to indicate which of the two cases occurred.- Parameters:
revokeTime- The revocation or termination timestamp.
-
setConnectionId
-
setMqttStreamingConfig
-
setDataNeed
-
setDataSource
-