public ContentsLayerGroupController(IAuthManager authManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository)
 {
     _authManager            = authManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _contentGroupRepository = contentGroupRepository;
 }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="repo">The main repository</param>
        /// <param name="cache">The optional model cache</param>
        public ContentGroupService(IContentGroupRepository repo, ICache cache)
        {
            _repo = repo;

            if (App.CacheLevel != CacheLevel.None)
            {
                _cache = cache;
            }
        }
Beispiel #3
0
 public ContentsController(IAuthManager authManager, IPathManager pathManager, IDatabaseManager databaseManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository, IContentTagRepository contentTagRepository)
 {
     _authManager            = authManager;
     _pathManager            = pathManager;
     _databaseManager        = databaseManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _contentGroupRepository = contentGroupRepository;
     _contentTagRepository   = contentTagRepository;
 }
Beispiel #4
0
 public SitesController(ISettingsManager settingsManager, IAuthManager authManager, IPathManager pathManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, ITableStyleRepository tableStyleRepository, IContentGroupRepository contentGroupRepository, IContentTagRepository contentTagRepository)
 {
     _settingsManager        = settingsManager;
     _authManager            = authManager;
     _pathManager            = pathManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _tableStyleRepository   = tableStyleRepository;
     _contentGroupRepository = contentGroupRepository;
     _contentTagRepository   = contentTagRepository;
 }
Beispiel #5
0
 public DatabaseManager(ISettingsManager settingsManager, IAccessTokenRepository accessTokenRepository, IAdministratorRepository administratorRepository, IAdministratorsInRolesRepository administratorsInRolesRepository, IChannelRepository channelRepository, IChannelGroupRepository channelGroupRepository, IConfigRepository configRepository, IContentCheckRepository contentCheckRepository, IContentGroupRepository contentGroupRepository, IContentRepository contentRepository, IContentTagRepository contentTagRepository, IDbCacheRepository dbCacheRepository, IErrorLogRepository errorLogRepository, ILogRepository logRepository, IMaterialArticleRepository materialArticleRepository, IMaterialAudioRepository materialAudioRepository, IMaterialFileRepository materialFileRepository, IMaterialGroupRepository materialGroupRepository, IMaterialImageRepository materialImageRepository, IMaterialMessageRepository materialMessageRepository, IMaterialMessageItemRepository materialMessageItemRepository, IMaterialVideoRepository materialVideoRepository, IPermissionsInRolesRepository permissionsInRolesRepository, IPluginConfigRepository pluginConfigRepository, IRelatedFieldItemRepository relatedFieldItemRepository, IRelatedFieldRepository relatedFieldRepository, IRoleRepository roleRepository, ISiteLogRepository siteLogRepository, ISitePermissionsRepository sitePermissionsRepository, ISiteRepository siteRepository, ISpecialRepository specialRepository, IStatRepository statRepository, ITableStyleRepository tableStyleRepository, ITemplateLogRepository templateLogRepository, ITemplateRepository templateRepository, ITranslateRepository translateRepository, IUserGroupRepository userGroupRepository, IUserMenuRepository userMenuRepository, IUserRepository userRepository, IWxAccountRepository wxAccountRepository, IWxChatRepository wxChatRepository, IWxMenuRepository wxMenuRepository, IWxReplyKeywordRepository wxReplyKeywordRepository, IWxReplyMessageRepository wxReplyMessageRepository, IWxReplyRuleRepository wxReplyRuleRepository, IWxUserRepository wxUserRepository)
 {
     _settingsManager                = settingsManager;
     AccessTokenRepository           = accessTokenRepository;
     AdministratorRepository         = administratorRepository;
     AdministratorsInRolesRepository = administratorsInRolesRepository;
     ChannelRepository               = channelRepository;
     ChannelGroupRepository          = channelGroupRepository;
     ConfigRepository                = configRepository;
     ContentCheckRepository          = contentCheckRepository;
     ContentGroupRepository          = contentGroupRepository;
     ContentRepository               = contentRepository;
     ContentTagRepository            = contentTagRepository;
     DbCacheRepository               = dbCacheRepository;
     ErrorLogRepository              = errorLogRepository;
     LogRepository                 = logRepository;
     MaterialArticleRepository     = materialArticleRepository;
     MaterialAudioRepository       = materialAudioRepository;
     MaterialFileRepository        = materialFileRepository;
     MaterialGroupRepository       = materialGroupRepository;
     MaterialImageRepository       = materialImageRepository;
     MaterialMessageRepository     = materialMessageRepository;
     MaterialMessageItemRepository = materialMessageItemRepository;
     MaterialVideoRepository       = materialVideoRepository;
     PermissionsInRolesRepository  = permissionsInRolesRepository;
     PluginConfigRepository        = pluginConfigRepository;
     RelatedFieldItemRepository    = relatedFieldItemRepository;
     RelatedFieldRepository        = relatedFieldRepository;
     RoleRepository                = roleRepository;
     SiteLogRepository             = siteLogRepository;
     SitePermissionsRepository     = sitePermissionsRepository;
     SiteRepository                = siteRepository;
     SpecialRepository             = specialRepository;
     StatRepository                = statRepository;
     TableStyleRepository          = tableStyleRepository;
     TemplateLogRepository         = templateLogRepository;
     TemplateRepository            = templateRepository;
     TranslateRepository           = translateRepository;
     UserGroupRepository           = userGroupRepository;
     UserMenuRepository            = userMenuRepository;
     UserRepository                = userRepository;
     WxAccountRepository           = wxAccountRepository;
     WxChatRepository              = wxChatRepository;
     WxMenuRepository              = wxMenuRepository;
     WxReplyKeywordRepository      = wxReplyKeywordRepository;
     WxReplyMessageRepository      = wxReplyMessageRepository;
     WxReplyRuleRepository         = wxReplyRuleRepository;
     WxUserRepository              = wxUserRepository;
 }
