SavedFilterRegisterReqFilter Method (IAppContext, String, FilterAttributes, String, String, String, NullableDateTime, String) |
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntaxpublic static string RegisterReqFilter(
IAppContext cxt,
string filter,
FilterAttributes attrs,
string name,
string description,
string mop,
Nullable<DateTime> expiration,
string owner
)
Public Shared Function RegisterReqFilter (
cxt As IAppContext,
filter As String,
attrs As FilterAttributes,
name As String,
description As String,
mop As String,
expiration As Nullable(Of DateTime),
owner As String
) As String
Parameters
- cxt
- Type: NetQuarryIAppContext
The application context. - filter
- Type: SystemString
The filter clause. - attrs
- Type: NetQuarryFilterAttributes
The filter attributes. In addition, the filter will always be marked as Registered and Hidden. - name
- Type: SystemString
The name of the filter, optional. - description
- Type: SystemString
The description of the filter, optional. - mop
- Type: SystemString
The MOP to which this filter applies, optional, but recommended for enhanced security. - expiration
- Type: SystemNullableDateTime
The filter expiration date/time in UTC. If specified, the filter will be marked as Temp. If not specified, but the
Temp attribute is specified, the expiration will be set to set to one day from time of creation.
- owner
- Type: SystemString
The filter owner's user ID, optional, but recommended for enhanced security.
Return Value
Type:
StringThe filter spec suitable for use in a URL flt parameter once escaped.
Remarks
Though you should never need to generate or parse this yourself, note that the filter spec is of the form:
.<ver>.<flags>.<id>[.<expiration>] where
<ver> is the id version (currently 1),
<flags> are flag characters (currently e=expires, i=identifiedById),
<id> is the ID,
and
<expiration> is the optional expiration date.
See Also