File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
codegen/src/main/resources/META-INF/vertx
src/jvmMain/kotlin/spp/protocol Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,5 @@ spp.protocol.platform.auth.DeveloperRole.serializer=spp.protocol.marshall.Protoc
34
34
spp.protocol.platform.auth.DeveloperRole.deserializer =spp.protocol.marshall.ProtocolMarshaller# deserializeDeveloperRole
35
35
spp.protocol.platform.auth.ClientAccess.serializer =spp.protocol.marshall.ProtocolMarshaller# serializeClientAccess
36
36
spp.protocol.platform.auth.ClientAccess.deserializer =spp.protocol.marshall.ProtocolMarshaller# deserializeClientAccess
37
+ spp.protocol.platform.auth.RolePermission.serializer =spp.protocol.marshall.ProtocolMarshaller# serializeRolePermission
38
+ spp.protocol.platform.auth.RolePermission.deserializer =spp.protocol.marshall.ProtocolMarshaller# deserializeRolePermission
Original file line number Diff line number Diff line change @@ -37,10 +37,7 @@ import spp.protocol.instrument.event.LiveBreakpointHit
37
37
import spp.protocol.instrument.event.LiveInstrumentRemoved
38
38
import spp.protocol.instrument.event.LiveLogHit
39
39
import spp.protocol.instrument.variable.LiveVariable
40
- import spp.protocol.platform.auth.ClientAccess
41
- import spp.protocol.platform.auth.DataRedaction
42
- import spp.protocol.platform.auth.DeveloperRole
43
- import spp.protocol.platform.auth.RedactionType
40
+ import spp.protocol.platform.auth.*
44
41
import spp.protocol.platform.developer.SelfInfo
45
42
import spp.protocol.platform.general.Service
46
43
import spp.protocol.platform.status.ActiveInstance
@@ -451,4 +448,14 @@ object ProtocolMarshaller {
451
448
value.getString(" secret" )
452
449
)
453
450
}
451
+
452
+ @JvmStatic
453
+ fun serializeRolePermission (value : RolePermission ): String {
454
+ return value.name
455
+ }
456
+
457
+ @JvmStatic
458
+ fun deserializeRolePermission (value : String ): RolePermission {
459
+ return RolePermission .valueOf(value)
460
+ }
454
461
}
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import io.vertx.core.Vertx
24
24
import io.vertx.core.eventbus.DeliveryOptions
25
25
import spp.protocol.SourceServices.Utilize.LIVE_MANAGEMENT_SERVICE
26
26
import spp.protocol.platform.auth.ClientAccess
27
+ import spp.protocol.platform.auth.RolePermission
27
28
28
29
29
30
/* *
@@ -46,6 +47,7 @@ interface LiveManagementService {
46
47
}
47
48
}
48
49
50
+ fun getRolePermissions (role : String ): Future <List <RolePermission >>
49
51
fun getClientAccessors (): Future <List <ClientAccess >>
50
52
fun getClientAccess (id : String ): Future <ClientAccess ?>
51
53
fun addClientAccess (): Future <ClientAccess >
You can’t perform that action at this time.
0 commit comments