Elastic

{{ if not .BestMaskFilter }}

Mask Filter

Select user to compile mask filter.

{{ else }}

Mask Filter

The mask filter is applied for each search of type object. It filters the search result in a way that each object is only returned once from the index. For each object the preferred (or best) mask is used to select the object.

{{ if eq (len .BestMaskFilter) 0 }} {{ else }} {{ range $idx, $filter := .BestMaskFilter }} {{ if $filter.Pool }} {{ else }} {{ if $filter.Objecttype }} {{ else }} {{ end }} {{ end }} {{ end }} {{ end }}
Idx Pool Objecttype Mask Rank IndexValue Tagfilter Tagfilter Exclude Best Mask
<empty>
{{ $idx }}{{ $filter.Pool.Id }}: {{ LocaFrontend $filter.Pool.Name }} {{ $filter.Mask.Table.Name }} {{ $filter.Objecttype.Table.Name }} {{ $filter.Mask.Table.Name }}{{ $filter.Mask.Name }} {{ $filter.Rank }} {{ $filter.IndexValue }} {{ $filter.TagfilterInclude.TagfilterApi }}
    {{ range $idx, $exFilter := $filter.TagfilterExcludes }}
  • {{ $exFilter.TagfilterApi }}{{ printf " [%p]" $exFilter }}
  • {{ end }}

Object Read Filter

The object read filter is used to filter the search for allowed objects only. It is compiled from rights provided by Tags, Pools, Objecttypes, and Collection. In addition it filters the objects by User or Group which might be allowed directly by the Object (by being the Owner or by the ACL of the object).

Objecttype / Pools
    {{ range $_, $otPool := .ObjectReadFilter.OtPools }}
  • {{ $otPool }}
  • {{ end }} {{ range $_, $otPoolWithTagfilter := .ObjectReadFilter.OtPoolsWithTagfilter }}
  • Tagfilter: {{ $otPoolWithTagfilter.Tagfilter.TagfilterApi }} {{ template "bucket_list" $otPoolWithTagfilter.OtPools }}
  • {{ end }}
Tags
    {{ range $_, $tagId := .ObjectReadFilter.TagIds }}
  • {{ $tagId }}
  • {{ end }} {{ range $_, $tagIdWithTagfilter := .ObjectReadFilter.TagIdsWithTagfilter }}
  • Tagfilter: {{ $tagIdWithTagfilter.Tagfilter.TagfilterApi }} {{ template "bucket_list" $tagIdWithTagfilter.TagIds }}
  • {{ end }}
Collections
    {{ range $_, $colId := .ObjectReadFilter.CollectionIds }}
  • {{ $colId }}
  • {{ end }}
Read Whos
    {{ range $_, $who := .ObjectReadFilter.WhoReads }}
  • {{ $who }}
  • {{ end }}
Read Presets
    {{ range $_, $preset := .ObjectReadFilter.WhoPresets }}
  • {{ $preset }}
  • {{ end }}
{{ end }}

Elastic Object Read Filter

{{ if .ElasticObjectReadFilter }} {{ template "jsontree" (Marshal .ElasticObjectReadFilter) }} {{ else }}

Select user to show object read filter.

{{ end }}

Index Settings

{{ template "jsontree" (Marshal .ElasticIndexSettings) }}

Base Mappings

{{ template "jsontree" (Marshal .ElasticBaseMappings) }}

Object Mappings

{{ template "jsontree" (Marshal .ElasticObjectMappings) }}