コード例 #1
0
 public ContractResourceFileController(
     IContractsService contractsService,
     IDocumentManagementService documentManagementService,
     IFolderStructureMasterService folderStructureMasterService,
     IFolderStructureFolderService folderStructureFolderService,
     IContractModificationService contractModificationService,
     IFileService fileService,
     IConfiguration configuration,
     IContractsService contractRefactorService,
     IUserService userService,
     IContractResourceFileService contractResourceFileService,
     IMapper mapper)
 {
     _contractsService             = contractsService;
     _documentManagementService    = documentManagementService;
     _folderStructureMasterService = folderStructureMasterService;
     _folderStructureFolderService = folderStructureFolderService;
     _contractModificationService  = contractModificationService;
     _fileService             = fileService;
     _configuration           = configuration;
     _contractRefactorService = contractRefactorService;
     _mapper      = mapper;
     _userService = userService;
     documentRoot = configuration.GetSection("Document").GetValue <string>("DocumentRoot");
     _logger      = LogManager.GetCurrentClassLogger();
     _contractResourceFileService = contractResourceFileService;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="service"></param>
 /// <param name="dmService"></param>
 /// <param name="accountService"></param>
 /// /// <param name="logger"></param>
 public DocumentManagementApiController(IDictionaryService service, IDocumentManagementService dmService, IAccountService accountService, ILogger logger)
 {
     _service        = service;
     _dmService      = dmService;
     _accountService = accountService;
     _logger         = logger;
 }
コード例 #3
0
 public MeetingRoomController(
     ICatalogService catalogService,
     IVmrService vmrService,
     IVmrGenericService vmrGenericService,
     IAdditionalFieldsService additionalFieldsService,
     IVmrStepsService vmrStepsServices,
     IVmrRemarksService vmrRemarksService,
     IVmrPermissionsService vmrPermissionsService,
     IVerDocumentService verDocumentService,
     ICommentService commentService,
     IVerGenericService verGenericService,
     IDocumentManagementService documentManagementService,
     ICommentRulesService commentRulesService,
     IVmrNotificationsService vmrNotificationsService)
 {
     _catalogService            = catalogService;
     _vmrService                = vmrService;
     _vmrGenericService         = vmrGenericService;
     _additionalFieldsService   = additionalFieldsService;
     _vmrStepsServices          = vmrStepsServices;
     _vmrRemarksService         = vmrRemarksService;
     _vmrPermissionsService     = vmrPermissionsService;
     _verGenericService         = verGenericService;
     _documentManagementService = documentManagementService;
     _viewModelMapperHelper     = new ViewModelMapperHelper(
         ViewBag,
         _vmrService,
         _catalogService,
         _vmrGenericService,
         commentService,
         commentRulesService);
     _verDocumentService      = verDocumentService;
     _vmrNotificationsService = vmrNotificationsService;
 }
コード例 #4
0
 public FolderService(IDocumentManagementService documentManagementService, IFolderStructureMasterService folderStructureMasterService,
                      IFolderStructureFolderService folderStructureFolderService)
 {
     _documentManagementService    = documentManagementService;
     _folderStructureMasterService = folderStructureMasterService;
     _folderStructureFolderService = folderStructureFolderService;
 }
コード例 #5
0
 public DocumentManagementController(IDocumentManagementService documentManagementService,
                                     INotificationsService notificationsService,
                                     IAuthService authService)
 {
     this.documentManagementService = documentManagementService;
     this.notificationsService      = notificationsService;
     this.authService = authService;
 }
コード例 #6
0
 public ContractManagementService(IManagerContextService managerContextService, IServiceSupplierContextService serviceSupplierContextService,
                                  IDocumentManagementService documentManagementService,
                                  DirectContractsDbContext dbContext, IDateTimeProvider dateTimeProvider)
 {
     _managerContext            = managerContextService;
     _serviceSupplierContext    = serviceSupplierContextService;
     _documentManagementService = documentManagementService;
     _dbContext        = dbContext;
     _dateTimeProvider = dateTimeProvider;
 }
コード例 #7
0
 public DocumentsController()
 {
     documentManagementService  = serviceHandler.GetDocumentManagementService();
     headerManagementService    = serviceHandler.GetHeaderManagementService();
     paragraphManagementService = serviceHandler.GetParagraphManagementService();
     footerManagementService    = serviceHandler.GetFooterManagementService();
     codeGenerator           = serviceHandler.GetCodeGeneratorService();
     documentLogger          = serviceHandler.GetDocumentModificationLogService();
     formatManagementService = serviceHandler.GetFormatManagementService();
 }
コード例 #8
0
 public AttachmentImportService(IImportFileService importFileService, IContractsService contractsService, IConfiguration configuration,
                                IDocumentManagementService documentManagementService, IContractResourceFileService contractResourceFileService, IContractModificationService contractModificationService)
 {
     _importFileService           = importFileService;
     _contractsService            = contractsService;
     _configuration               = configuration;
     _contractResourceFileService = contractResourceFileService;
     _documentManagementService   = documentManagementService;
     _contractModificationService = contractModificationService;
     rootPath = _configuration.GetSection("Document:DocumentRoot").Value;
 }
コード例 #9
0
 public MatrixChangesController(
     IMatrixChangesService matrixChangesService,
     ICatalogService catalogService,
     ITcmUniverseService tcmUniverseService,
     IDocumentManagementService docManagementService)
 {
     _catalogService        = catalogService;
     _matrixChangesService  = matrixChangesService;
     _viewModelMapperHelper = new ViewModelMapperHelper(_catalogService, null);
     _tcmUniverseService    = tcmUniverseService;
     _docManagementService  = docManagementService;
 }
コード例 #10
0
 public DisclosureDocumentController(
     IAuthorizationService authorizationService,
     IEnumMappingService enumMappingService,
     IDisclosureESGDocumentsService disclosureESGDocumentsService,
     IDocumentManagementService documentManagementService)
     : base(authorizationService, enumMappingService)
 {
     _enumMappingService            = enumMappingService;
     _authorizationService          = authorizationService;
     _disclosureESGDocumentsService = disclosureESGDocumentsService;
     _documentManagementService     = documentManagementService;
 }
コード例 #11
0
 public DelegationViewController(ICatalogService catalogService,
                                 IDelegationService delegationService,
                                 IUserTypeService userTypeService,
                                 IDocumentManagementService documentManagementService,
                                 IAuthorizationManager authorizationManager)
 {
     _catalogService        = catalogService;
     _delegationService     = delegationService;
     _userTypeService       = userTypeService;
     _viewModelMapperHelper =
         new Models.Delegation.ViewModelMapperHelper(ViewBag, _delegationService);
     _authorizeAllViewModelMapperHelper = new ViewModelMapperHelper();
     _documentManagementService         = documentManagementService;
     _authorizationManager = authorizationManager;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ContractCreationService"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="contractsDataService">The contracts data service.</param>
 /// <param name="sharePointClientService">The share point client service.</param>
 /// <param name="documentManagementService">The Aspose pdf document management service.</param>
 /// <param name="contractEventMapper">The contract processor service.</param>
 /// <param name="spClientServiceConfiguration">The SharePoint Client Service configuration.</param>
 public ContractCreationService(
     IContractEventProcessorLogger <IContractCreationService> logger,
     IContractsDataService contractsDataService,
     ISharePointClientService sharePointClientService,
     IDocumentManagementService documentManagementService,
     IContractEventMapper contractEventMapper,
     IOptions <SPClientServiceConfiguration> spClientServiceConfiguration)
 {
     _logger = logger;
     _contractsDataService      = contractsDataService;
     _sharePointClientService   = sharePointClientService;
     _documentManagementService = documentManagementService;
     _contractEventMapper       = contractEventMapper;
     _spConfig = spClientServiceConfiguration.Value;
 }
コード例 #13
0
 public VirtualEditingRoomController(
     IVerService verService,
     ICatalogService catalogService,
     IVerGenericService verGenericService,
     IVmrGenericService vmrGenericService,
     IVerStepsService verStepsService,
     IVersionHistoryService versionHistoryService,
     IVerTasksService verTasksService,
     IVerDocumentService verDocumentService,
     IVerPermissionsService verPermissionsService,
     IDocumentManagementService documentManagementService,
     IConcurrenceRepository concurrenceRepository,
     IAdUsersRepository adUsersRepository,
     IDisclosureESGDocumentBusinessLogic disclosureESGDocumentBusinessLogic,
     IVerVerifyContentService verVerifyContentService,
     IPolicyWaiverService policyWaiverService,
     IStatusPolicyWaiverService statusPolicyWaiverService,
     IDocumentRepository documentRepository)
 {
     _catalogService        = catalogService;
     _verService            = verService;
     _verGenericService     = verGenericService;
     _vmrGenericService     = vmrGenericService;
     _verStepsService       = verStepsService;
     _versionHistoryService = versionHistoryService;
     _verTasksService       = verTasksService;
     _verDocumentService    = verDocumentService;
     _verPermissionsService = verPermissionsService;
     _concurrenceRepository = concurrenceRepository;
     _adUsersRepository     = adUsersRepository;
     _policyWaiverService   = policyWaiverService;
     _viewModelMapperHelper = new ViewModelMapperHelper(
         ViewBag,
         _verService,
         _catalogService,
         _verTasksService,
         _verPermissionsService,
         _concurrenceRepository,
         _adUsersRepository);
     _documentManagementService          = documentManagementService;
     _disclosureESGDocumentBusinessLogic = disclosureESGDocumentBusinessLogic;
     _verVerifyContentService            = verVerifyContentService;
     _statusPolicyWaiverService          = statusPolicyWaiverService;
     _documentRepository = documentRepository;
 }
コード例 #14
0
        public string linkdocument([FromBody] DocumentRequest req)
        {
            IDocumentManagementService docmService = null;

            Authentication_class var_auth   = new Authentication_class();
            AuthenticationHeader authHeader = var_auth.getAuthHeader(req.username_ad, req.password_ad);

            AsmRepository.SetServiceLocationUrl(var_auth.var_service_location_url);

            docmService = AsmRepository.GetServiceProxy <IDocumentManagementService>(authHeader);

            var var_uri = new System.Uri(req.file_uri);


            Document doc = new Document
            {
                Name            = req.file_name,
                Uri             = req.file_uri, // File Path , must be correct. And it must be ICC configured file server
                CreatedDate     = DateTime.Now,
                CreatedByUserId = 45,           // ICC User ID
                HostId          = 23,           // Fixed Value 23
                FileSize        = req.file_size // must be the exact file size in Bytes
            };
            var newDoc = docmService.CreateDocument(doc);

            var docLink = new DocumentLink
            {
                DocumentId = newDoc.Id,
                CustomerId = req.cust_id,
                //DocumentType = 1
            };
            var          linkReason = 0;
            DocumentLink newDocLink = docmService.CreateDocumentLink(docLink, linkReason);

            return(req.file_uri);
        }
コード例 #15
0
 public DocumentManagementController(IDocumentManagementService documentManagementService)
 {
     _documentManagementService = documentManagementService;
 }
コード例 #16
0
 public UsersController()
 {
     documentManagementService = serviceHandler.GetDocumentManagementService();
     documentLogger            = serviceHandler.GetDocumentModificationLogService();
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="service"></param>
 public DocumentManagementController(IDocumentManagementService service)
 {
     _service = service;
 }
コード例 #18
0
 public DocumentsController(IDocumentManagementService documentManagementService)
 {
     this.documentManagementService = documentManagementService;
 }