public OrganizationService( IContextManager contextManager, // IUserIdentification userIdentification, ITranslationEntity translationManagerToVm, ITranslationViewModel translationManagerToEntity, // ILogger<Services.ChannelService> logger, ICommonServiceInternal commonService, // VmListItemLogic listItemLogic, // DataUtils dataUtils, // VmOwnerReferenceLogic ownerReferenceLogic, ICacheManager cacheManager, IPublishingStatusCache publishingStatusCache, IUserOrganizationChecker userOrganizationChecker, IVersioningManager versionManager, ServiceUtilities utilities, IValidationManager validationManager ) : base(translationManagerToVm, translationManagerToEntity, publishingStatusCache, userOrganizationChecker, contextManager, utilities, commonService, validationManager) { this.contextManager = contextManager; // this.logger = logger; // this.userIdentification = userIdentification; // this.listItemLogic = listItemLogic; // this.dataUtils = dataUtils; // this.ownerReferenceLogic = ownerReferenceLogic; this.typesCache = cacheManager.TypesCache; // this.languageCache = cacheManager.LanguageCache; this.versionManager = versionManager; }
public ServiceAndChannelService(IContextManager contextManager, ITranslationEntity translationEntToVm, ITranslationViewModel translationVmtoEnt, ILogger <ServiceAndChannelService> logger, ServiceUtilities utilities, DataUtils dataUtils, IServiceService serviceService, IChannelService channelService, IPublishingStatusCache publishingStatusCache, IVersioningManager versioningManager, IUserOrganizationChecker userOrganizationChecker, ICacheManager cacheManager, IUserOrganizationService userOrganizationService ) : base(translationEntToVm, translationVmtoEnt, publishingStatusCache, userOrganizationChecker) { this.contextManager = contextManager; this.logger = logger; this.utilities = utilities; this.dataUtils = dataUtils; this.serviceService = serviceService; this.channelService = channelService; this.versioningManager = versioningManager; this.userOrganizationService = userOrganizationService; typesCache = cacheManager.TypesCache; }
public ServiceCollectionService( IContextManager contextManager, ITranslationEntity translationManagerToVm, ITranslationViewModel translationManagerToEntity, ILogger <ServiceService> logger, ServiceUtilities utilities, DataUtils dataUtils, ICommonServiceInternal commonService, VmOwnerReferenceLogic ownerReferenceLogic, ITypesCache typesCache, ILanguageCache languageCache, IPublishingStatusCache publishingStatusCache, IVersioningManager versioningManager, IGeneralDescriptionService generalDescriptionService, IUserOrganizationChecker userOrganizationChecker) : base(translationManagerToVm, translationManagerToEntity, publishingStatusCache, userOrganizationChecker) { this.contextManager = contextManager; this.logger = logger; this.utilities = utilities; this.dataUtils = dataUtils; this.commonService = commonService; this.ownerReferenceLogic = ownerReferenceLogic; this.typesCache = typesCache; this.languageCache = languageCache; this.versioningManager = versioningManager; }
public TranslationDefinitions(IResolveManager resolveManager, ITranslationPrimitives translationPrimitives, ITranslationUnitOfWork unitOfWork, TranslationDirection directionDefinition, IVersioningManager versioningManager, Type typeToInstantiate = null, TOut predefinedTarget = null, Guid?requestlanguageId = null, TranslationPolicy translationPolicies = TranslationPolicy.Defaults) { this.resolveManager = resolveManager; this.translationPrimitives = translationPrimitives; this.directionDefinition = directionDefinition; this.typeToInstantiate = typeToInstantiate ?? typeof(TOut); this.unitOfWork = unitOfWork; this.targetInstance = predefinedTarget; this.requestlanguageIdAssigned = requestlanguageId; var cacheManager = resolveManager.Resolve <ICacheManager>(); this.languageCache = cacheManager.LanguageCache; this.publishingStatusCache = cacheManager.PublishingStatusCache; this.versioningManager = versioningManager; this.translationPolicies = translationPolicies; this.entityOutSet = unitOfWork?.GetSet <TOut>() as IQueryable <TOut>; if (this.unitOfWork != null && this.targetInstance != null) { var cached = unitOfWork.TranslationCloneCache.GetFromCachedSet <TOut>(); clonedTargetApplied = cached.Any(i => i.ClonedEntity == this.targetInstance); } }
public RootChannelRoleChecker( IRoleChecker roleChecker, IHttpContextAccessor ctxAccessor, IVersioningManager versioningManager, ITypesCache typesCache) : base(ctxAccessor) { this.versioningManager = versioningManager; this.roleChecker = roleChecker; }
protected Translator(IResolveManager resolveManager, ITranslationPrimitives translationPrimitives) { this.resolveManager = resolveManager; this.translationPrimitives = translationPrimitives; this.languageCache = resolveManager.Resolve <ILanguageCache>(); this.VersioningManager = resolveManager.Resolve <IVersioningManager>(); this.textManager = resolveManager.Resolve <ITextManager>(); }
public ServiceUtilities( IUserIdentification userIdentification, ILockingManager lockingManager, IContextManager contextManager, IUserOrganizationService userOrganizationService, IVersioningManager versioningManager, IUserInfoService userInfoService, IUserOrganizationChecker userOrganizationChecker) { this.userIdentification = userIdentification; this.lockingManager = lockingManager; this.contextManager = contextManager; this.userOrganizationService = userOrganizationService; this.versioningManager = versioningManager; this.userInfoService = userInfoService; this.userOrganizationChecker = userOrganizationChecker; }
public ServiceValidationChecker(ICacheManager cacheManager, IResolveManager resolveManager) : base(cacheManager, resolveManager) { typesCache = cacheManager.TypesCache; languageCache = cacheManager.LanguageCache; this.VersioningManager = resolveManager.Resolve <IVersioningManager>(); }