コード例 #1
0
        public SearchController(
            IProjectService projectService,
            IContentDefinitionManager contentDefinitionManager,
            ICRMContentOwnershipService contentOwnershipService,
            IProjectSearchService projectSearchService,
            IOrchardServices services,
            IContentManager contentManager,
            ISiteService siteService,
            IShapeFactory shapeFactory)
        {
            this.contentDefinitionManager = contentDefinitionManager;
            this.projectService           = projectService;
            this.contentOwnershipService  = contentOwnershipService;
            Services = services;
            _projectSearchService = projectSearchService;
            _contentManager       = contentManager;
            _siteService          = siteService;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
            Shape  = shapeFactory;

            searchFieldsBasedOnContentType.Add("Ticket", new[] { CRMCommentsPart.CommentsFieldName, TicketPart.DescriptionFieldName, TicketPart.TitleFieldName });
            searchFieldsBasedOnContentType.Add(ContentTypes.DiscussionContentType, new[] { CRMCommentsPart.CommentsFieldName, FieldNames.BodyFieldName, FieldNames.TitleFieldName });
            searchFieldsBasedOnContentType.Add(ContentTypes.WikiItemType, new[] { CRMCommentsPart.CommentsFieldName, FieldNames.BodyFieldName, FieldNames.TitleFieldName });
            searchFieldsBasedOnContentType.Add(ContentTypes.FolderContentType, new[] { CRMCommentsPart.CommentsFieldName, FieldNames.TitleFieldName });
        }
コード例 #2
0
ファイル: UserController.cs プロジェクト: YSRE/SuperRocket
        public UserController(
            IMasterDetailPermissionManager masterDetailPermissionManager,
            IIndexProvider indexProvider,
            IContentOwnershipHelper contentOwnershipHelper,
            IExtendedProjectService projectService,
            IHelperService helperService,
            IOrchardServices services,
            IActivityStreamService activityStreamService,
            ICRMContentOwnershipService contentOwnershipService,
            IBasicDataService basicDataService,
            IMembershipService membershipService,
            IUserService userService,
            IShapeFactory shapeFactory,
            IEnumerable <IUserEventHandler> userEventHandlers,
            ISiteService siteService)
        {
            this.masterDetailPermissionManager = masterDetailPermissionManager;
            this.indexProvider           = indexProvider;
            this.contentOwnershipHelper  = contentOwnershipHelper;
            this.projectService          = projectService;
            this.activityStreamService   = activityStreamService;
            this.contentOwnershipService = contentOwnershipService;
            this.basicDataService        = basicDataService;
            this.services      = services;
            this.helperService = helperService;
            _membershipService = membershipService;
            _userService       = userService;
            _userEventHandlers = userEventHandlers;
            _siteService       = siteService;

            T     = NullLocalizer.Instance;
            Shape = shapeFactory;
        }
コード例 #3
0
        public bool CanApply(IContent content, ICRMContentOwnershipService contentOwnershipService)
        {
            var folderPart     = content.As <FolderPart>();
            var attachToFolder = content.As <AttachToFolderPart>();

            return(folderPart != null || attachToFolder != null);
        }
コード例 #4
0
 public FolderController(
     IIndexProvider indexProvider,
     IContentOwnershipHelper contentOwnershipHelper,
     ICRMContentOwnershipService crmContentOwnershipService,
     IExtendedContentManager extendedContentManager,
     ITransactionManager transactionManager,
     IWidgetService widgetService,
     IThemeAwareViewEngine themeAwareViewEngine,
     IShapeFactory shapeFactory,
     IContentManager contentManager,
     IOrchardServices services,
     IDisplayHelperFactory displayHelperFactory,
     IBusinessUnitService businessUnitService,
     ISiteService siteService,
     IBasicDataService basicDataService,
     IContentDefinitionManager contentDefinitionManager,
     IIndexManager indexManager,
     IWorkContextAccessor workContextAccessor,
     IActivityStreamService activityStreamService,
     IContentItemDescriptorManager contentItemDescriptorManager)
     : base(ContentTypes.FolderContentType, "Folder_Edit", indexProvider, services, crmContentOwnershipService, transactionManager, extendedContentManager, contentManager, widgetService, themeAwareViewEngine, shapeFactory, displayHelperFactory, basicDataService, contentOwnershipHelper, activityStreamService, contentItemDescriptorManager)
 {
     this.T      = NullLocalizer.Instance;
     this.Logger = NullLogger.Instance;
 }
