Exemple #1
0
 public ContentSerializer(
     IEntityService entityService, ILogger logger,
     IContentService contentService,
     SyncValueMapperCollection syncMappers)
     : base(entityService, logger, UmbracoObjectTypes.Document, syncMappers)
 {
     this.contentService = contentService;
 }
Exemple #2
0
 public MediaSerializer(
     IEntityService entityService, ILogger logger,
     IMediaService mediaService,
     SyncValueMapperCollection syncMappers)
     : base(entityService, logger, UmbracoObjectTypes.Media, syncMappers)
 {
     this.mediaService = mediaService;
 }
Exemple #3
0
        public ContentBaseChecker(IEntityService entityService,
                                  UmbracoObjectTypes contentTypeObjectType,
                                  SyncValueMapperCollection mappers)
        {
            this.entityService         = entityService;
            this.contentTypeObjectType = contentTypeObjectType;

            this.mappers = mappers;
        }
        public MediaChecker(IEntityService entityService,
                            IMediaService mediaService,
                            SyncValueMapperCollection mappers)
            : base(entityService, UmbracoObjectTypes.MediaType, mappers)
        {
            this.mediaService = mediaService;

            ObjectType = UmbracoObjectTypes.Media;
        }
 public ContentTemplateSerializer(
     IEntityService entityService, ILogger logger,
     IContentService contentService,
     IContentTypeService contentTypeService,
     SyncValueMapperCollection syncMappers)
     : base(entityService, logger, contentService, syncMappers)
 {
     this.contentTypeService = contentTypeService;
 }
        public ContentChecker(IEntityService entityService,
                              IContentService contentService,
                              SyncValueMapperCollection mappers)
            : base(entityService, UmbracoObjectTypes.DocumentType, mappers)
        {
            this.contentService = contentService;

            ObjectType = UmbracoObjectTypes.Document;
        }
 public ContentSerializerBase(
     IEntityService entityService,
     ILogger logger,
     UmbracoObjectTypes umbracoObjectType,
     SyncValueMapperCollection syncMappers)
     : base(entityService, logger)
 {
     this.umbracoObjectType = umbracoObjectType;
     this.syncMappers       = syncMappers;
 }
Exemple #8
0
 public ContentTemplateSerializer(
     IEntityService entityService,
     ILocalizationService localizationService,
     IRelationService relationService,
     ILogger logger,
     IContentService contentService,
     IFileService fileService,
     IContentTypeService contentTypeService,
     SyncValueMapperCollection syncMappers)
     : base(entityService, localizationService, relationService, logger, contentService, fileService, syncMappers)
 {
     this.contentTypeService = contentTypeService;
     this.umbracoObjectType  = UmbracoObjectTypes.DocumentBlueprint;
 }
Exemple #9
0
        public ContentSerializer(
            IEntityService entityService,
            ILocalizationService localizationService,
            IRelationService relationService,
            IShortStringHelper shortStringHelper,
            ILogger <ContentSerializer> logger,
            IContentService contentService,
            IFileService fileService,
            SyncValueMapperCollection syncMappers)
            : base(entityService, localizationService, relationService, shortStringHelper, logger, UmbracoObjectTypes.Document, syncMappers)
        {
            this.contentService = contentService;
            this.fileService    = fileService;

            this.relationAlias = Constants.Conventions.RelationTypes.RelateParentDocumentOnDeleteAlias;
        }
Exemple #10
0
        public ContentSerializer(
            IEntityService entityService,
            ILocalizationService localizationService,
            IRelationService relationService,
            ILogger logger,
            IContentService contentService,
            IFileService fileService,
            SyncValueMapperCollection syncMappers)
            : base(entityService, localizationService, relationService, logger, UmbracoObjectTypes.Document, syncMappers)
        {
            this.contentService = contentService;
            this.fileService    = fileService;

            this.relationAlias = Constants.Conventions.RelationTypes.RelateParentDocumentOnDeleteAlias;

            performDoubleLookup = UmbracoVersion.LocalVersion.Major != 8 || UmbracoVersion.LocalVersion.Minor < 4;
        }
Exemple #11
0
        public ContentSerializerBase(
            IEntityService entityService,
            ILocalizationService localizationService,
            IRelationService relationService,
            ILogger logger,
            UmbracoObjectTypes umbracoObjectType,
            SyncValueMapperCollection syncMappers)
            : base(entityService, logger)
        {
            this.umbracoObjectType = umbracoObjectType;
            this.syncMappers       = syncMappers;

            this.localizationService = localizationService;
            this.relationService     = relationService;

            this.pathCache = new Dictionary <string, string>();
        }
Exemple #12
0
        public ContentSerializerBase(
            IEntityService entityService,
            ILocalizationService localizationService,
            IRelationService relationService,
            IShortStringHelper shortStringHelper,
            ILogger <ContentSerializerBase <TObject> > logger,
            UmbracoObjectTypes umbracoObjectType,
            SyncValueMapperCollection syncMappers)
            : base(entityService, logger)
        {
            this.shortStringHelper = shortStringHelper;

            this.umbracoObjectType = umbracoObjectType;
            this.syncMappers       = syncMappers;

            this.localizationService = localizationService;
            this.relationService     = relationService;
        }
Exemple #13
0
        public MediaSerializer(
            IEntityService entityService,
            ILocalizationService localizationService,
            IRelationService relationService,
            IShortStringHelper shortStringHelper,
            ILogger <MediaSerializer> logger,
            IMediaService mediaService,
            SyncValueMapperCollection syncMappers)
            : base(entityService, localizationService, relationService, shortStringHelper, logger, UmbracoObjectTypes.Media, syncMappers)
        {
            this.mediaService  = mediaService;
            this.relationAlias = Constants.Conventions.RelationTypes.RelateParentMediaFolderOnDeleteAlias;

            // we don't serialize the media properties,
            // you can't set them on an node in the backoffice,
            // and they are auto calculated by umbraco anyway.
            // & sometimes they just lead to false postives.
            this.dontSerialize = new string[]
            {
                "umbracoWidth", "umbracoHeight", "umbracoBytes", "umbracoExtension"
            };
        }