blob: dbdd4132696d9b96d41bf47ed23b044aac1c32ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package org.onap.vid.roles
import org.onap.vid.aai.ServiceSubscription
interface WithPermissionProperties
interface WithPermissionPropertiesSubscriberAndServiceType: WithPermissionProperties {
val subscriberId: String?
val serviceType: String?
}
interface WithPermissionPropertiesOwningEntity: WithPermissionProperties {
val owningEntityId: String?
}
data class AllPermissionProperties(
override val subscriberId: String?,
override val serviceType: String?,
override val owningEntityId: String?
): WithPermissionPropertiesOwningEntity, WithPermissionPropertiesSubscriberAndServiceType
data class PermissionPropertiesOwningEntity(
override val owningEntityId: String?
): WithPermissionPropertiesOwningEntity
data class PermissionPropertiesSubscriberAndServiceType(
override val subscriberId: String?,
override val serviceType: String?
) : WithPermissionPropertiesSubscriberAndServiceType {
constructor(serviceSubscription: ServiceSubscription, subscriberId: String?) : this(subscriberId, serviceSubscription.serviceType)
}
|