Search
Preparing search index...
The search index is not available
sealious
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
If
Class If
Hierarchy
Policy
If
Index
Constructors
constructor
Properties
collection_
name
filter_
name
params
strategy_
when
type_
name
Methods
_get
Restricting
Query
check
checker
Function
construct
Query
get
Filter
get
Restricting
Query
is
Item
Sensitive
allow
deny
from
Definition
Constructors
constructor
new
If
(
__namedParameters
:
[
string
,
string
,
Policy
|
[
{
constructor
:
any
;
type_name
:
string
}
,
any
]
|
{
constructor
:
any
;
type_name
:
string
}
,
Policy
|
[
{
constructor
:
any
;
type_name
:
string
}
,
any
]
|
{
constructor
:
any
;
type_name
:
string
}
]
)
:
If
Parameters
__namedParameters:
[
string
,
string
,
Policy
|
[
{
constructor
:
any
;
type_name
:
string
}
,
any
]
|
{
constructor
:
any
;
type_name
:
string
}
,
Policy
|
[
{
constructor
:
any
;
type_name
:
string
}
,
any
]
|
{
constructor
:
any
;
type_name
:
string
}
]
Returns
If
Properties
collection_
name
collection_
name
:
string
filter_
name
filter_
name
:
string
params
params
:
any
strategy_
when
strategy_
when
:
{}
Type declaration
Static
type_
name
type_
name
:
string
= "if"
Methods
_get
Restricting
Query
_get
Restricting
Query
(
context
:
Context
)
:
Promise
<
Or
>
Parameters
context:
Context
Returns
Promise
<
Or
>
check
check
(
context
:
Context
, sealious_response
?:
SealiousResponse
)
:
Promise
<
PolicyDecision
|
null
>
Parameters
context:
Context
Optional
sealious_response:
SealiousResponse
Returns
Promise
<
PolicyDecision
|
null
>
checker
Function
checker
Function
(
context
:
Context
, sealious_response
:
SingleItemResponse
)
:
Promise
<
{
allowed
:
boolean
;
reason
:
string
}
>
Parameters
context:
Context
sealious_response:
SingleItemResponse
Returns
Promise
<
{
allowed
:
boolean
;
reason
:
string
}
>
construct
Query
construct
Query
(
context
:
Context
)
:
Promise
<
Or
>
Parameters
context:
Context
Returns
Promise
<
Or
>
get
Filter
get
Filter
(
app
:
App
)
:
SpecialFilter
Parameters
app:
App
Returns
SpecialFilter
get
Restricting
Query
get
Restricting
Query
(
context
:
Context
)
:
Promise
<
Query
>
Parameters
context:
Context
Returns
Promise
<
Query
>
is
Item
Sensitive
is
Item
Sensitive
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
Static
allow
allow
(
reason
:
string
)
:
{
allowed
:
boolean
;
reason
:
string
}
Parameters
reason:
string
Returns
{
allowed
:
boolean
;
reason
:
string
}
allowed
:
boolean
reason
:
string
Static
deny
deny
(
reason
:
string
)
:
{
allowed
:
boolean
;
reason
:
string
}
Parameters
reason:
string
Returns
{
allowed
:
boolean
;
reason
:
string
}
allowed
:
boolean
reason
:
string
Static
from
Definition
from
Definition
(
definition
:
PolicyDefinition
)
:
Policy
Parameters
definition:
PolicyDefinition
Returns
Policy
Globals
If
constructor
collection_
name
filter_
name
params
strategy_
when
type_
name
_get
Restricting
Query
check
checker
Function
construct
Query
get
Filter
get
Restricting
Query
is
Item
Sensitive
allow
deny
from
Definition
Generated using
TypeDoc