コード例 #5
0
 public CreateTicketActivity(
     IRepository <UserPartRecord> userRepository,
     IActivityStreamService activityStreamService,
     IFileService fileService,
     ITokenizer tokenizer,
     IContentOwnershipHelper contentOwnershipHelper,
     ICRMContentOwnershipService contentOwnershipService,
     IContentDefinitionManager contentDefinitionManager,
     IContentManager contentManager,
     IBasicDataService basicDataService,
     IRepository <TicketIdentityRecord> ticketIdentityRecordRepository,
     IRepository <ContentItemPermissionDetailRecord> contentItemPermissionDetailRepository)
 {
     this.userRepository           = userRepository;
     this.fileService              = fileService;
     this.contentDefinitionManager = contentDefinitionManager;
     this.contentOwnershipHelper   = contentOwnershipHelper;
     this.tokenizer = tokenizer;
     this.ticketIdentityRecordRepository = ticketIdentityRecordRepository;
     this.contentOwnershipService        = contentOwnershipService;
     this.basicDataService = basicDataService;
     this.contentItemPermissionDetailRepository = contentItemPermissionDetailRepository;
     this.contentManager        = contentManager;
     this.activityStreamService = activityStreamService;
     T      = NullLocalizer.Instance;
     Logger = NullLogger.Instance;
 }
コード例 #6
0
 public AttachToProjectStreamWriter(IContentItemDescriptorManager contentItemDescriptorManager, IProjectService projectService, ICRMContentOwnershipService contentOwnershipService)
 {
     this.contentOwnershipService      = contentOwnershipService;
     this.projectService               = projectService;
     this.contentItemDescriptorManager = contentItemDescriptorManager;
     this.T = NullLocalizer.Instance;
 }
コード例 #7
0
 public ContentOwnershipController(
     IMasterDetailPermissionManager masterDetailPermissionManager,
     IBasicDataService basicDataService,
     IActivityStreamService activityStreamService,
     IWorkContextAccessor workContextAccessor,
     IIndexProvider indexProvider,
     IOrchardServices orchardServices,
     IWidgetService widgetService,
     ICRMContentOwnershipService contentOwnershipService,
     IContentOwnershipHelper contentOwnershipHelper,
     IRepository <UserRolesPartRecord> userRolesRepository,
     IRepository <ContentItemPermissionDetailRecord> permissionDetailRecordRepository)
 {
     this.masterDetailPermissionManager = masterDetailPermissionManager;
     this.basicDataService      = basicDataService;
     this.activityStreamService = activityStreamService;
     this.workContextAccessor   = workContextAccessor;
     this.indexProvider         = indexProvider;
     this.T = NullLocalizer.Instance;
     this.contentOwnershipHelper           = contentOwnershipHelper;
     this.userRolesRepository              = userRolesRepository;
     this.contentOwnershipService          = contentOwnershipService;
     this.orchardServices                  = orchardServices;
     this.widgetService                    = widgetService;
     this.permissionDetailRecordRepository = permissionDetailRecordRepository;
 }
コード例 #8
0
 public ContentItemPermissionDriver(IProjectService projectService, ICRMContentOwnershipService contentOwnershipService, IOrchardServices orchardServices, IContentOwnershipHelper contentOwnershipHelper)
 {
     this.T = NullLocalizer.Instance;
     this.contentOwnershipHelper  = contentOwnershipHelper;
     this.orchardServices         = orchardServices;
     this.contentOwnershipService = contentOwnershipService;
     this.projectService          = projectService;
 }
コード例 #9
0
 public FolderDriver(
     IExtendedProjectService projectService,
     IHelperService helperService,
     IFolderService folderService,
     ICRMContentOwnershipService contentOwnershipService,
     IOrchardServices services) : base(contentOwnershipService, projectService, services, helperService, folderService)
 {
 }
コード例 #10
0
 public SidebarDashboardDriver(
     ICRMContentOwnershipService crmContentOwnershipService,
     IContentDefinitionManager contentDefinitionManager,
     IOrchardServices orchardServices,
     ISiteService siteService,
     IFeedManager feedManager, IContainerService containerService)
     : base(crmContentOwnershipService, contentDefinitionManager, orchardServices, siteService, feedManager, containerService)
 {
 }
コード例 #11
0
 public SuiteCRMProjectDriver(
     IOrchardServices services,
     IWorkContextAccessor workContextAccessor,
     ICRMContentOwnershipService contentOwnershipService)
 {
     this.contentOwnershipService = contentOwnershipService;
     this.workContextAccessor     = workContextAccessor;
     this.services = services;
 }
コード例 #12
0
 public ProjectTitleAndMenuDriver(
     IFolderService folderService,
     IOrchardServices services,
     IExtendedProjectService projectService,
     IHelperService helperService,
     ICRMContentOwnershipService contentOwnershipService)
     : base(contentOwnershipService, projectService, services, helperService, folderService)
 {
     this.extendedProjectService = projectService;
 }
