Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
0
 public ServiceBranchActivity(
     IBasicDataService basicDataService,
     IContentManager contentManager)
     : base(contentManager)
 {
     this.basicDataService = basicDataService;
 }
Ejemplo n.º 3
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;
 }
Ejemplo n.º 4
0
 public ProjectCommand(
     IRepository <SortCriterionRecord> sortRepository,
     IRepository <EmailTemplateRecord> emailTemplatesRepository,
     IRepository <WorkflowDefinitionRecord> workflowDefinitionRepository,
     IRepository <ActivityRecord> activityRepository,
     IRepository <TransitionRecord> transitionRepository,
     IRepository <ReportRecord> reportRepository,
     IRepository <LayoutRecord> layoutRepository,
     IContentManager contentManager,
     IRepository <FilterRecord> filterRepository,
     IRepository <FilterGroupRecord> filterGroupRepository,
     IBasicDataService basicDataService
     )
 {
     this.basicDataService             = basicDataService;
     this.sortRepository               = sortRepository;
     this.emailTemplatesRepository     = emailTemplatesRepository;
     this.layoutRepository             = layoutRepository;
     this.filterGroupRepository        = filterGroupRepository;
     this.filterRepository             = filterRepository;
     this.contentManager               = contentManager;
     this.reportRepository             = reportRepository;
     this.transitionRepository         = transitionRepository;
     this.activityRepository           = activityRepository;
     this.workflowDefinitionRepository = workflowDefinitionRepository;
 }
 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;
 }
Ejemplo n.º 6
0
        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;
        }
Ejemplo n.º 7
0
 public ActivityTokenProvider(
     IContentManager contentManager,
     IBasicDataService basicDataService
     )
 {
     this.contentManager = contentManager;
     this.T = NullLocalizer.Instance;
     this.basicDataService = basicDataService;
 }
Ejemplo n.º 8
0
 public BusinessUnitService(
     IBasicDataService basicDataService,
     IRepository <BusinessUnitPartRecord> businessUnitPartRecordRepository,
     IOrchardServices orchardServices
     )
 {
     this.basicDataService = basicDataService;
     this.orchardServices  = orchardServices;
     this.businessUnitPartRecordRepository = businessUnitPartRecordRepository;
 }
Ejemplo n.º 9
0
 public ContentItemPermissionFilter(
     IOrchardServices orchardServices,
     IBasicDataService basicDataService,
     ICRMContentOwnershipService contentOwnershipService)
 {
     this.contentOwnershipService = contentOwnershipService;
     this.orchardServices         = orchardServices;
     this.basicDataService        = basicDataService;
     this.T = NullLocalizer.Instance;
 }
Ejemplo n.º 10
0
 public UpdateTicketActivityForm(
     IBasicDataService basicDataService,
     IShapeFactory shapeFactory,
     IContentManager contentManager)
 {
     this.basicDataService = basicDataService;
     this.contentManager   = contentManager;
     this.Shape            = shapeFactory;
     this.T = NullLocalizer.Instance;
 }
 public ContentItemPermissionPartStreamWriter(
     IOrchardServices services,
     IBasicDataService basicDataService,
     IContentItemDescriptorManager contentItemDescriptorManager)
 {
     this.contentItemDescriptorManager = contentItemDescriptorManager;
     this.basicDataService             = basicDataService;
     this.services = services;
     this.T        = NullLocalizer.Instance;
 }
Ejemplo n.º 12
0
 public TicketStreamWriter(
     IOrchardServices services,
     IBasicDataService basicDataService,
     IRepository <TicketPartRecord> ticketRepository)
 {
     this.ticketRepository = ticketRepository;
     this.basicDataService = basicDataService;
     this.services         = services;
     this.T = NullLocalizer.Instance;
 }
Ejemplo n.º 13
0
 public TicketTypeForm(IShapeFactory shapeFactory, IBasicDataService basicDataService)
     : base(shapeFactory)
 {
     this.basicDataService  = basicDataService;
     this.formName          = FormName;
     this.selectName        = "TicketType_Id";
     this.selectId          = "TicketType_Id";
     this.selectTitle       = "Ticket Type";
     this.selectDescription = "TicketType of the record";
     this.selectSize        = 5;
 }
