Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bff4d0812e | |||
| d6f8af4917 | |||
| c2dfd8f2cc | |||
| e80feef083 | |||
| 51558d568e | |||
| 8de493e4f6 | |||
| e5debdf436 | |||
| 5f5831c4a9 | |||
| 8f727cc262 | |||
| c26cad2ed4 | |||
| 32bfd089fd | |||
| b3bef7cd6d | |||
| cb39c7cea0 | |||
| f696e826fd | |||
| f4ab9741f3 | |||
| 607d45e4d3 | |||
| 3206412565 | |||
| 9f3b80ec31 | |||
| 04ce5522cd | |||
| e636032d13 | |||
| 9c7f7493ed | |||
| ec0106b334 |
28
README.md
28
README.md
@@ -20,18 +20,22 @@ Run `release.sh` script from `master` branch.
|
|||||||
./gradlew clean build publish
|
./gradlew clean build publish
|
||||||
```
|
```
|
||||||
|
|
||||||
### Global gradle properties
|
### Global Settings
|
||||||
|
|
||||||
To authenticate with Gradle to access repositories that require authentication, you can set your user and token in the `gradle.properties` file.
|
This services rely on a set of global settings to configure development environments. These settings, managed through Gradle properties or environment variables.
|
||||||
|
|
||||||
Here's how you can do it:
|
*Note: For more information on global properties, please refer to our [global settings](https://github.com/swordsteel/hlaeja-development/blob/master/doc/global_settings.md) documentation.*
|
||||||
|
|
||||||
1. Open or create the `gradle.properties` file in your Gradle user home directory:
|
#### Gradle Properties
|
||||||
- On Unix-like systems (Linux, macOS), this directory is typically `~/.gradle/`.
|
|
||||||
- On Windows, this directory is typically `C:\Users\<YourUsername>\.gradle\`.
|
```properties
|
||||||
2. Add the following lines to the `gradle.properties` file:
|
repository.user=your_user
|
||||||
```properties
|
repository.token=your_token_value
|
||||||
repository.user=your_user
|
```
|
||||||
repository.token=your_token_value
|
|
||||||
```
|
#### Environment Variables
|
||||||
or use environment variables `REPOSITORY_USER` and `REPOSITORY_TOKEN`
|
|
||||||
|
```properties
|
||||||
|
REPOSITORY_USER=your_user
|
||||||
|
REPOSITORY_TOKEN=your_token_value
|
||||||
|
```
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
version=0.1.0
|
version=0.6.0
|
||||||
catalog=0.3.0
|
catalog=0.8.0
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
package ltd.hlaeja.library.accountRegistry
|
||||||
|
|
||||||
|
import java.time.ZonedDateTime
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
|
object Account {
|
||||||
|
|
||||||
|
data class Request(
|
||||||
|
val username: String,
|
||||||
|
val password: CharSequence,
|
||||||
|
val enabled: Boolean,
|
||||||
|
val roles: List<String>,
|
||||||
|
)
|
||||||
|
|
||||||
|
data class Response(
|
||||||
|
val id: UUID,
|
||||||
|
val timestamp: ZonedDateTime,
|
||||||
|
val enabled: Boolean,
|
||||||
|
val username: String,
|
||||||
|
val roles: List<String>,
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package ltd.hlaeja.library.accountRegistry
|
||||||
|
|
||||||
|
object Authentication {
|
||||||
|
data class Request(
|
||||||
|
val username: String,
|
||||||
|
val password: CharSequence,
|
||||||
|
)
|
||||||
|
|
||||||
|
data class Response(
|
||||||
|
val token: String,
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package ltd.hlaeja.library.deviceConfiguration
|
||||||
|
|
||||||
|
import java.time.ZonedDateTime
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
|
object Node {
|
||||||
|
|
||||||
|
data class Request(
|
||||||
|
val configuration: String,
|
||||||
|
)
|
||||||
|
|
||||||
|
data class Response(
|
||||||
|
val node: UUID,
|
||||||
|
val timestamp: ZonedDateTime,
|
||||||
|
val configuration: String,
|
||||||
|
)
|
||||||
|
}
|
||||||
16
src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Device.kt
Normal file
16
src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Device.kt
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
package ltd.hlaeja.library.deviceRegistry
|
||||||
|
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
|
object Device {
|
||||||
|
|
||||||
|
data class Request(
|
||||||
|
val type: UUID,
|
||||||
|
)
|
||||||
|
|
||||||
|
data class Response(
|
||||||
|
val id: UUID,
|
||||||
|
val type: UUID,
|
||||||
|
val identity: String,
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
package ltd.hlaeja.library.deviceRegistry
|
||||||
|
|
||||||
|
import java.io.Serializable
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
|
object Identity {
|
||||||
|
|
||||||
|
data class Response(
|
||||||
|
val client: UUID,
|
||||||
|
val node: UUID,
|
||||||
|
val device: UUID,
|
||||||
|
) : Serializable {
|
||||||
|
companion object {
|
||||||
|
@Suppress("ConstPropertyName")
|
||||||
|
private const val serialVersionUID = 1L
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
19
src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Node.kt
Normal file
19
src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Node.kt
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
package ltd.hlaeja.library.deviceRegistry
|
||||||
|
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
|
object Node {
|
||||||
|
|
||||||
|
data class Request(
|
||||||
|
val client: UUID,
|
||||||
|
val device: UUID,
|
||||||
|
val name: String,
|
||||||
|
)
|
||||||
|
|
||||||
|
data class Response(
|
||||||
|
val id: UUID,
|
||||||
|
val client: UUID,
|
||||||
|
val device: UUID,
|
||||||
|
val name: String,
|
||||||
|
)
|
||||||
|
}
|
||||||
15
src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Type.kt
Normal file
15
src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Type.kt
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
package ltd.hlaeja.library.deviceRegistry
|
||||||
|
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
|
object Type {
|
||||||
|
|
||||||
|
data class Request(
|
||||||
|
val name: String,
|
||||||
|
)
|
||||||
|
|
||||||
|
data class Response(
|
||||||
|
val id: UUID,
|
||||||
|
val name: String,
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user