コード例 #13
0
ファイル: VisitController.cs プロジェクト: YSRE/SuperRocket
 public VisitController(
     IOrchardServices services,
     ICRMContentOwnershipService crmContentOwnershipService,
     IActivityNotificationService activityNotificationService)
 {
     this.activityNotificationService = activityNotificationService;
     this.crmContentOwnershipService  = crmContentOwnershipService;
     this.services = services;
     T             = NullLocalizer.Instance;
 }
コード例 #14
0
 public ContentItemPermissionFilter(
     IOrchardServices orchardServices,
     IBasicDataService basicDataService,
     ICRMContentOwnershipService contentOwnershipService)
 {
     this.contentOwnershipService = contentOwnershipService;
     this.orchardServices         = orchardServices;
     this.basicDataService        = basicDataService;
     this.T = NullLocalizer.Instance;
 }
コード例 #15
0
 public SuiteCRMTaskDriver(
     ISuiteCRMDataService suiteCRMDataService,
     IOrchardServices services,
     IWorkContextAccessor workContextAccessor,
     ICRMContentOwnershipService contentOwnershipService)
 {
     this.suiteCRMDataService     = suiteCRMDataService;
     this.contentOwnershipService = contentOwnershipService;
     this.workContextAccessor     = workContextAccessor;
     this.services = services;
 }
コード例 #16
0
 public GenericDashboardDriver(
     IContentDefinitionManager contentDefinitionManager,
     IOrchardServices orchardServices,
     ICRMContentOwnershipService crmContentOwnershipService,
     ISiteService siteService,
     IFeedManager feedManager, IContainerService containerService)
     : base(crmContentOwnershipService, contentDefinitionManager, orchardServices, siteService, feedManager, containerService)
 {
     // display all  the items in the Dashboard
     pageSize = -1;
 }
コード例 #17
0
 public AttachToMilestoneDriver(
     IMilestoneService milestoneService,
     ICRMContentOwnershipService contentOwnershipService,
     IExtendedProjectService projectService,
     IOrchardServices services,
     IHelperService helperService,
     IFolderService folderService)
     : base(contentOwnershipService, projectService, services, helperService, folderService)
 {
     this.milestoneService = milestoneService;
 }
コード例 #18
0
 public ProjectDetailPermissionProvider(
     IContentManager contentManager,
     IRepository <ContentItemPermissionDetailRecord> permissionDetailRecordRepository,
     ICRMContentOwnershipService crmContentOwnershipService,
     IContentOwnershipHelper contentOwnershipHelper)
 {
     this.permissionDetailRecordRepository = permissionDetailRecordRepository;
     this.contentOwnershipHelper           = contentOwnershipHelper;
     this.crmContentOwnershipService       = crmContentOwnershipService;
     this.contentManager = contentManager;
 }
コード例 #19
0
 public TicketMenuItemDriver(
     IOrchardServices services,
     IContentOwnershipHelper contentOwnershipHelper,
     ICRMContentOwnershipService contentOwnershipService,
     IBasicDataService basicDataService)
     : base(services)
 {
     this.contentOwnershipHelper  = contentOwnershipHelper;
     this.basicDataService        = basicDataService;
     this.contentOwnershipService = contentOwnershipService;
     this.T = NullLocalizer.Instance;
 }
コード例 #20
0
 public BasicDataSelectForm(
     ICRMContentOwnershipService crmContentOwnershipService,
     ITagBuilderFactory tagBuilderFactory,
     IBasicDataService basicDataService,
     ITokenizer tokenizer)
 {
     this.crmContentOwnershipService = crmContentOwnershipService;
     this.basicDataService           = basicDataService;
     this.tokenizer         = tokenizer;
     this.tagBuilderFactory = tagBuilderFactory;
     this.T = NullLocalizer.Instance;
 }
コード例 #21
0
ファイル: ProjectListDriver.cs プロジェクト: YSRE/SuperRocket
 public ProjectListDriver(
     IHelperService helperService,
     IProjectService projectService,
     ICRMContentOwnershipService contentOwnershipService,
     IOrchardServices services)
 {
     this.helperService           = helperService;
     this.services                = services;
     this.contentOwnershipService = contentOwnershipService;
     this.projectService          = projectService;
     this.T = NullLocalizer.Instance;
 }
コード例 #22
0
 public TicketDriver(
     IBasicDataService basicDataService,
     ICRMContentOwnershipService contentOwnershipService,
     IOrchardServices orchardServices,
     IRepository <TicketIdentityRecord> ticketIdentityRecordRepository)
 {
     this.basicDataService = basicDataService;
     this.ticketIdentityRecordRepository = ticketIdentityRecordRepository;
     this.orchardServices         = orchardServices;
     this.contentOwnershipService = contentOwnershipService;
     this.T = NullLocalizer.Instance;
 }
