public ContentTableFilterOperation[] SetupFilteringOperations(ContentTableFilterForm filterForm,
                                                                      ContentType contentType)
        {
            if (!(filterForm is PublishingFieldTableFilterForm))
            {
                return(null);
            }
            var f = filterForm.DirectCastTo <PublishingFieldTableFilterForm>();

            return(new[] {
                new ContentTableFilterOperation(PublishingFieldWhereConditionsProvider.IS_PUBLISHED_WHERE_CONDITION_NAME, f)
            });
        }
Ejemplo n.º 2
0
        SetupFilteringOperations(ContentTableFilterForm filterForm, Type datumType)
        {
            var f = filterForm is UserDatumIsActivatedTableFilterForm
                ? filterForm.DirectCastTo <UserDatumIsActivatedTableFilterForm>()
                : null;

            if (f == null)
            {
                return(null);
            }
            return(new[] {
                new ContentTableFilterOperation(
                    UserDatumWhereConditionsProvider.IS_ACTIVATED_WHERE_CONDITION_NAME, f
                    )
            });
        }
        public ContentTableFilterOperation[] SetupFilteringOperations(ContentTableFilterForm filterForm,
                                                                      ContentType contentType)
        {
            if (!(filterForm is ChronoFieldTableFilterForm))
            {
                return(null);
            }
            var fm  = filterForm.DirectCastTo <ChronoFieldTableFilterForm>();
            var ops = new List <ContentTableFilterOperation>();

            foreach (var item in fm.Items)
            {
                ops.Add(new ContentTableFilterOperation(ChronoFieldWhereConditionsProvider.CONDITION_NAME, item));
            }
            return(ops.ToArray());
        }
Ejemplo n.º 4
0
        SetupFilteringOperations(ContentTableFilterForm filterForm, Type datumType)
        {
            var f = filterForm is RoleDatumIsReservedTableFilterForm
                ? filterForm.DirectCastTo <RoleDatumIsReservedTableFilterForm>()
                : null;

            if (f == null)
            {
                return(null);
            }
            return(new[] {
                new ContentTableFilterOperation(
                    RoleDatumWhereConditionsProvider.IS_SYSTEM_RESERVED_WHERE_CONDITION_NAME, f
                    )
            });
        }