Ejemplo n.º 14
0
 public TicketPriorityForm(IShapeFactory shapeFactory, IBasicDataService basicDataService)
     : base(shapeFactory)
 {
     this.basicDataService  = basicDataService;
     this.formName          = FormName;
     this.selectName        = "Priority_Id";
     this.selectId          = "Priority_Id";
     this.selectTitle       = "Priority";
     this.selectDescription = "Priority of the ticket";
     this.selectSize        = 5;
 }
Ejemplo n.º 15
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;
 }
Ejemplo n.º 16
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;
 }
Ejemplo n.º 17
0
 public ProjectForm(IShapeFactory shapeFactory, IBasicDataService basicDataService, IContentManager contentManager)
     : base(shapeFactory)
 {
     this.contentManager    = contentManager;
     this.basicDataService  = basicDataService;
     this.formName          = FormName;
     this.selectName        = "Project_Id";
     this.selectId          = "Project_Id";
     this.selectTitle       = "Select Project";
     this.selectDescription = "Select a project from the list";
     this.selectSize        = 5;
 }
Ejemplo n.º 18
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;
 }
Ejemplo n.º 19
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;
 }
Ejemplo n.º 20
0
 public ActivityStreamPartDriver(
     IProjectionManagerWithDynamicSort projectionManagerWithDynamicSort,
     IOrchardServices services,
     Lazy <ISessionLocator> sessionLocator,
     IBasicDataService basicDataService,
     IActivityStreamService activityStreamService)
     : base(services)
 {
     this.projectionManagerWithDynamicSort = projectionManagerWithDynamicSort;
     this.basicDataService      = basicDataService;
     this.activityStreamService = activityStreamService;
     this.sessionLocator        = sessionLocator;
     this.T = NullLocalizer.Instance;
 }
Ejemplo n.º 21
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;
 }
 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;
 }
 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;
 }
Ejemplo n.º 24
0
 public CRMContentOwnershipService(
     IEnumerable <ICRMContentOwnershipServiceExtension> contentOwnershipServiceExtensions,
     IRepository <RolesPermissionsRecord> rolesPermissionsRepository,
     IBasicDataService basicDataService,
     IWorkflowManager workflowManager,
     IOrchardServices orchardServices,
     IRepository <UserRolesPartRecord> userRolesRepository
     )
 {
     this.T = NullLocalizer.Instance;
     this.workflowManager                   = workflowManager;
     this.basicDataService                  = basicDataService;
     this.rolesPermissionsRepository        = rolesPermissionsRepository;
     this.userRolesRepository               = userRolesRepository;
     this.orchardServices                   = orchardServices;
     this.contentOwnershipServiceExtensions = contentOwnershipServiceExtensions;
 }
 public ProjectItemsOwnershipController(
     IMasterDetailPermissionManager masterDetailPermissionManager,
     IBasicDataService basicDataService,
     IActivityStreamService activityStreamService,
     IWorkContextAccessor workContextAccessor,
     IIndexProvider indexProvider,
     IOrchardServices orchardServices,
     IWidgetService widgetService,
     ICRMContentOwnershipService contentOwnershipService,
     IContentOwnershipHelper contentOwnershipHelper,
     IRepository <UserRolesPartRecord> userRolesRepository,
     IRepository <ContentItemPermissionDetailRecord> permissionDetailRecordRepository) :
     base(masterDetailPermissionManager, basicDataService, activityStreamService, workContextAccessor, indexProvider, orchardServices, widgetService, contentOwnershipService, contentOwnershipHelper, userRolesRepository, permissionDetailRecordRepository)
 {
     this.DefaultDisplayType = "TitleAndMenu";
     this.ShowCustomers      = true;
 }
Ejemplo n.º 26
0
 public BasicDataController(
     IValidationService validationService,
     IRepository <StatusRecord> statusRepository,
     IRepository <PriorityRecord> priorityRepository,
     IRepository <TicketTypeRecord> ticketTypeRepository,
     IBasicDataService basicDataService,
     ITransactionManager transactionManager,
     IOrchardServices services)
 {
     this.transactionManager = transactionManager;
     this.validationService  = validationService;
     this.statusRepository   = statusRepository;
     this.basicDataService   = basicDataService;
     this.T                    = NullLocalizer.Instance;
     this.services             = services;
     this.ticketTypeRepository = ticketTypeRepository;
     this.priorityRepository   = priorityRepository;
 }