コード例 #23
0
 public MilestoneDriver(
     IBasicDataService basicDataService,
     IMilestoneService milestoneService,
     IExtendedProjectService projectService,
     IHelperService helperService,
     IFolderService folderService,
     ICRMContentOwnershipService contentOwnershipService,
     IOrchardServices services)
     : base(contentOwnershipService, projectService, services, helperService, folderService)
 {
     this.basicDataService = basicDataService;
     this.milestoneService = milestoneService;
 }
コード例 #24
0
 public FileUploadPartDriver(
     ICRMContentOwnershipService crmContentOwnershipService,
     IMediaLibraryService mediaService,
     IAliasService aliasService,
     IStorageProvider storageProvider,
     ITokenizer tokenizer)
 {
     this.crmContentOwnershipService = crmContentOwnershipService;
     this.storageProvider            = storageProvider;
     _mediaService = mediaService;
     _aliasService = aliasService;
     _tokenizer    = tokenizer;
 }
コード例 #25
0
 /// <summary>
 /// The base class for FolderDriver and ProjectTitleAndMenuDriver.
 /// </summary>
 public MenuBaseDriver(
     ICRMContentOwnershipService contentOwnershipService,
     IExtendedProjectService projectService,
     IOrchardServices services,
     IHelperService helperService,
     IFolderService folderService)
 {
     this.contentOwnershipService = contentOwnershipService;
     this.projectService          = projectService;
     this.helperService           = helperService;
     this.folderService           = folderService;
     this.services = services;
     this.T        = NullLocalizer.Instance;
 }
コード例 #26
0
 public DashboardDriver(
     ICRMContentOwnershipService crmContentOwnershipService,
     IOrchardServices orchardServices,
     IGroupQuery groupQuery,
     IBasicDataService basicDataService,
     IProjectionManagerWithDynamicSort projectionManagerWithDynamicSort
     )
     : base(orchardServices)
 {
     this.crmContentOwnershipService = crmContentOwnershipService;
     this.groupQuery = groupQuery;
     this.projectionManagerWithDynamicSort = projectionManagerWithDynamicSort;
     this.basicDataService = basicDataService;
 }
コード例 #27
0
 public FolderService(
     IContentDefinitionManager contentDefinitionManager,
     ISiteService siteService,
     IOrchardServices services,
     ICRMContentOwnershipService crmContentOwnershipService,
     IProjectionManagerWithDynamicSort projectionManagerWithDynamicSort)
     : base(services, projectionManagerWithDynamicSort)
 {
     this.contentDefinitionManager = contentDefinitionManager;
     this.siteService = siteService;
     this.crmContentOwnershipService = crmContentOwnershipService;
     this.Logger = NullLogger.Instance;
     this.T      = NullLocalizer.Instance;
 }
コード例 #28
0
 public TicketsForContentItemDriver(
     IWorkContextAccessor workContextAccessor,
     IOrchardServices services,
     ISearchTicketService searchTicketService,
     ICRMContentOwnershipService crmContentOwnershipService,
     IGroupQuery groupQuery,
     IBasicDataService basicDataService)
     : base(services)
 {
     this.searchTicketService        = searchTicketService;
     this.workContextAccessor        = workContextAccessor;
     this.crmContentOwnershipService = crmContentOwnershipService;
     this.groupQuery       = groupQuery;
     this.basicDataService = basicDataService;
 }
コード例 #29
0
 public ProjectDriver(
     IMenuService menuService,
     IExtendedProjectService projectService,
     IProjectionManagerWithDynamicSort projectionWithDynamicSort,
     IActivityStreamService activityStreamService,
     ICRMContentOwnershipService contentOwnershipService,
     IOrchardServices services)
 {
     this.menuService               = menuService;
     this.contentOwnershipService   = contentOwnershipService;
     this.projectionWithDynamicSort = projectionWithDynamicSort;
     this.services = services;
     this.activityStreamService = activityStreamService;
     this.projectService        = projectService;
 }
コード例 #30
0
 public CreateTicketActivityForm(
     IProjectService projectService,
     IBasicDataService basicDataService,
     IContentOwnershipHelper contentOwnershipHelper,
     ICRMContentOwnershipService contentOwnershipService,
     IShapeFactory shapeFactory,
     IContentManager contentManager)
 {
     this.contentOwnershipHelper  = contentOwnershipHelper;
     this.contentOwnershipService = contentOwnershipService;
     this.basicDataService        = basicDataService;
     this.contentManager          = contentManager;
     this.projectService          = projectService;
     this.Shape = shapeFactory;
     this.T     = NullLocalizer.Instance;
 }