RepositoryResourceData

data class RepositoryResourceData(val resourceRulesEngineFactId: String? = null, val resource: Resource, val relatedResourcesMap: Map<String, List<Resource>> = emptyMap(), val relatedResourcesCountMap: Map<String, List<RelatedResourceCount>> = emptyMap(), val secondaryRepositoryResourceData: List<RepositoryResourceData>? = null)

This represent the outcome of a query performed via the Repository. The query performed can either return a count or map of Resource's (including nested resources flattened in the map). The optional property resourceRulesEngineFactId that can be used as the key in the rules factory facts map (each fact is represented as a key-value pair). The key for the relatedResourcesMap will either be the configured unique id for representing the resource(s) in Rules engine Facts map or the ResourceType. secondaryRepositoryResourceData returns a list of independent resources (which may include nested resource(s)) that have NO relationship with the base resource.

Constructors

Link copied to clipboard
constructor(resourceRulesEngineFactId: String? = null, resource: Resource, relatedResourcesMap: Map<String, List<Resource>> = emptyMap(), relatedResourcesCountMap: Map<String, List<RelatedResourceCount>> = emptyMap(), secondaryRepositoryResourceData: List<RepositoryResourceData>? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val resource: Resource
Link copied to clipboard