Beispiel #6
0
 public EditorController(IAuthManager authManager, ICreateManager createManager, IPathManager pathManager, IDatabaseManager databaseManager, IPluginManager pluginManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository, IContentTagRepository contentTagRepository, ITableStyleRepository tableStyleRepository, IContentCheckRepository contentCheckRepository)
 {
     _authManager            = authManager;
     _createManager          = createManager;
     _pathManager            = pathManager;
     _databaseManager        = databaseManager;
     _pluginManager          = pluginManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _contentGroupRepository = contentGroupRepository;
     _contentTagRepository   = contentTagRepository;
     _tableStyleRepository   = tableStyleRepository;
     _contentCheckRepository = contentCheckRepository;
 }
Beispiel #7
0
        /// <summary>
        /// Creates a new api from the currently registered
        /// repositories.
        /// </summary>
        public Api(
            IContentFactory contentFactory,
            IAliasRepository aliasRepository,
            IArchiveRepository archiveRepository,
            IContentRepository contentRepository,
            IContentGroupRepository contentGroupRepository,
            IContentTypeRepository contentTypeRepository,
            ILanguageRepository languageRepository,
            IMediaRepository mediaRepository,
            IPageRepository pageRepository,
            IPageTypeRepository pageTypeRepository,
            IParamRepository paramRepository,
            IPostRepository postRepository,
            IPostTypeRepository postTypeRepository,
            ISiteRepository siteRepository,
            ISiteTypeRepository siteTypeRepository,
            ICache cache              = null,
            IStorage storage          = null,
            IImageProcessor processor = null,
            ISearch search            = null)
        {
            // Store the cache
            _cache = cache;

            // Create services without dependencies
            ContentGroups = new ContentGroupService(contentGroupRepository, cache);
            ContentTypes  = new ContentTypeService(contentTypeRepository, cache);
            Languages     = new LanguageService(languageRepository, cache);
            PageTypes     = new PageTypeService(pageTypeRepository, cache);
            Params        = new ParamService(paramRepository, cache);
            PostTypes     = new PostTypeService(postTypeRepository, cache);
            SiteTypes     = new SiteTypeService(siteTypeRepository, cache);

            // Create services with dependencies
            Content  = new ContentService(contentRepository, contentFactory, Languages, cache, search);
            Sites    = new SiteService(siteRepository, contentFactory, Languages, cache);
            Aliases  = new AliasService(aliasRepository, Sites, cache);
            Media    = new MediaService(mediaRepository, Params, storage, processor, cache);
            Pages    = new PageService(pageRepository, contentFactory, Sites, Params, Media, cache, search);
            Posts    = new PostService(postRepository, contentFactory, Sites, Pages, Params, Media, cache, search);
            Archives = new ArchiveService(archiveRepository, Params, Posts);
        }
Beispiel #8
0
 public EditorController(ISettingsManager settingsManager, IAuthManager authManager, ICreateManager createManager, IPathManager pathManager, IDatabaseManager databaseManager, IPluginManager pluginManager, ICensorManager censorManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository, IContentTagRepository contentTagRepository, ITableStyleRepository tableStyleRepository, ITemplateRepository templateRepository, IContentCheckRepository contentCheckRepository, ITranslateRepository translateRepository, IStatRepository statRepository)
 {
     _settingsManager        = settingsManager;
     _authManager            = authManager;
     _createManager          = createManager;
     _pathManager            = pathManager;
     _databaseManager        = databaseManager;
     _pluginManager          = pluginManager;
     _censorManager          = censorManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _contentGroupRepository = contentGroupRepository;
     _contentTagRepository   = contentTagRepository;
     _tableStyleRepository   = tableStyleRepository;
     _templateRepository     = templateRepository;
     _contentCheckRepository = contentCheckRepository;
     _translateRepository    = translateRepository;
     _statRepository         = statRepository;
 }
Beispiel #9
0
 public GroupContentLayerAddController(IAuthManager authManager, IContentGroupRepository contentGroupRepository)
 {
     _authManager            = authManager;
     _contentGroupRepository = contentGroupRepository;
 }
 public SettingsContentGroupController(IAuthManager authManager, IContentGroupRepository contentGroupRepository)
 {
     _authManager            = authManager;
     _contentGroupRepository = contentGroupRepository;
 }