Ejemplo n.º 27
0
        public TeamHandler(IRepository <TeamPartRecord> repository, IBasicDataService basicDataService)
        {
            Filters.Add(StorageFilter.For(repository));
            this.OnCreated <TeamPart>((context, part) =>
            {
                basicDataService.ClearCache();
            });

            this.OnUpdated <TeamPart>((context, part) =>
            {
                basicDataService.ClearCache();
            });

            this.OnRemoved <TeamPart>((context, part) =>
            {
                basicDataService.ClearCache();
            });
        }
Ejemplo n.º 28
0
        public UserRoleHandler(IRepository <UserRolesPartRecord> repository, IBasicDataService basicDataService)
        {
            Filters.Add(new ActivatingFilter <UserRolesPart>("User"));

            this.OnCreated <UserRolesPart>((contextPart, part) =>
            {
                basicDataService.ClearCache();
            });

            this.OnUpdated <UserRolesPart>((contextPart, part) =>
            {
                basicDataService.ClearCache();
            });

            this.OnRemoved <UserRolesPart>((contextPart, part) =>
            {
                basicDataService.ClearCache();
            });
        }
Ejemplo n.º 29
0
 public SearchTicketService(
     IProjectService projectService,
     IProjectionManagerWithDynamicSort projectionManagerWithDynamicSort,
     IIndexManager indexManager,
     IBasicDataService basicDataService,
     ICRMContentOwnershipService crmContentOwnershipService,
     IOrchardServices services,
     ISiteService siteService)
 {
     this.projectService   = projectService;
     this.basicDataService = basicDataService;
     this.projectionManagerWithDynamicSort = projectionManagerWithDynamicSort;
     this.siteService = siteService;
     this.crmContentOwnershipService = crmContentOwnershipService;
     this.services     = services;
     this.indexManager = indexManager;
     this.Logger       = NullLogger.Instance;
     this.T            = NullLocalizer.Instance;
 }
Ejemplo n.º 30
0
 public TicketController(
     Lazy <IEnumerable <IContentHandler> > handlers,
     IProjectService projectService,
     IIndexProvider indexProvider,
     ISearchTicketService searchTicketService,
     IContentOwnershipHelper contentOwnershipHelper,
     IRepository <UserRolesPartRecord> userRolesRepository,
     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,
     IRepository <BusinessUnitMemberPartRecord> businessUnitMembersRepository,
     IIndexManager indexManager,
     IWorkContextAccessor workContextAccessor,
     IActivityStreamService streamService,
     IContentItemDescriptorManager contentItemDescriptorManager)
     : base("Ticket", "Ticket_Edit", indexProvider, services, crmContentOwnershipService, transactionManager, extendedContentManager, contentManager, widgetService, themeAwareViewEngine, shapeFactory, displayHelperFactory, basicDataService, contentOwnershipHelper, streamService, contentItemDescriptorManager)
 {
     this.handlers                      = handlers;
     this.projectService                = projectService;
     this.workContextAccessor           = workContextAccessor;
     this.searchTicketService           = searchTicketService;
     this.userRolesRepository           = userRolesRepository;
     this.businessUnitService           = businessUnitService;
     this.siteService                   = siteService;
     this.contentDefinitionManager      = contentDefinitionManager;
     this.indexManager                  = indexManager;
     this.businessUnitMembersRepository = businessUnitMembersRepository;
     this.T                = NullLocalizer.Instance;
     this.Logger           = NullLogger.Instance;
     this.defaultQueryHint = this.defaultQueryHint.ExpandRecords <TicketPartRecord>();
     this.defaultQueryHint = this.defaultQueryHint.ExpandRecords <ContentItemPermissionPartRecord>();
     this.defaultQueryHint = this.defaultQueryHint.ExpandRecords <CRMCommentsPartRecord>();
 }