// GET: Admin/ProjectServices
        public ActionResult Index(int?page)
        {
            string      psKeyword     = Session["psKeyword"]?.ToString();
            ServiceType?serviceType   = (ServiceType?)Session["serviceType"];
            DateTime?   psStrDateTime = (DateTime?)Session["psStrDateTime"];
            DateTime?   psEndDateTime = (DateTime?)Session["psEndDateTime"];
            int         UserPage      = page.HasValue ? page.Value - 1 : 0;
            var         user          = db.ProjectServices.OrderBy(x => x.DateTime).AsQueryable();

            if (!string.IsNullOrEmpty(psKeyword))
            {
                user = user.Where(x => x.Subject.Contains(psKeyword) || x.Content.Contains(psKeyword));
            }

            if (serviceType.HasValue)
            {
                user = user.Where(x => x.ServiceType == serviceType);
            }
            if (psStrDateTime.HasValue && psEndDateTime.HasValue)
            {
                psEndDateTime = psEndDateTime.Value.AddDays(1);
                user          = user.Where(x => x.DateTime >= psStrDateTime && x.DateTime <= psEndDateTime);
            }
            return(View(user.ToPagedList(UserPage, DefaultPageSize)));
        }
Beispiel #2
0
        private static ServiceBE NewServiceFromXml(XDoc serviceDoc, string SID, string description, bool?statusEnabled,
                                                   bool?localInit, ServiceType?type, string uri, NameValueCollection config, NameValueCollection preferences)
        {
            ServiceBE service = new ServiceBE();

            if (string.IsNullOrEmpty(SID) && (localInit ?? true))
            {
                throw new ServiceMissingCreateSIDInvalidOperationException();
            }

            if (type == null || type == ServiceType.UNDEFINED)
            {
                throw new ServiceMissingCreateTypeInvalidArgumentException();
            }

            service.SID             = SID ?? string.Empty;
            service.Description     = description ?? string.Empty;
            service.ServiceEnabled  = statusEnabled ?? true;
            service.ServiceLocal    = localInit ?? true;
            service.Type            = type.Value;
            service.Uri             = uri ?? string.Empty;
            service.Preferences     = preferences ?? new NameValueCollection();
            service.Config          = config ?? new NameValueCollection();
            service.ServiceLastEdit = DateTime.UtcNow;

            return(service);
        }
Beispiel #3
0
        /// <summary>
        /// Make a HTTP request without a payload.
        /// </summary>
        /// <param name="requestMethod">Request method, e.g. GET.</param>
        /// <param name="url">Request endpoint.</param>
        /// <param name="authorisationToken">The authorization token.</param>
        /// <param name="serviceType">Service type.</param>
        /// <param name="navigationPage">Current paging index.</param>
        /// <param name="navigationPageSize">Page size.</param>
        /// <param name="contentTypeOverride">Overrides the ContentType header.</param>
        /// <param name="acceptOverride">Overrides the Accept header.</param>
        /// <returns>Response.</returns>
        private static string RequestWithoutPayload(RequestMethod requestMethod,
                                                    string url,
                                                    AuthorisationToken authorisationToken,
                                                    ServiceType?serviceType    = null,
                                                    int?navigationPage         = null,
                                                    int?navigationPageSize     = null,
                                                    string contentTypeOverride = null,
                                                    string acceptOverride      = null)
        {
            HttpWebRequest request = CreateHttpWebRequest(requestMethod, url, authorisationToken, serviceType, navigationPage, navigationPageSize, null, contentTypeOverride, acceptOverride);

            using (WebResponse response = request.GetResponse())
            {
                string responseString = null;

                if (response != null)
                {
                    using (StreamReader reader = new StreamReader(response.GetResponseStream()))
                    {
                        responseString = reader.ReadToEnd().Trim();
                    }
                }

                return(responseString);
            }
        }
Beispiel #4
0
        /// <summary>
        /// Make a HTTP request with a payload.
        /// </summary>
        /// <param name="requestMethod">Request method, e.g. GET.</param>
        /// <param name="url">Request endpoint.</param>
        /// <param name="authorisationToken">The authorization token.</param>
        /// <param name="body">The data payload to send.</param>
        /// <param name="serviceType">Service type.</param>
        /// <param name="methodOverride">Overrides the method of the request, e.g. to implement a GET with a payload over a POST request.</param>
        /// <param name="contentTypeOverride">Overrides the ContentType header.</param>
        /// <param name="acceptOverride">Overrides the Accept header.</param>
        /// <returns>Response.</returns>
        private static string RequestWithPayload(RequestMethod requestMethod,
                                                 string url,
                                                 AuthorisationToken authorisationToken,
                                                 string body,
                                                 ServiceType?serviceType    = null,
                                                 string methodOverride      = null,
                                                 string contentTypeOverride = null,
                                                 string acceptOverride      = null)
        {
            HttpWebRequest request = CreateHttpWebRequest(requestMethod, url, authorisationToken, serviceType, null, null, methodOverride, contentTypeOverride, acceptOverride);

            using (Stream requestStream = request.GetRequestStream())
            {
                if (body != null)
                {
                    byte[] payload = Encoding.UTF8.GetBytes(body);
                    requestStream.Write(payload, 0, payload.Length);
                }

                using (WebResponse response = request.GetResponse())
                {
                    string responseString = null;

                    if (response != null)
                    {
                        using (StreamReader reader = new StreamReader(response.GetResponseStream()))
                        {
                            responseString = reader.ReadToEnd().Trim();
                        }
                    }

                    return(responseString);
                }
            }
        }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WorksapceOngoingTasksModel" /> class.
 /// </summary>
 /// <param name="taskName">taskName.</param>
 /// <param name="serviceType">serviceType.</param>
 /// <param name="serviceTypeDescription">serviceTypeDescription.</param>
 /// <param name="instanceId">instanceId.</param>
 /// <param name="workspaceId">workspaceId.</param>
 public WorksapceOngoingTasksModel(string taskName = default(string), ServiceType?serviceType = default(ServiceType?), string serviceTypeDescription = default(string), Guid instanceId = default(Guid), Guid workspaceId = default(Guid))
 {
     this.TaskName               = taskName;
     this.ServiceType            = serviceType;
     this.ServiceTypeDescription = serviceTypeDescription;
     this.InstanceId             = instanceId;
     this.WorkspaceId            = workspaceId;
 }
 public ActionResult Index(string psKeyword, ServiceType?serviceType, DateTime?psStrDateTime, DateTime?psEndDateTime)
 {
     Session["psKeyword"]     = psKeyword;
     Session["serviceType"]   = serviceType;
     Session["psStrDateTime"] = psStrDateTime;
     Session["psEndDateTime"] = psEndDateTime;
     return(RedirectToAction("Index"));
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceList" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="category">category.</param>
 /// <param name="contact">contact.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="type">type.</param>
 /// <param name="isQuestionnaire">isQuestionnaire.</param>
 /// <param name="questionnaireId">questionnaireId.</param>
 public ServiceList(Guid id = default(Guid), string name = default(string), string description = default(string), string category = default(string), string contact = default(string), int languageId = default(int), ServiceType type = default(ServiceType), bool isQuestionnaire = default(bool), Guid?questionnaireId = default(Guid?))
 {
     this.Id              = id;
     this.Name            = name;
     this.Description     = description;
     this.Category        = category;
     this.Contact         = contact;
     this.LanguageId      = languageId;
     this.Type            = type;
     this.IsQuestionnaire = isQuestionnaire;
     this.QuestionnaireId = questionnaireId;
 }
Beispiel #8
0
        private static ServiceBE UpdateServiceFromParsedXml(ServiceBE service, string SID, string description, bool?statusEnabled, bool?localInit,
                                                            ServiceType?type, string uri, NameValueCollection config, NameValueCollection preferences)
        {
            //Modify only changed (non-null) values

            if (SID != null)
            {
                service.SID = SID;
            }

            if (service.Description != null)
            {
                service.Description = description;
            }

            if (statusEnabled != null)
            {
                service.ServiceEnabled = statusEnabled.Value;
            }

            if (localInit != null)
            {
                service.ServiceLocal = localInit.Value;
            }

            if (type != null && type.Value != ServiceType.UNDEFINED)
            {
                service.Type = type.Value;
            }

            if (uri != null)
            {
                service.Uri = uri;
            }

            if (config != null)
            {
                service.Config = config;
            }

            if (preferences != null)
            {
                service.Preferences = preferences;
            }

            return(service);
        }
 public ServicePickerViewController() : base(null)
 {
     Root = new RootElement("Services")
     {
         new Section()
         {
             ApiManager.Shared.AvailableApiServiceTypes.Select(x => new AccountCell(x, () => {
                 this.DismissModalViewController(true);
                 selectedService = x;
             }))
         }
     };
     this.NavigationItem.RightBarButtonItem = new UIKit.UIBarButtonItem(UIKit.UIBarButtonSystemItem.Cancel, (sender, e) => {
         this.DismissModalViewController(true);
         tcs.TrySetCanceled();
     });;
 }
Beispiel #10
0
        /// <summary>
        /// Create a HTTP web request.
        /// </summary>
        /// <param name="requestMethod">Request method, e.g. GET.</param>
        /// <param name="url">Request endpoint.</param>
        /// <param name="authorisationToken">The authorization token.</param>
        /// <param name="compressPayload">Compress payload flag.</param>
        /// <param name="serviceType">Service type.</param>
        /// <param name="navigationPage">Current paging index.</param>
        /// <param name="navigationPageSize">Page size.</param>
        /// <param name="methodOverride">Overrides the method of the request, e.g. to implement a GET with a payload over a POST request.</param>
        /// <param name="contentTypeOverride">Overrides the ContentType header.</param>
        /// <param name="acceptOverride">Overrides the Accept header.</param>
        /// <param name="mustUseAdvisory">Flag to indicate whether the object's identifier should be retained.</param>
        /// <param name="deleteMessageId">Unique identifier of the SIF Event message to delete.</param>
        /// <param name="requestHeaders">Other header fields that need to be included.</param>
        /// <returns>HTTP web request.</returns>
        private static HttpWebRequest CreateHttpWebRequest(RequestMethod requestMethod,
                                                           string url,
                                                           AuthorisationToken authorisationToken,
                                                           bool compressPayload,
                                                           ServiceType?serviceType            = null,
                                                           int?navigationPage                 = null,
                                                           int?navigationPageSize             = null,
                                                           string methodOverride              = null,
                                                           string contentTypeOverride         = null,
                                                           string acceptOverride              = null,
                                                           bool?mustUseAdvisory               = null,
                                                           string deleteMessageId             = null,
                                                           NameValueCollection requestHeaders = null)
        {
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);

            request.ContentType = "application/xml";
            request.Method      = requestMethod.ToString();
            request.KeepAlive   = false;
            request.Accept      = "application/xml";
            request.Headers.Add("Authorization", authorisationToken.Token);
            request.Headers.Add("timestamp", authorisationToken.Timestamp ?? DateTime.UtcNow.ToString("o"));

            if (compressPayload)
            {
                request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
                request.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
            }

            if (serviceType.HasValue)
            {
                request.Headers.Add("serviceType", serviceType.Value.ToDescription());
            }

            if (navigationPage.HasValue)
            {
                request.Headers.Add("navigationPage", navigationPage.Value.ToString());
            }

            if (navigationPageSize.HasValue)
            {
                request.Headers.Add("navigationPageSize", navigationPageSize.Value.ToString());
            }

            if (!string.IsNullOrWhiteSpace(methodOverride))
            {
                request.Headers.Add("X-HTTP-Method-Override", methodOverride.Trim());
            }

            if (!string.IsNullOrWhiteSpace(methodOverride))
            {
                request.Headers.Add("methodOverride", methodOverride.Trim());
            }

            if (!string.IsNullOrWhiteSpace(deleteMessageId))
            {
                request.Headers.Add(RequestHeader.deleteMessageId.ToDescription(), deleteMessageId.Trim());
            }

            if (!string.IsNullOrWhiteSpace(acceptOverride))
            {
                request.Accept = acceptOverride.Trim();
            }

            if (!string.IsNullOrWhiteSpace(contentTypeOverride))
            {
                request.ContentType = contentTypeOverride.Trim();
            }

            if (mustUseAdvisory.HasValue)
            {
                request.Headers.Add(RequestHeader.mustUseAdvisory.ToDescription(), mustUseAdvisory.Value.ToString());
            }

            if (requestHeaders != null)
            {
                foreach (string name in requestHeaders)
                {
                    if (!string.IsNullOrWhiteSpace(name))
                    {
                        string value = requestHeaders[name];

                        if (!string.IsNullOrWhiteSpace(value))
                        {
                            request.Headers.Add(name.Trim(), value.Trim());
                        }
                    }
                }
            }

            return(request);
        }
Beispiel #11
0
        /// <summary>
        /// Make a HTTP request (with or without a payload).
        /// </summary>
        /// <param name="requestMethod">Request method, e.g. GET.</param>
        /// <param name="url">Request endpoint.</param>
        /// <param name="authorisationToken">The authorization token.</param>
        /// <param name="compressPayload">Compress payload flag.</param>
        /// <param name="responseHeaders">Response headers returned.</param>
        /// <param name="body">The data payload to send.</param>
        /// <param name="serviceType">Service type.</param>
        /// <param name="navigationPage">Current paging index.</param>
        /// <param name="navigationPageSize">Page size.</param>
        /// <param name="methodOverride">Overrides the method of the request, e.g. to implement a GET with a payload over a POST request.</param>
        /// <param name="contentTypeOverride">Overrides the ContentType header.</param>
        /// <param name="acceptOverride">Overrides the Accept header.</param>
        /// <param name="mustUseAdvisory">Flag to indicate whether the object's identifier should be retained.</param>
        /// <param name="deleteMessageId">Unique identifier of the SIF Event message to delete.</param>
        /// <param name="requestHeaders">Other header fields that need to be included.</param>
        /// <returns>Response (with headers).</returns>
        /// <exception cref="AuthenticationException">Request is not authorised (authentication failed).</exception>
        /// <exception cref="UnauthorizedAccessException">Request is forbidden (access denied).</exception>
        /// <exception cref="Exception">Unexpected error occurred.</exception>
        private static string MakeRequest(RequestMethod requestMethod,
                                          string url,
                                          AuthorisationToken authorisationToken,
                                          bool compressPayload,
                                          out WebHeaderCollection responseHeaders,
                                          string body                        = null,
                                          ServiceType?serviceType            = null,
                                          int?navigationPage                 = null,
                                          int?navigationPageSize             = null,
                                          string methodOverride              = null,
                                          string contentTypeOverride         = null,
                                          string acceptOverride              = null,
                                          bool?mustUseAdvisory               = null,
                                          string deleteMessageId             = null,
                                          NameValueCollection requestHeaders = null)
        {
            HttpWebRequest request = CreateHttpWebRequest(requestMethod,
                                                          url,
                                                          authorisationToken,
                                                          compressPayload,
                                                          serviceType,
                                                          navigationPage,
                                                          navigationPageSize,
                                                          methodOverride,
                                                          contentTypeOverride,
                                                          acceptOverride,
                                                          mustUseAdvisory,
                                                          deleteMessageId,
                                                          requestHeaders);

            try
            {
                if (body == null)
                {
                    using (WebResponse response = request.GetResponse())
                    {
                        responseHeaders = response.Headers;
                        string responseString = null;

                        if (response != null)
                        {
                            using (StreamReader reader = new StreamReader(response.GetResponseStream()))
                            {
                                responseString = reader.ReadToEnd().Trim();
                            }
                        }

                        return(responseString);
                    }
                }
                else
                {
                    using (Stream requestStream = request.GetRequestStream())
                    {
                        byte[] payload = Encoding.UTF8.GetBytes(body);
                        requestStream.Write(payload, 0, payload.Length);

                        using (WebResponse response = request.GetResponse())
                        {
                            responseHeaders = response.Headers;
                            string responseString = null;

                            if (response != null)
                            {
                                using (StreamReader reader = new StreamReader(response.GetResponseStream()))
                                {
                                    responseString = reader.ReadToEnd().Trim();
                                }
                            }

                            return(responseString);
                        }
                    }
                }
            }
            catch (Exception e)
            {
                if ((e is WebException) && ((WebException)e).Response is HttpWebResponse)
                {
                    HttpWebResponse httpWebResponse = ((WebException)e).Response as HttpWebResponse;

                    if (httpWebResponse.StatusCode.Equals(HttpStatusCode.Unauthorized))
                    {
                        throw new AuthenticationException("Request is not authorised (authentication failed).", e);
                    }
                    else if (httpWebResponse.StatusCode.Equals(HttpStatusCode.Forbidden))
                    {
                        throw new UnauthorizedAccessException("Request is forbidden (access denied).", e);
                    }
                }

                throw e;
            }
        }
Beispiel #12
0
 public bool Equals(ServiceType?other)
 {
     return(other is not null &&
            Name == other.Name);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateGuestUserService" /> class.
 /// </summary>
 /// <param name="tenantId">tenantId.</param>
 /// <param name="enableInviteOwnersGroup">enableInviteOwnersGroup.</param>
 /// <param name="enableInviteContactGroup">enableInviteContactGroup.</param>
 /// <param name="primaryContact">primaryContact.</param>
 /// <param name="primaryContactAssignBy">primaryContactAssignBy.</param>
 /// <param name="secondaryContact">secondaryContact.</param>
 /// <param name="secondaryContactAssignBy">secondaryContactAssignBy.</param>
 /// <param name="enableOnTimeRenewal">enableOnTimeRenewal.</param>
 /// <param name="oneTimeDuration">oneTimeDuration.</param>
 /// <param name="oneTimeDurationType">oneTimeDurationType.</param>
 /// <param name="requestTemplate">requestTemplate.</param>
 /// <param name="departmentAssignBy">departmentAssignBy.</param>
 /// <param name="metadatas">metadatas.</param>
 /// <param name="hideRequestSummary">hideRequestSummary.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="type">type.</param>
 /// <param name="department">department.</param>
 /// <param name="loadDepartmentFromUps">loadDepartmentFromUps.</param>
 /// <param name="departments">departments.</param>
 /// <param name="serviceContact">serviceContact.</param>
 /// <param name="serviceAdminContact">serviceAdminContact.</param>
 /// <param name="approversContainManagerRole">approversContainManagerRole.</param>
 /// <param name="status">status.</param>
 /// <param name="showServiceInCatalog">showServiceInCatalog.</param>
 /// <param name="customActions">customActions.</param>
 /// <param name="approvalProcessId">approvalProcessId.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="categoryId">categoryId.</param>
 /// <param name="details">details.</param>
 public CreateGuestUserService(Guid tenantId = default(Guid), bool enableInviteOwnersGroup = default(bool), bool enableInviteContactGroup = default(bool), ApiUser primaryContact = default(ApiUser), AssignBy?primaryContactAssignBy = default(AssignBy?), ApiUser secondaryContact = default(ApiUser), AssignBy?secondaryContactAssignBy = default(AssignBy?), bool enableOnTimeRenewal = default(bool), int oneTimeDuration = default(int), ApiDurationType?oneTimeDurationType = default(ApiDurationType?), CreateGuestUserRequest requestTemplate = default(CreateGuestUserRequest), AssignBy?departmentAssignBy = default(AssignBy?), List <CustomMetadata> metadatas = default(List <CustomMetadata>), bool hideRequestSummary = default(bool), Guid id = default(Guid), string name = default(string), string description = default(string), ServiceType?type = default(ServiceType?), string department = default(string), bool loadDepartmentFromUps = default(bool), List <string> departments = default(List <string>), ApiUser serviceContact = default(ApiUser), ApiUser serviceAdminContact = default(ApiUser), bool approversContainManagerRole = default(bool), CommonStatus?status = default(CommonStatus?), bool showServiceInCatalog = default(bool), CustomActionSettings customActions = default(CustomActionSettings), Guid approvalProcessId = default(Guid), int languageId = default(int), string categoryId = default(string), string details = default(string))
 {
     this.TenantId = tenantId;
     this.EnableInviteOwnersGroup  = enableInviteOwnersGroup;
     this.EnableInviteContactGroup = enableInviteContactGroup;
     this.PrimaryContact           = primaryContact;
     this.PrimaryContactAssignBy   = primaryContactAssignBy;
     this.SecondaryContact         = secondaryContact;
     this.SecondaryContactAssignBy = secondaryContactAssignBy;
     this.EnableOnTimeRenewal      = enableOnTimeRenewal;
     this.OneTimeDuration          = oneTimeDuration;
     this.OneTimeDurationType      = oneTimeDurationType;
     this.RequestTemplate          = requestTemplate;
     this.DepartmentAssignBy       = departmentAssignBy;
     this.Metadatas          = metadatas;
     this.HideRequestSummary = hideRequestSummary;
     this.Id                          = id;
     this.Name                        = name;
     this.Description                 = description;
     this.Type                        = type;
     this.Department                  = department;
     this.LoadDepartmentFromUps       = loadDepartmentFromUps;
     this.Departments                 = departments;
     this.ServiceContact              = serviceContact;
     this.ServiceAdminContact         = serviceAdminContact;
     this.ApproversContainManagerRole = approversContainManagerRole;
     this.Status                      = status;
     this.ShowServiceInCatalog        = showServiceInCatalog;
     this.CustomActions               = customActions;
     this.ApprovalProcessId           = approvalProcessId;
     this.LanguageId                  = languageId;
     this.CategoryId                  = categoryId;
     this.Details                     = details;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateWebService" /> class.
 /// </summary>
 /// <param name="scopeSettings">scopeSettings.</param>
 /// <param name="webLanguages">webLanguages.</param>
 /// <param name="languageIdsAndTemplates">languageIdsAndTemplates.</param>
 /// <param name="templateIdsAndPermissions">templateIdsAndPermissions.</param>
 /// <param name="permissionSettings">permissionSettings.</param>
 /// <param name="useUniquePermissions">useUniquePermissions.</param>
 /// <param name="deploymentManagerPlanSettings">deploymentManagerPlanSettings.</param>
 /// <param name="yammerGroupSettings">yammerGroupSettings.</param>
 /// <param name="templateStoreUrl">templateStoreUrl.</param>
 /// <param name="appSettings">appSettings.</param>
 /// <param name="notifyPrimaryContactSettings">notifyPrimaryContactSettings.</param>
 /// <param name="notifySecondaryContactSettings">notifySecondaryContactSettings.</param>
 /// <param name="defaultPrimaryContact">defaultPrimaryContact.</param>
 /// <param name="defaultSecondaryContact">defaultSecondaryContact.</param>
 /// <param name="isOnQuickLaunch">isOnQuickLaunch.</param>
 /// <param name="isOnTopLinkBar">isOnTopLinkBar.</param>
 /// <param name="isNavigationInheritance">isNavigationInheritance.</param>
 /// <param name="defaultWebLanguage">defaultWebLanguage.</param>
 /// <param name="scopeAssignBy">scopeAssignBy.</param>
 /// <param name="webLanguageAssignBy">webLanguageAssignBy.</param>
 /// <param name="templateAssignBy">templateAssignBy.</param>
 /// <param name="navigationInheritanceAssignBy">navigationInheritanceAssignBy.</param>
 /// <param name="navigationAssignBy">navigationAssignBy.</param>
 /// <param name="primaryContactAssignBy">primaryContactAssignBy.</param>
 /// <param name="secondaryContactAssignBy">secondaryContactAssignBy.</param>
 /// <param name="permissionAssignBy">permissionAssignBy.</param>
 /// <param name="requestTemplate">requestTemplate.</param>
 /// <param name="departmentAssignBy">departmentAssignBy.</param>
 /// <param name="metadatas">metadatas.</param>
 /// <param name="hideRequestSummary">hideRequestSummary.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="type">type.</param>
 /// <param name="department">department.</param>
 /// <param name="loadDepartmentFromUps">loadDepartmentFromUps.</param>
 /// <param name="departments">departments.</param>
 /// <param name="serviceContact">serviceContact.</param>
 /// <param name="serviceAdminContact">serviceAdminContact.</param>
 /// <param name="approversContainManagerRole">approversContainManagerRole.</param>
 /// <param name="status">status.</param>
 /// <param name="showServiceInCatalog">showServiceInCatalog.</param>
 /// <param name="customActions">customActions.</param>
 /// <param name="approvalProcessId">approvalProcessId.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="categoryId">categoryId.</param>
 /// <param name="details">details.</param>
 public CreateWebService(CreateWebScopeSettings scopeSettings = default(CreateWebScopeSettings), List <IntModel> webLanguages = default(List <IntModel>), List <LanguageWithTemplates> languageIdsAndTemplates = default(List <LanguageWithTemplates>), List <TemplateWithPermissions> templateIdsAndPermissions = default(List <TemplateWithPermissions>), PermissionSettings permissionSettings = default(PermissionSettings), bool useUniquePermissions = default(bool), DeploymentManagerPlanSettings deploymentManagerPlanSettings = default(DeploymentManagerPlanSettings), YammerGroupServiceSettings yammerGroupSettings = default(YammerGroupServiceSettings), string templateStoreUrl = default(string), AppSettings appSettings = default(AppSettings), GuidBooleanModel notifyPrimaryContactSettings = default(GuidBooleanModel), GuidBooleanModel notifySecondaryContactSettings = default(GuidBooleanModel), ApiUser defaultPrimaryContact = default(ApiUser), ApiUser defaultSecondaryContact = default(ApiUser), bool isOnQuickLaunch = default(bool), bool isOnTopLinkBar = default(bool), bool isNavigationInheritance = default(bool), int defaultWebLanguage = default(int), AssignBy?scopeAssignBy = default(AssignBy?), AssignBy?webLanguageAssignBy = default(AssignBy?), AssignBy?templateAssignBy = default(AssignBy?), AssignBy?navigationInheritanceAssignBy = default(AssignBy?), AssignBy?navigationAssignBy = default(AssignBy?), AssignBy?primaryContactAssignBy = default(AssignBy?), AssignBy?secondaryContactAssignBy = default(AssignBy?), AssignBy?permissionAssignBy = default(AssignBy?), CreateWebRequest requestTemplate = default(CreateWebRequest), AssignBy?departmentAssignBy = default(AssignBy?), List <CustomMetadata> metadatas = default(List <CustomMetadata>), bool hideRequestSummary = default(bool), Guid id = default(Guid), string name = default(string), string description = default(string), ServiceType?type = default(ServiceType?), string department = default(string), bool loadDepartmentFromUps = default(bool), List <string> departments = default(List <string>), ApiUser serviceContact = default(ApiUser), ApiUser serviceAdminContact = default(ApiUser), bool approversContainManagerRole = default(bool), CommonStatus?status = default(CommonStatus?), bool showServiceInCatalog = default(bool), CustomActionSettings customActions = default(CustomActionSettings), Guid approvalProcessId = default(Guid), int languageId = default(int), string categoryId = default(string), string details = default(string))
 {
     this.ScopeSettings                 = scopeSettings;
     this.WebLanguages                  = webLanguages;
     this.LanguageIdsAndTemplates       = languageIdsAndTemplates;
     this.TemplateIdsAndPermissions     = templateIdsAndPermissions;
     this.PermissionSettings            = permissionSettings;
     this.UseUniquePermissions          = useUniquePermissions;
     this.DeploymentManagerPlanSettings = deploymentManagerPlanSettings;
     this.YammerGroupSettings           = yammerGroupSettings;
     this.TemplateStoreUrl              = templateStoreUrl;
     this.AppSettings = appSettings;
     this.NotifyPrimaryContactSettings   = notifyPrimaryContactSettings;
     this.NotifySecondaryContactSettings = notifySecondaryContactSettings;
     this.DefaultPrimaryContact          = defaultPrimaryContact;
     this.DefaultSecondaryContact        = defaultSecondaryContact;
     this.IsOnQuickLaunch               = isOnQuickLaunch;
     this.IsOnTopLinkBar                = isOnTopLinkBar;
     this.IsNavigationInheritance       = isNavigationInheritance;
     this.DefaultWebLanguage            = defaultWebLanguage;
     this.ScopeAssignBy                 = scopeAssignBy;
     this.WebLanguageAssignBy           = webLanguageAssignBy;
     this.TemplateAssignBy              = templateAssignBy;
     this.NavigationInheritanceAssignBy = navigationInheritanceAssignBy;
     this.NavigationAssignBy            = navigationAssignBy;
     this.PrimaryContactAssignBy        = primaryContactAssignBy;
     this.SecondaryContactAssignBy      = secondaryContactAssignBy;
     this.PermissionAssignBy            = permissionAssignBy;
     this.RequestTemplate               = requestTemplate;
     this.DepartmentAssignBy            = departmentAssignBy;
     this.Metadatas          = metadatas;
     this.HideRequestSummary = hideRequestSummary;
     this.Id                          = id;
     this.Name                        = name;
     this.Description                 = description;
     this.Type                        = type;
     this.Department                  = department;
     this.LoadDepartmentFromUps       = loadDepartmentFromUps;
     this.Departments                 = departments;
     this.ServiceContact              = serviceContact;
     this.ServiceAdminContact         = serviceAdminContact;
     this.ApproversContainManagerRole = approversContainManagerRole;
     this.Status                      = status;
     this.ShowServiceInCatalog        = showServiceInCatalog;
     this.CustomActions               = customActions;
     this.ApprovalProcessId           = approvalProcessId;
     this.LanguageId                  = languageId;
     this.CategoryId                  = categoryId;
     this.Details                     = details;
 }
Beispiel #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskList" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="title">title.</param>
 /// <param name="requester">requester.</param>
 /// <param name="requestTicketNumber">requestTicketNumber.</param>
 /// <param name="requesterDisplayName">requesterDisplayName.</param>
 /// <param name="dueDate">dueDate.</param>
 /// <param name="dueDateType">dueDateType.</param>
 /// <param name="serviceType">serviceType.</param>
 /// <param name="serviceTypeDescription">serviceTypeDescription.</param>
 /// <param name="createdTime">createdTime.</param>
 /// <param name="taskType">taskType.</param>
 /// <param name="status">status.</param>
 /// <param name="statusDescription">statusDescription.</param>
 public TaskList(Guid id = default(Guid), string title = default(string), string requester = default(string), int requestTicketNumber = default(int), string requesterDisplayName = default(string), DateTime?dueDate = default(DateTime?), DueDateType?dueDateType = default(DueDateType?), ServiceType?serviceType = default(ServiceType?), string serviceTypeDescription = default(string), DateTime createdTime = default(DateTime), TaskType?taskType = default(TaskType?), TaskResult?status = default(TaskResult?), string statusDescription = default(string))
 {
     this.Id                     = id;
     this.Title                  = title;
     this.Requester              = requester;
     this.RequestTicketNumber    = requestTicketNumber;
     this.RequesterDisplayName   = requesterDisplayName;
     this.DueDate                = dueDate;
     this.DueDateType            = dueDateType;
     this.ServiceType            = serviceType;
     this.ServiceTypeDescription = serviceTypeDescription;
     this.CreatedTime            = createdTime;
     this.TaskType               = taskType;
     this.Status                 = status;
     this.StatusDescription      = statusDescription;
 }
Beispiel #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangeWebContactService" /> class.
 /// </summary>
 /// <param name="selectedNodes">selectedNodes.</param>
 /// <param name="unCheckedNodesInfo">unCheckedNodesInfo.</param>
 /// <param name="changeMethod">changeMethod.</param>
 /// <param name="changeMethodAssignBy">changeMethodAssignBy.</param>
 /// <param name="enableNotifyNewContact">enableNotifyNewContact.</param>
 /// <param name="newContactNotifiedEmail">newContactNotifiedEmail.</param>
 /// <param name="scopeSettings">scopeSettings.</param>
 /// <param name="requestTemplate">requestTemplate.</param>
 /// <param name="departmentAssignBy">departmentAssignBy.</param>
 /// <param name="metadatas">metadatas.</param>
 /// <param name="hideRequestSummary">hideRequestSummary.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="type">type.</param>
 /// <param name="department">department.</param>
 /// <param name="loadDepartmentFromUps">loadDepartmentFromUps.</param>
 /// <param name="departments">departments.</param>
 /// <param name="serviceContact">serviceContact.</param>
 /// <param name="serviceAdminContact">serviceAdminContact.</param>
 /// <param name="approversContainManagerRole">approversContainManagerRole.</param>
 /// <param name="status">status.</param>
 /// <param name="showServiceInCatalog">showServiceInCatalog.</param>
 /// <param name="customActions">customActions.</param>
 /// <param name="approvalProcessId">approvalProcessId.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="categoryId">categoryId.</param>
 /// <param name="details">details.</param>
 public ChangeWebContactService(string selectedNodes = default(string), string unCheckedNodesInfo = default(string), ChangeContactMethod?changeMethod = default(ChangeContactMethod?), AssignBy?changeMethodAssignBy = default(AssignBy?), bool enableNotifyNewContact = default(bool), Guid?newContactNotifiedEmail = default(Guid?), ServiceScopeSettings scopeSettings = default(ServiceScopeSettings), ChangeWebContactRequest requestTemplate = default(ChangeWebContactRequest), AssignBy?departmentAssignBy = default(AssignBy?), List <CustomMetadata> metadatas = default(List <CustomMetadata>), bool hideRequestSummary = default(bool), Guid id = default(Guid), string name = default(string), string description = default(string), ServiceType?type = default(ServiceType?), string department = default(string), bool loadDepartmentFromUps = default(bool), List <string> departments = default(List <string>), ApiUser serviceContact = default(ApiUser), ApiUser serviceAdminContact = default(ApiUser), bool approversContainManagerRole = default(bool), CommonStatus?status = default(CommonStatus?), bool showServiceInCatalog = default(bool), CustomActionSettings customActions = default(CustomActionSettings), Guid approvalProcessId = default(Guid), int languageId = default(int), string categoryId = default(string), string details = default(string))
 {
     this.SelectedNodes           = selectedNodes;
     this.UnCheckedNodesInfo      = unCheckedNodesInfo;
     this.ChangeMethod            = changeMethod;
     this.ChangeMethodAssignBy    = changeMethodAssignBy;
     this.EnableNotifyNewContact  = enableNotifyNewContact;
     this.NewContactNotifiedEmail = newContactNotifiedEmail;
     this.ScopeSettings           = scopeSettings;
     this.RequestTemplate         = requestTemplate;
     this.DepartmentAssignBy      = departmentAssignBy;
     this.Metadatas          = metadatas;
     this.HideRequestSummary = hideRequestSummary;
     this.Id                          = id;
     this.Name                        = name;
     this.Description                 = description;
     this.Type                        = type;
     this.Department                  = department;
     this.LoadDepartmentFromUps       = loadDepartmentFromUps;
     this.Departments                 = departments;
     this.ServiceContact              = serviceContact;
     this.ServiceAdminContact         = serviceAdminContact;
     this.ApproversContainManagerRole = approversContainManagerRole;
     this.Status                      = status;
     this.ShowServiceInCatalog        = showServiceInCatalog;
     this.CustomActions               = customActions;
     this.ApprovalProcessId           = approvalProcessId;
     this.LanguageId                  = languageId;
     this.CategoryId                  = categoryId;
     this.Details                     = details;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangeSiteSettingService" /> class.
 /// </summary>
 /// <param name="enableChangeTitle">enableChangeTitle.</param>
 /// <param name="enableChangeDescription">enableChangeDescription.</param>
 /// <param name="changeMetadataSettings">changeMetadataSettings.</param>
 /// <param name="deploymentManagerPlanSettings">deploymentManagerPlanSettings.</param>
 /// <param name="enableChangeHubSite">enableChangeHubSite.</param>
 /// <param name="scopeSettings">scopeSettings.</param>
 /// <param name="requestTemplate">requestTemplate.</param>
 /// <param name="departmentAssignBy">departmentAssignBy.</param>
 /// <param name="metadatas">metadatas.</param>
 /// <param name="hideRequestSummary">hideRequestSummary.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="type">type.</param>
 /// <param name="department">department.</param>
 /// <param name="loadDepartmentFromUps">loadDepartmentFromUps.</param>
 /// <param name="departments">departments.</param>
 /// <param name="serviceContact">serviceContact.</param>
 /// <param name="serviceAdminContact">serviceAdminContact.</param>
 /// <param name="approversContainManagerRole">approversContainManagerRole.</param>
 /// <param name="status">status.</param>
 /// <param name="showServiceInCatalog">showServiceInCatalog.</param>
 /// <param name="customActions">customActions.</param>
 /// <param name="approvalProcessId">approvalProcessId.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="categoryId">categoryId.</param>
 /// <param name="details">details.</param>
 public ChangeSiteSettingService(bool enableChangeTitle = default(bool), bool enableChangeDescription = default(bool), ChangeMetadataActionSetting changeMetadataSettings = default(ChangeMetadataActionSetting), DpmServiceSetting deploymentManagerPlanSettings = default(DpmServiceSetting), bool enableChangeHubSite = default(bool), ServiceScopeSettings scopeSettings = default(ServiceScopeSettings), ChangeSiteSettingRequest requestTemplate = default(ChangeSiteSettingRequest), AssignBy?departmentAssignBy = default(AssignBy?), List <CustomMetadata> metadatas = default(List <CustomMetadata>), bool hideRequestSummary = default(bool), Guid id = default(Guid), string name = default(string), string description = default(string), ServiceType?type = default(ServiceType?), string department = default(string), bool loadDepartmentFromUps = default(bool), List <string> departments = default(List <string>), ApiUser serviceContact = default(ApiUser), ApiUser serviceAdminContact = default(ApiUser), bool approversContainManagerRole = default(bool), CommonStatus?status = default(CommonStatus?), bool showServiceInCatalog = default(bool), CustomActionSettings customActions = default(CustomActionSettings), Guid approvalProcessId = default(Guid), int languageId = default(int), string categoryId = default(string), string details = default(string))
 {
     this.EnableChangeTitle             = enableChangeTitle;
     this.EnableChangeDescription       = enableChangeDescription;
     this.ChangeMetadataSettings        = changeMetadataSettings;
     this.DeploymentManagerPlanSettings = deploymentManagerPlanSettings;
     this.EnableChangeHubSite           = enableChangeHubSite;
     this.ScopeSettings      = scopeSettings;
     this.RequestTemplate    = requestTemplate;
     this.DepartmentAssignBy = departmentAssignBy;
     this.Metadatas          = metadatas;
     this.HideRequestSummary = hideRequestSummary;
     this.Id                          = id;
     this.Name                        = name;
     this.Description                 = description;
     this.Type                        = type;
     this.Department                  = department;
     this.LoadDepartmentFromUps       = loadDepartmentFromUps;
     this.Departments                 = departments;
     this.ServiceContact              = serviceContact;
     this.ServiceAdminContact         = serviceAdminContact;
     this.ApproversContainManagerRole = approversContainManagerRole;
     this.Status                      = status;
     this.ShowServiceInCatalog        = showServiceInCatalog;
     this.CustomActions               = customActions;
     this.ApprovalProcessId           = approvalProcessId;
     this.LanguageId                  = languageId;
     this.CategoryId                  = categoryId;
     this.Details                     = details;
 }
Beispiel #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GrantPermissionService" /> class.
 /// </summary>
 /// <param name="allowBreakPermissionInheritance">allowBreakPermissionInheritance.</param>
 /// <param name="scopeSettings">scopeSettings.</param>
 /// <param name="userLevelControlSettings">userLevelControlSettings.</param>
 /// <param name="permissionDurationSettings">permissionDurationSettings.</param>
 /// <param name="permissionSettings">permissionSettings.</param>
 /// <param name="defaultWelcomeEmailSettings">defaultWelcomeEmailSettings.</param>
 /// <param name="welcomeEmailAssignBy">welcomeEmailAssignBy.</param>
 /// <param name="requestTemplate">requestTemplate.</param>
 /// <param name="departmentAssignBy">departmentAssignBy.</param>
 /// <param name="metadatas">metadatas.</param>
 /// <param name="hideRequestSummary">hideRequestSummary.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="type">type.</param>
 /// <param name="department">department.</param>
 /// <param name="loadDepartmentFromUps">loadDepartmentFromUps.</param>
 /// <param name="departments">departments.</param>
 /// <param name="serviceContact">serviceContact.</param>
 /// <param name="serviceAdminContact">serviceAdminContact.</param>
 /// <param name="approversContainManagerRole">approversContainManagerRole.</param>
 /// <param name="status">status.</param>
 /// <param name="showServiceInCatalog">showServiceInCatalog.</param>
 /// <param name="customActions">customActions.</param>
 /// <param name="approvalProcessId">approvalProcessId.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="categoryId">categoryId.</param>
 /// <param name="details">details.</param>
 public GrantPermissionService(bool allowBreakPermissionInheritance = default(bool), ServiceScopeSettings scopeSettings = default(ServiceScopeSettings), UserLevelControlSettings userLevelControlSettings = default(UserLevelControlSettings), GrantPermissionServiceDurationSettings permissionDurationSettings = default(GrantPermissionServiceDurationSettings), GrantPermissionServicePermissionSettings permissionSettings = default(GrantPermissionServicePermissionSettings), WelcomeEmailSettings defaultWelcomeEmailSettings = default(WelcomeEmailSettings), AssignBy?welcomeEmailAssignBy = default(AssignBy?), GrantPermissionRequest requestTemplate = default(GrantPermissionRequest), AssignBy?departmentAssignBy = default(AssignBy?), List <CustomMetadata> metadatas = default(List <CustomMetadata>), bool hideRequestSummary = default(bool), Guid id = default(Guid), string name = default(string), string description = default(string), ServiceType?type = default(ServiceType?), string department = default(string), bool loadDepartmentFromUps = default(bool), List <string> departments = default(List <string>), ApiUser serviceContact = default(ApiUser), ApiUser serviceAdminContact = default(ApiUser), bool approversContainManagerRole = default(bool), CommonStatus?status = default(CommonStatus?), bool showServiceInCatalog = default(bool), CustomActionSettings customActions = default(CustomActionSettings), Guid approvalProcessId = default(Guid), int languageId = default(int), string categoryId = default(string), string details = default(string))
 {
     this.AllowBreakPermissionInheritance = allowBreakPermissionInheritance;
     this.ScopeSettings               = scopeSettings;
     this.UserLevelControlSettings    = userLevelControlSettings;
     this.PermissionDurationSettings  = permissionDurationSettings;
     this.PermissionSettings          = permissionSettings;
     this.DefaultWelcomeEmailSettings = defaultWelcomeEmailSettings;
     this.WelcomeEmailAssignBy        = welcomeEmailAssignBy;
     this.RequestTemplate             = requestTemplate;
     this.DepartmentAssignBy          = departmentAssignBy;
     this.Metadatas          = metadatas;
     this.HideRequestSummary = hideRequestSummary;
     this.Id                          = id;
     this.Name                        = name;
     this.Description                 = description;
     this.Type                        = type;
     this.Department                  = department;
     this.LoadDepartmentFromUps       = loadDepartmentFromUps;
     this.Departments                 = departments;
     this.ServiceContact              = serviceContact;
     this.ServiceAdminContact         = serviceAdminContact;
     this.ApproversContainManagerRole = approversContainManagerRole;
     this.Status                      = status;
     this.ShowServiceInCatalog        = showServiceInCatalog;
     this.CustomActions               = customActions;
     this.ApprovalProcessId           = approvalProcessId;
     this.LanguageId                  = languageId;
     this.CategoryId                  = categoryId;
     this.Details                     = details;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangePermissionService" /> class.
 /// </summary>
 /// <param name="selectedNodes">selectedNodes.</param>
 /// <param name="uncheckedNodes">uncheckedNodes.</param>
 /// <param name="userRestrictionType">userRestrictionType.</param>
 /// <param name="permissionChangedType">permissionChangedType.</param>
 /// <param name="permissionChangedTypeAssignBy">permissionChangedTypeAssignBy.</param>
 /// <param name="enabledExcludePermissions">enabledExcludePermissions.</param>
 /// <param name="excludedPermissions">excludedPermissions.</param>
 /// <param name="reviewTaskEmailTemplate">reviewTaskEmailTemplate.</param>
 /// <param name="scopeSettings">scopeSettings.</param>
 /// <param name="stageCount">stageCount.</param>
 /// <param name="requestTemplate">requestTemplate.</param>
 /// <param name="departmentAssignBy">departmentAssignBy.</param>
 /// <param name="metadatas">metadatas.</param>
 /// <param name="hideRequestSummary">hideRequestSummary.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="type">type.</param>
 /// <param name="department">department.</param>
 /// <param name="loadDepartmentFromUps">loadDepartmentFromUps.</param>
 /// <param name="departments">departments.</param>
 /// <param name="serviceContact">serviceContact.</param>
 /// <param name="serviceAdminContact">serviceAdminContact.</param>
 /// <param name="approversContainManagerRole">approversContainManagerRole.</param>
 /// <param name="status">status.</param>
 /// <param name="showServiceInCatalog">showServiceInCatalog.</param>
 /// <param name="customActions">customActions.</param>
 /// <param name="approvalProcessId">approvalProcessId.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="categoryId">categoryId.</param>
 /// <param name="details">details.</param>
 public ChangePermissionService(List <TreeNode> selectedNodes = default(List <TreeNode>), List <TreeNode> uncheckedNodes = default(List <TreeNode>), UserLevelRestrictionType?userRestrictionType = default(UserLevelRestrictionType?), PermissionChangedType?permissionChangedType = default(PermissionChangedType?), AssignBy?permissionChangedTypeAssignBy = default(AssignBy?), bool enabledExcludePermissions = default(bool), List <PermissionLevel> excludedPermissions = default(List <PermissionLevel>), GuidModel reviewTaskEmailTemplate = default(GuidModel), ServiceScopeSettings scopeSettings = default(ServiceScopeSettings), int stageCount = default(int), ChangePermissionRequest requestTemplate = default(ChangePermissionRequest), AssignBy?departmentAssignBy = default(AssignBy?), List <CustomMetadata> metadatas = default(List <CustomMetadata>), bool hideRequestSummary = default(bool), Guid id = default(Guid), string name = default(string), string description = default(string), ServiceType?type = default(ServiceType?), string department = default(string), bool loadDepartmentFromUps = default(bool), List <string> departments = default(List <string>), ApiUser serviceContact = default(ApiUser), ApiUser serviceAdminContact = default(ApiUser), bool approversContainManagerRole = default(bool), CommonStatus?status = default(CommonStatus?), bool showServiceInCatalog = default(bool), CustomActionSettings customActions = default(CustomActionSettings), Guid approvalProcessId = default(Guid), int languageId = default(int), string categoryId = default(string), string details = default(string))
 {
     this.SelectedNodes                 = selectedNodes;
     this.UncheckedNodes                = uncheckedNodes;
     this.UserRestrictionType           = userRestrictionType;
     this.PermissionChangedType         = permissionChangedType;
     this.PermissionChangedTypeAssignBy = permissionChangedTypeAssignBy;
     this.EnabledExcludePermissions     = enabledExcludePermissions;
     this.ExcludedPermissions           = excludedPermissions;
     this.ReviewTaskEmailTemplate       = reviewTaskEmailTemplate;
     this.ScopeSettings                 = scopeSettings;
     this.StageCount         = stageCount;
     this.RequestTemplate    = requestTemplate;
     this.DepartmentAssignBy = departmentAssignBy;
     this.Metadatas          = metadatas;
     this.HideRequestSummary = hideRequestSummary;
     this.Id                          = id;
     this.Name                        = name;
     this.Description                 = description;
     this.Type                        = type;
     this.Department                  = department;
     this.LoadDepartmentFromUps       = loadDepartmentFromUps;
     this.Departments                 = departments;
     this.ServiceContact              = serviceContact;
     this.ServiceAdminContact         = serviceAdminContact;
     this.ApproversContainManagerRole = approversContainManagerRole;
     this.Status                      = status;
     this.ShowServiceInCatalog        = showServiceInCatalog;
     this.CustomActions               = customActions;
     this.ApprovalProcessId           = approvalProcessId;
     this.LanguageId                  = languageId;
     this.CategoryId                  = categoryId;
     this.Details                     = details;
 }
Beispiel #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AllRequestList" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="serviceId">serviceId.</param>
 /// <param name="serviceName">serviceName.</param>
 /// <param name="serviceType">serviceType.</param>
 /// <param name="serviceTypeDescription">serviceTypeDescription.</param>
 /// <param name="ticketNumber">ticketNumber.</param>
 /// <param name="summary">summary.</param>
 /// <param name="requester">requester.</param>
 /// <param name="requesterDisplayName">requesterDisplayName.</param>
 /// <param name="detailStatus">detailStatus.</param>
 /// <param name="detailStatusDescription">detailStatusDescription.</param>
 /// <param name="progressStatus">progressStatus.</param>
 /// <param name="progressStatusDescription">progressStatusDescription.</param>
 /// <param name="modified">modified.</param>
 /// <param name="assignTo">assignTo.</param>
 /// <param name="assignToDisplayName">assignToDisplayName.</param>
 /// <param name="serviceAdmin">serviceAdmin.</param>
 /// <param name="objectUrl">objectUrl.</param>
 /// <param name="createdTime">createdTime.</param>
 public AllRequestList(Guid id = default(Guid), Guid serviceId = default(Guid), string serviceName = default(string), ServiceType?serviceType = default(ServiceType?), string serviceTypeDescription = default(string), int ticketNumber = default(int), string summary = default(string), string requester = default(string), string requesterDisplayName = default(string), RequestProgressStatus?detailStatus = default(RequestProgressStatus?), string detailStatusDescription = default(string), ApiRequestProgressStatus?progressStatus = default(ApiRequestProgressStatus?), string progressStatusDescription = default(string), DateTime modified = default(DateTime), string assignTo = default(string), string assignToDisplayName = default(string), string serviceAdmin = default(string), string objectUrl = default(string), string createdTime = default(string))
 {
     this.Id                        = id;
     this.ServiceId                 = serviceId;
     this.ServiceName               = serviceName;
     this.ServiceType               = serviceType;
     this.ServiceTypeDescription    = serviceTypeDescription;
     this.TicketNumber              = ticketNumber;
     this.Summary                   = summary;
     this.Requester                 = requester;
     this.RequesterDisplayName      = requesterDisplayName;
     this.DetailStatus              = detailStatus;
     this.DetailStatusDescription   = detailStatusDescription;
     this.ProgressStatus            = progressStatus;
     this.ProgressStatusDescription = progressStatusDescription;
     this.Modified                  = modified;
     this.AssignTo                  = assignTo;
     this.AssignToDisplayName       = assignToDisplayName;
     this.ServiceAdmin              = serviceAdmin;
     this.ObjectUrl                 = objectUrl;
     this.CreatedTime               = createdTime;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestList" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="serviceId">serviceId.</param>
 /// <param name="serviceName">serviceName.</param>
 /// <param name="serviceType">serviceType.</param>
 /// <param name="serviceTypeDescription">serviceTypeDescription.</param>
 /// <param name="ticketNumber">ticketNumber.</param>
 /// <param name="summary">summary.</param>
 /// <param name="status">status.</param>
 /// <param name="processStatus">processStatus.</param>
 /// <param name="statusDescription">statusDescription.</param>
 /// <param name="modified">modified.</param>
 /// <param name="submitStatus">submitStatus.</param>
 /// <param name="assigned">assigned.</param>
 /// <param name="serviceAdmin">serviceAdmin.</param>
 /// <param name="enabledCopy">enabledCopy.</param>
 /// <param name="questionnaireId">questionnaireId.</param>
 public RequestList(Guid id = default(Guid), Guid serviceId = default(Guid), string serviceName = default(string), ServiceType?serviceType = default(ServiceType?), string serviceTypeDescription = default(string), int ticketNumber = default(int), string summary = default(string), RequestProgressStatus?status = default(RequestProgressStatus?), ApiRequestProgressStatus?processStatus = default(ApiRequestProgressStatus?), string statusDescription = default(string), DateTime modified = default(DateTime), int submitStatus = default(int), string assigned = default(string), string serviceAdmin = default(string), bool enabledCopy = default(bool), Guid questionnaireId = default(Guid))
 {
     this.Id                     = id;
     this.ServiceId              = serviceId;
     this.ServiceName            = serviceName;
     this.ServiceType            = serviceType;
     this.ServiceTypeDescription = serviceTypeDescription;
     this.TicketNumber           = ticketNumber;
     this.Summary                = summary;
     this.Status                 = status;
     this.ProcessStatus          = processStatus;
     this.StatusDescription      = statusDescription;
     this.Modified               = modified;
     this.SubmitStatus           = submitStatus;
     this.Assigned               = assigned;
     this.ServiceAdmin           = serviceAdmin;
     this.EnabledCopy            = enabledCopy;
     this.QuestionnaireId        = questionnaireId;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskReport" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="title">title.</param>
 /// <param name="requester">requester.</param>
 /// <param name="requesterLoginName">requesterLoginName.</param>
 /// <param name="requesterDisplayName">requesterDisplayName.</param>
 /// <param name="requestTicketNumber">requestTicketNumber.</param>
 /// <param name="dueDate">dueDate.</param>
 /// <param name="dueDateType">dueDateType.</param>
 /// <param name="serviceType">serviceType.</param>
 /// <param name="serviceTypeDescription">serviceTypeDescription.</param>
 /// <param name="createdTime">createdTime.</param>
 /// <param name="taskType">taskType.</param>
 /// <param name="status">status.</param>
 /// <param name="statusDescription">statusDescription.</param>
 /// <param name="isApproveTask">isApproveTask.</param>
 /// <param name="assignee">assignee.</param>
 /// <param name="assigneeLoginName">assigneeLoginName.</param>
 /// <param name="assigneeDisplayName">assigneeDisplayName.</param>
 public TaskReport(Guid id = default(Guid), string title = default(string), string requester = default(string), string requesterLoginName = default(string), string requesterDisplayName = default(string), int requestTicketNumber = default(int), DateTime?dueDate = default(DateTime?), DueDateType?dueDateType = default(DueDateType?), ServiceType?serviceType = default(ServiceType?), string serviceTypeDescription = default(string), DateTime createdTime = default(DateTime), TaskType?taskType = default(TaskType?), TaskResult?status = default(TaskResult?), string statusDescription = default(string), bool isApproveTask = default(bool), string assignee = default(string), string assigneeLoginName = default(string), string assigneeDisplayName = default(string))
 {
     this.Id                     = id;
     this.Title                  = title;
     this.Requester              = requester;
     this.RequesterLoginName     = requesterLoginName;
     this.RequesterDisplayName   = requesterDisplayName;
     this.RequestTicketNumber    = requestTicketNumber;
     this.DueDate                = dueDate;
     this.DueDateType            = dueDateType;
     this.ServiceType            = serviceType;
     this.ServiceTypeDescription = serviceTypeDescription;
     this.CreatedTime            = createdTime;
     this.TaskType               = taskType;
     this.Status                 = status;
     this.StatusDescription      = statusDescription;
     this.IsApproveTask          = isApproveTask;
     this.Assignee               = assignee;
     this.AssigneeLoginName      = assigneeLoginName;
     this.AssigneeDisplayName    = assigneeDisplayName;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangeGroupSettingService" /> class.
 /// </summary>
 /// <param name="tenantId">tenantId.</param>
 /// <param name="networkId">networkId.</param>
 /// <param name="groupRestriction">groupRestriction.</param>
 /// <param name="enableChangeName">enableChangeName.</param>
 /// <param name="enableChangeDescription">enableChangeDescription.</param>
 /// <param name="enableChangeMemberSubscription">enableChangeMemberSubscription.</param>
 /// <param name="enableChangeOutsideSenders">enableChangeOutsideSenders.</param>
 /// <param name="enableChangePrimaryContact">enableChangePrimaryContact.</param>
 /// <param name="enableChangeSecondaryContact">enableChangeSecondaryContact.</param>
 /// <param name="enableAddOwners">enableAddOwners.</param>
 /// <param name="addOwnerRestriction">addOwnerRestriction.</param>
 /// <param name="enableRemoveOwners">enableRemoveOwners.</param>
 /// <param name="enableAddMembers">enableAddMembers.</param>
 /// <param name="addMemberRestriction">addMemberRestriction.</param>
 /// <param name="enableRemoveMembers">enableRemoveMembers.</param>
 /// <param name="enableChangeDynamicMembershipRules">enableChangeDynamicMembershipRules.</param>
 /// <param name="enableChangeTeamCollaboration">enableChangeTeamCollaboration.</param>
 /// <param name="enableChangeHubSite">enableChangeHubSite.</param>
 /// <param name="enableChangeClassification">enableChangeClassification.</param>
 /// <param name="classificationList">classificationList.</param>
 /// <param name="enableChangeSensitivity">enableChangeSensitivity.</param>
 /// <param name="sensitivityList">sensitivityList.</param>
 /// <param name="enableChangeMetadata">enableChangeMetadata.</param>
 /// <param name="enableAddOrDeleteMetadata">enableAddOrDeleteMetadata.</param>
 /// <param name="metadataList">metadataList.</param>
 /// <param name="enableChangeMembershipType">enableChangeMembershipType.</param>
 /// <param name="groupObjectType">groupObjectType.</param>
 /// <param name="enableChangeYammerGroupInfo">enableChangeYammerGroupInfo.</param>
 /// <param name="scopePeoplePickerFilterProfileId">scopePeoplePickerFilterProfileId.</param>
 /// <param name="peoplePickerFilterProfileId">peoplePickerFilterProfileId.</param>
 /// <param name="requestTemplate">requestTemplate.</param>
 /// <param name="departmentAssignBy">departmentAssignBy.</param>
 /// <param name="metadatas">metadatas.</param>
 /// <param name="hideRequestSummary">hideRequestSummary.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="type">type.</param>
 /// <param name="department">department.</param>
 /// <param name="loadDepartmentFromUps">loadDepartmentFromUps.</param>
 /// <param name="departments">departments.</param>
 /// <param name="serviceContact">serviceContact.</param>
 /// <param name="serviceAdminContact">serviceAdminContact.</param>
 /// <param name="approversContainManagerRole">approversContainManagerRole.</param>
 /// <param name="status">status.</param>
 /// <param name="showServiceInCatalog">showServiceInCatalog.</param>
 /// <param name="customActions">customActions.</param>
 /// <param name="approvalProcessId">approvalProcessId.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="categoryId">categoryId.</param>
 /// <param name="details">details.</param>
 public ChangeGroupSettingService(Guid tenantId = default(Guid), string networkId = default(string), GroupRestrictionType?groupRestriction = default(GroupRestrictionType?), bool enableChangeName = default(bool), bool enableChangeDescription = default(bool), bool enableChangeMemberSubscription = default(bool), bool enableChangeOutsideSenders = default(bool), bool enableChangePrimaryContact = default(bool), bool enableChangeSecondaryContact = default(bool), bool enableAddOwners = default(bool), UserLevelRestrictionType?addOwnerRestriction = default(UserLevelRestrictionType?), bool enableRemoveOwners = default(bool), bool enableAddMembers = default(bool), UserLevelRestrictionType?addMemberRestriction = default(UserLevelRestrictionType?), bool enableRemoveMembers = default(bool), bool enableChangeDynamicMembershipRules = default(bool), bool enableChangeTeamCollaboration = default(bool), bool enableChangeHubSite = default(bool), bool enableChangeClassification = default(bool), List <string> classificationList = default(List <string>), bool enableChangeSensitivity = default(bool), List <string> sensitivityList = default(List <string>), bool enableChangeMetadata = default(bool), bool enableAddOrDeleteMetadata = default(bool), List <CustomMetadata> metadataList = default(List <CustomMetadata>), bool enableChangeMembershipType = default(bool), GroupObjectType?groupObjectType = default(GroupObjectType?), bool enableChangeYammerGroupInfo = default(bool), Guid?scopePeoplePickerFilterProfileId = default(Guid?), Guid?peoplePickerFilterProfileId = default(Guid?), ChangeGroupSettingRequest requestTemplate = default(ChangeGroupSettingRequest), AssignBy?departmentAssignBy = default(AssignBy?), List <CustomMetadata> metadatas = default(List <CustomMetadata>), bool hideRequestSummary = default(bool), Guid id = default(Guid), string name = default(string), string description = default(string), ServiceType?type = default(ServiceType?), string department = default(string), bool loadDepartmentFromUps = default(bool), List <string> departments = default(List <string>), ApiUser serviceContact = default(ApiUser), ApiUser serviceAdminContact = default(ApiUser), bool approversContainManagerRole = default(bool), CommonStatus?status = default(CommonStatus?), bool showServiceInCatalog = default(bool), CustomActionSettings customActions = default(CustomActionSettings), Guid approvalProcessId = default(Guid), int languageId = default(int), string categoryId = default(string), string details = default(string))
 {
     this.TenantId                           = tenantId;
     this.NetworkId                          = networkId;
     this.GroupRestriction                   = groupRestriction;
     this.EnableChangeName                   = enableChangeName;
     this.EnableChangeDescription            = enableChangeDescription;
     this.EnableChangeMemberSubscription     = enableChangeMemberSubscription;
     this.EnableChangeOutsideSenders         = enableChangeOutsideSenders;
     this.EnableChangePrimaryContact         = enableChangePrimaryContact;
     this.EnableChangeSecondaryContact       = enableChangeSecondaryContact;
     this.EnableAddOwners                    = enableAddOwners;
     this.AddOwnerRestriction                = addOwnerRestriction;
     this.EnableRemoveOwners                 = enableRemoveOwners;
     this.EnableAddMembers                   = enableAddMembers;
     this.AddMemberRestriction               = addMemberRestriction;
     this.EnableRemoveMembers                = enableRemoveMembers;
     this.EnableChangeDynamicMembershipRules = enableChangeDynamicMembershipRules;
     this.EnableChangeTeamCollaboration      = enableChangeTeamCollaboration;
     this.EnableChangeHubSite                = enableChangeHubSite;
     this.EnableChangeClassification         = enableChangeClassification;
     this.ClassificationList                 = classificationList;
     this.EnableChangeSensitivity            = enableChangeSensitivity;
     this.SensitivityList                    = sensitivityList;
     this.EnableChangeMetadata               = enableChangeMetadata;
     this.EnableAddOrDeleteMetadata          = enableAddOrDeleteMetadata;
     this.MetadataList                       = metadataList;
     this.EnableChangeMembershipType         = enableChangeMembershipType;
     this.GroupObjectType                    = groupObjectType;
     this.EnableChangeYammerGroupInfo        = enableChangeYammerGroupInfo;
     this.ScopePeoplePickerFilterProfileId   = scopePeoplePickerFilterProfileId;
     this.PeoplePickerFilterProfileId        = peoplePickerFilterProfileId;
     this.RequestTemplate                    = requestTemplate;
     this.DepartmentAssignBy                 = departmentAssignBy;
     this.Metadatas                          = metadatas;
     this.HideRequestSummary                 = hideRequestSummary;
     this.Id                          = id;
     this.Name                        = name;
     this.Description                 = description;
     this.Type                        = type;
     this.Department                  = department;
     this.LoadDepartmentFromUps       = loadDepartmentFromUps;
     this.Departments                 = departments;
     this.ServiceContact              = serviceContact;
     this.ServiceAdminContact         = serviceAdminContact;
     this.ApproversContainManagerRole = approversContainManagerRole;
     this.Status                      = status;
     this.ShowServiceInCatalog        = showServiceInCatalog;
     this.CustomActions               = customActions;
     this.ApprovalProcessId           = approvalProcessId;
     this.LanguageId                  = languageId;
     this.CategoryId                  = categoryId;
     this.Details                     = details;
 }
Beispiel #24
0
        private static void ParseServiceXml(XDoc serviceDoc, out uint?serviceId, out string SID, out string description, out bool?serviceEnabled,
                                            out bool?localInit, out ServiceType?type, out string uri,
                                            out NameValueCollection config, out NameValueCollection preferences)
        {
            /*
             * <service id=x>
             *  <sid/>
             *  <type/> // authentication(auth) or extension (ext)
             *  <description/>
             *  <status/>
             *  <init/> // native or remote
             *  <uri/> // for remote
             *  <config>
             *      <value key="foo">bar</value>
             *  </config>
             */

            config      = null;
            preferences = null;
            serviceId   = null;
            type        = ServiceType.UNDEFINED;
            localInit   = null;
            uri         = null;

            if (!serviceDoc["@id"].IsEmpty)
            {
                serviceId = serviceDoc["@id"].AsUInt;
            }

            string typeStr = serviceDoc["type"].AsText ?? string.Empty;

            switch (typeStr.ToLowerInvariant())
            {
            case "auth":
            case "authentication":
                type = ServiceType.AUTH;
                break;

            case "ext":
            case "extension":
                type = ServiceType.EXT;
                break;

            default:
                throw new ServiceInvalidUpdateTypeInvalidArgumentException();
            }

            string initStr = serviceDoc["init"].AsText ?? serviceDoc["initialization"].AsText ?? string.Empty;

            switch (initStr.ToLowerInvariant())
            {
            case "native":
                localInit = true;
                break;

            case "remote":
                localInit = false;
                break;

            default:
                throw new ServiceUnexpectedInitInvalidOperationException();
            }

            SID         = serviceDoc["sid"].AsText;
            description = serviceDoc["description"].AsText;
            if (string.IsNullOrEmpty(description))
            {
                throw new ServiceMissingDescriptionInvalidArgumentException();
            }

            switch ((serviceDoc["status"].AsText ?? string.Empty).ToLowerInvariant())
            {
            case "enabled":
                serviceEnabled = true;
                break;

            case "disabled":
                serviceEnabled = false;
                break;

            case "":
                serviceEnabled = null;
                break;

            default:
                throw new ServiceInvalidStatusInvalidArgumentException();
            }

            if (!string.IsNullOrEmpty(serviceDoc["uri"].AsText))
            {
                XUri tempUri = serviceDoc["uri"].AsUri;
                if (tempUri != null)
                {
                    uri = tempUri.ToString();
                }
            }

            if (!serviceDoc["preferences"].IsEmpty)
            {
                preferences = new NameValueCollection();

                foreach (XDoc pref in serviceDoc["preferences/value"])
                {
                    string key = pref["@key"].AsText ?? string.Empty;
                    string val = pref.AsText ?? string.Empty;

                    if (!string.IsNullOrEmpty(key))
                    {
                        preferences.Add(key, val);
                    }
                }
            }

            if (!serviceDoc["config"].IsEmpty)
            {
                config = new NameValueCollection();

                foreach (XDoc cfg in serviceDoc["config/value"])
                {
                    string key = cfg["@key"].AsText ?? string.Empty;
                    string val = cfg.AsText ?? string.Empty;

                    if (!string.IsNullOrEmpty(key))
                    {
                        config.Add(key, val);
                    }
                }
            }
        }
Beispiel #25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GroupLifecycleService" /> class.
 /// </summary>
 /// <param name="tenantId">tenantId.</param>
 /// <param name="action">action.</param>
 /// <param name="groupObjectType">groupObjectType.</param>
 /// <param name="networkId">networkId.</param>
 /// <param name="scopePeoplePickerFilterProfileId">scopePeoplePickerFilterProfileId.</param>
 /// <param name="requestTemplate">requestTemplate.</param>
 /// <param name="changePolicyAssignBy">changePolicyAssignBy.</param>
 /// <param name="departmentAssignBy">departmentAssignBy.</param>
 /// <param name="metadatas">metadatas.</param>
 /// <param name="hideRequestSummary">hideRequestSummary.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="type">type.</param>
 /// <param name="department">department.</param>
 /// <param name="loadDepartmentFromUps">loadDepartmentFromUps.</param>
 /// <param name="departments">departments.</param>
 /// <param name="serviceContact">serviceContact.</param>
 /// <param name="serviceAdminContact">serviceAdminContact.</param>
 /// <param name="approversContainManagerRole">approversContainManagerRole.</param>
 /// <param name="status">status.</param>
 /// <param name="showServiceInCatalog">showServiceInCatalog.</param>
 /// <param name="customActions">customActions.</param>
 /// <param name="approvalProcessId">approvalProcessId.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="categoryId">categoryId.</param>
 /// <param name="details">details.</param>
 public GroupLifecycleService(Guid tenantId = default(Guid), GroupLifecycleActionType?action = default(GroupLifecycleActionType?), GroupObjectType?groupObjectType = default(GroupObjectType?), string networkId = default(string), Guid?scopePeoplePickerFilterProfileId = default(Guid?), GroupLifecycleRequest requestTemplate = default(GroupLifecycleRequest), AssignBy?changePolicyAssignBy = default(AssignBy?), AssignBy?departmentAssignBy = default(AssignBy?), List <CustomMetadata> metadatas = default(List <CustomMetadata>), bool hideRequestSummary = default(bool), Guid id = default(Guid), string name = default(string), string description = default(string), ServiceType?type = default(ServiceType?), string department = default(string), bool loadDepartmentFromUps = default(bool), List <string> departments = default(List <string>), ApiUser serviceContact = default(ApiUser), ApiUser serviceAdminContact = default(ApiUser), bool approversContainManagerRole = default(bool), CommonStatus?status = default(CommonStatus?), bool showServiceInCatalog = default(bool), CustomActionSettings customActions = default(CustomActionSettings), Guid approvalProcessId = default(Guid), int languageId = default(int), string categoryId = default(string), string details = default(string))
 {
     this.TenantId        = tenantId;
     this.Action          = action;
     this.GroupObjectType = groupObjectType;
     this.NetworkId       = networkId;
     this.ScopePeoplePickerFilterProfileId = scopePeoplePickerFilterProfileId;
     this.RequestTemplate      = requestTemplate;
     this.ChangePolicyAssignBy = changePolicyAssignBy;
     this.DepartmentAssignBy   = departmentAssignBy;
     this.Metadatas            = metadatas;
     this.HideRequestSummary   = hideRequestSummary;
     this.Id                          = id;
     this.Name                        = name;
     this.Description                 = description;
     this.Type                        = type;
     this.Department                  = department;
     this.LoadDepartmentFromUps       = loadDepartmentFromUps;
     this.Departments                 = departments;
     this.ServiceContact              = serviceContact;
     this.ServiceAdminContact         = serviceAdminContact;
     this.ApproversContainManagerRole = approversContainManagerRole;
     this.Status                      = status;
     this.ShowServiceInCatalog        = showServiceInCatalog;
     this.CustomActions               = customActions;
     this.ApprovalProcessId           = approvalProcessId;
     this.LanguageId                  = languageId;
     this.CategoryId                  = categoryId;
     this.Details                     = details;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateListService" /> class.
 /// </summary>
 /// <param name="enableNavigation">enableNavigation.</param>
 /// <param name="defaultListType">defaultListType.</param>
 /// <param name="versionSettings">versionSettings.</param>
 /// <param name="listTemplateSettings">listTemplateSettings.</param>
 /// <param name="urlSettings">urlSettings.</param>
 /// <param name="allowBreakPermissionInheritance">allowBreakPermissionInheritance.</param>
 /// <param name="permissionSettings">permissionSettings.</param>
 /// <param name="scopeSettings">scopeSettings.</param>
 /// <param name="listVersionAssignBy">listVersionAssignBy.</param>
 /// <param name="listTemplateAssignBy">listTemplateAssignBy.</param>
 /// <param name="navigationAssignBy">navigationAssignBy.</param>
 /// <param name="listTypeAssignBy">listTypeAssignBy.</param>
 /// <param name="requestTemplate">requestTemplate.</param>
 /// <param name="departmentAssignBy">departmentAssignBy.</param>
 /// <param name="metadatas">metadatas.</param>
 /// <param name="hideRequestSummary">hideRequestSummary.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="type">type.</param>
 /// <param name="department">department.</param>
 /// <param name="loadDepartmentFromUps">loadDepartmentFromUps.</param>
 /// <param name="departments">departments.</param>
 /// <param name="serviceContact">serviceContact.</param>
 /// <param name="serviceAdminContact">serviceAdminContact.</param>
 /// <param name="approversContainManagerRole">approversContainManagerRole.</param>
 /// <param name="status">status.</param>
 /// <param name="showServiceInCatalog">showServiceInCatalog.</param>
 /// <param name="customActions">customActions.</param>
 /// <param name="approvalProcessId">approvalProcessId.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="categoryId">categoryId.</param>
 /// <param name="details">details.</param>
 public CreateListService(bool enableNavigation = default(bool), ListType?defaultListType = default(ListType?), ListVersionSettings versionSettings = default(ListVersionSettings), ListTemplateSettings listTemplateSettings = default(ListTemplateSettings), CreateListUrlSettings urlSettings = default(CreateListUrlSettings), bool allowBreakPermissionInheritance = default(bool), PermissionSettings permissionSettings = default(PermissionSettings), ServiceScopeSettings scopeSettings = default(ServiceScopeSettings), AssignBy?listVersionAssignBy = default(AssignBy?), AssignBy?listTemplateAssignBy = default(AssignBy?), AssignBy?navigationAssignBy = default(AssignBy?), AssignBy?listTypeAssignBy = default(AssignBy?), CreateListRequest requestTemplate = default(CreateListRequest), AssignBy?departmentAssignBy = default(AssignBy?), List <CustomMetadata> metadatas = default(List <CustomMetadata>), bool hideRequestSummary = default(bool), Guid id = default(Guid), string name = default(string), string description = default(string), ServiceType?type = default(ServiceType?), string department = default(string), bool loadDepartmentFromUps = default(bool), List <string> departments = default(List <string>), ApiUser serviceContact = default(ApiUser), ApiUser serviceAdminContact = default(ApiUser), bool approversContainManagerRole = default(bool), CommonStatus?status = default(CommonStatus?), bool showServiceInCatalog = default(bool), CustomActionSettings customActions = default(CustomActionSettings), Guid approvalProcessId = default(Guid), int languageId = default(int), string categoryId = default(string), string details = default(string))
 {
     this.EnableNavigation                = enableNavigation;
     this.DefaultListType                 = defaultListType;
     this.VersionSettings                 = versionSettings;
     this.ListTemplateSettings            = listTemplateSettings;
     this.UrlSettings                     = urlSettings;
     this.AllowBreakPermissionInheritance = allowBreakPermissionInheritance;
     this.PermissionSettings              = permissionSettings;
     this.ScopeSettings                   = scopeSettings;
     this.ListVersionAssignBy             = listVersionAssignBy;
     this.ListTemplateAssignBy            = listTemplateAssignBy;
     this.NavigationAssignBy              = navigationAssignBy;
     this.ListTypeAssignBy                = listTypeAssignBy;
     this.RequestTemplate                 = requestTemplate;
     this.DepartmentAssignBy              = departmentAssignBy;
     this.Metadatas          = metadatas;
     this.HideRequestSummary = hideRequestSummary;
     this.Id                          = id;
     this.Name                        = name;
     this.Description                 = description;
     this.Type                        = type;
     this.Department                  = department;
     this.LoadDepartmentFromUps       = loadDepartmentFromUps;
     this.Departments                 = departments;
     this.ServiceContact              = serviceContact;
     this.ServiceAdminContact         = serviceAdminContact;
     this.ApproversContainManagerRole = approversContainManagerRole;
     this.Status                      = status;
     this.ShowServiceInCatalog        = showServiceInCatalog;
     this.CustomActions               = customActions;
     this.ApprovalProcessId           = approvalProcessId;
     this.LanguageId                  = languageId;
     this.CategoryId                  = categoryId;
     this.Details                     = details;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ContentMoveService" /> class.
 /// </summary>
 /// <param name="method">method.</param>
 /// <param name="action">action.</param>
 /// <param name="copySettings">copySettings.</param>
 /// <param name="moveSettings">moveSettings.</param>
 /// <param name="commonSettings">commonSettings.</param>
 /// <param name="conflictResolutionAssignBy">conflictResolutionAssignBy.</param>
 /// <param name="deleteTypeAssignBy">deleteTypeAssignBy.</param>
 /// <param name="deleteCheckedFilesAssignBy">deleteCheckedFilesAssignBy.</param>
 /// <param name="filterPolicyAssignBy">filterPolicyAssignBy.</param>
 /// <param name="methodAssignBy">methodAssignBy.</param>
 /// <param name="actionAssignBy">actionAssignBy.</param>
 /// <param name="copySettingAssignBy">copySettingAssignBy.</param>
 /// <param name="moveSettingAssignBy">moveSettingAssignBy.</param>
 /// <param name="versionsAssignBy">versionsAssignBy.</param>
 /// <param name="workflowAssignBy">workflowAssignBy.</param>
 /// <param name="informationRightsManagementAssignBy">informationRightsManagementAssignBy.</param>
 /// <param name="nullColumnValueAssignBy">nullColumnValueAssignBy.</param>
 /// <param name="modifiedByAndModifiedTimeAssignBy">modifiedByAndModifiedTimeAssignBy.</param>
 /// <param name="mappingSettingAssignBy">mappingSettingAssignBy.</param>
 /// <param name="backupEnvironmentAssignBy">backupEnvironmentAssignBy.</param>
 /// <param name="requestTemplate">requestTemplate.</param>
 /// <param name="departmentAssignBy">departmentAssignBy.</param>
 /// <param name="metadatas">metadatas.</param>
 /// <param name="hideRequestSummary">hideRequestSummary.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="type">type.</param>
 /// <param name="department">department.</param>
 /// <param name="loadDepartmentFromUps">loadDepartmentFromUps.</param>
 /// <param name="departments">departments.</param>
 /// <param name="serviceContact">serviceContact.</param>
 /// <param name="serviceAdminContact">serviceAdminContact.</param>
 /// <param name="approversContainManagerRole">approversContainManagerRole.</param>
 /// <param name="status">status.</param>
 /// <param name="showServiceInCatalog">showServiceInCatalog.</param>
 /// <param name="customActions">customActions.</param>
 /// <param name="approvalProcessId">approvalProcessId.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="categoryId">categoryId.</param>
 /// <param name="details">details.</param>
 public ContentMoveService(ContentMoveMethod?method = default(ContentMoveMethod?), ContentMoveAction?action = default(ContentMoveAction?), CopyMoveSetting copySettings = default(CopyMoveSetting), CopyMoveSetting moveSettings = default(CopyMoveSetting), ContentMoveCommonSetting commonSettings = default(ContentMoveCommonSetting), AssignBy?conflictResolutionAssignBy = default(AssignBy?), AssignBy?deleteTypeAssignBy = default(AssignBy?), AssignBy?deleteCheckedFilesAssignBy = default(AssignBy?), AssignBy?filterPolicyAssignBy = default(AssignBy?), AssignBy?methodAssignBy = default(AssignBy?), AssignBy?actionAssignBy = default(AssignBy?), CopyMoveSettingAssignBy copySettingAssignBy = default(CopyMoveSettingAssignBy), CopyMoveSettingAssignBy moveSettingAssignBy = default(CopyMoveSettingAssignBy), AssignBy?versionsAssignBy = default(AssignBy?), AssignBy?workflowAssignBy = default(AssignBy?), AssignBy?informationRightsManagementAssignBy = default(AssignBy?), AssignBy?nullColumnValueAssignBy = default(AssignBy?), AssignBy?modifiedByAndModifiedTimeAssignBy = default(AssignBy?), AssignBy?mappingSettingAssignBy = default(AssignBy?), AssignBy?backupEnvironmentAssignBy = default(AssignBy?), ContentMoveRequest requestTemplate = default(ContentMoveRequest), AssignBy?departmentAssignBy = default(AssignBy?), List <CustomMetadata> metadatas = default(List <CustomMetadata>), bool hideRequestSummary = default(bool), Guid id = default(Guid), string name = default(string), string description = default(string), ServiceType?type = default(ServiceType?), string department = default(string), bool loadDepartmentFromUps = default(bool), List <string> departments = default(List <string>), ApiUser serviceContact = default(ApiUser), ApiUser serviceAdminContact = default(ApiUser), bool approversContainManagerRole = default(bool), CommonStatus?status = default(CommonStatus?), bool showServiceInCatalog = default(bool), CustomActionSettings customActions = default(CustomActionSettings), Guid approvalProcessId = default(Guid), int languageId = default(int), string categoryId = default(string), string details = default(string))
 {
     this.Method                              = method;
     this.Action                              = action;
     this.CopySettings                        = copySettings;
     this.MoveSettings                        = moveSettings;
     this.CommonSettings                      = commonSettings;
     this.ConflictResolutionAssignBy          = conflictResolutionAssignBy;
     this.DeleteTypeAssignBy                  = deleteTypeAssignBy;
     this.DeleteCheckedFilesAssignBy          = deleteCheckedFilesAssignBy;
     this.FilterPolicyAssignBy                = filterPolicyAssignBy;
     this.MethodAssignBy                      = methodAssignBy;
     this.ActionAssignBy                      = actionAssignBy;
     this.CopySettingAssignBy                 = copySettingAssignBy;
     this.MoveSettingAssignBy                 = moveSettingAssignBy;
     this.VersionsAssignBy                    = versionsAssignBy;
     this.WorkflowAssignBy                    = workflowAssignBy;
     this.InformationRightsManagementAssignBy = informationRightsManagementAssignBy;
     this.NullColumnValueAssignBy             = nullColumnValueAssignBy;
     this.ModifiedByAndModifiedTimeAssignBy   = modifiedByAndModifiedTimeAssignBy;
     this.MappingSettingAssignBy              = mappingSettingAssignBy;
     this.BackupEnvironmentAssignBy           = backupEnvironmentAssignBy;
     this.RequestTemplate                     = requestTemplate;
     this.DepartmentAssignBy                  = departmentAssignBy;
     this.Metadatas                           = metadatas;
     this.HideRequestSummary                  = hideRequestSummary;
     this.Id                          = id;
     this.Name                        = name;
     this.Description                 = description;
     this.Type                        = type;
     this.Department                  = department;
     this.LoadDepartmentFromUps       = loadDepartmentFromUps;
     this.Departments                 = departments;
     this.ServiceContact              = serviceContact;
     this.ServiceAdminContact         = serviceAdminContact;
     this.ApproversContainManagerRole = approversContainManagerRole;
     this.Status                      = status;
     this.ShowServiceInCatalog        = showServiceInCatalog;
     this.CustomActions               = customActions;
     this.ApprovalProcessId           = approvalProcessId;
     this.LanguageId                  = languageId;
     this.CategoryId                  = categoryId;
     this.Details                     = details;
 }
Beispiel #28
0
        /// <summary>
        /// Create a HTTP web request.
        /// </summary>
        /// <param name="requestMethod">Request method, e.g. GET.</param>
        /// <param name="url">Request endpoint.</param>
        /// <param name="authorisationToken">The authorization token.</param>
        /// <param name="serviceType">Service type.</param>
        /// <param name="navigationPage">Current paging index.</param>
        /// <param name="navigationPageSize">Page size.</param>
        /// <param name="methodOverride">Overrides the method of the request, e.g. to implement a GET with a payload over a POST request.</param>
        /// <param name="contentTypeOverride">Overrides the ContentType header.</param>
        /// <param name="acceptOverride">Overrides the Accept header.</param>
        /// <returns>HTTP web request.</returns>
        private static HttpWebRequest CreateHttpWebRequest(RequestMethod requestMethod,
                                                           string url,
                                                           AuthorisationToken authorisationToken,
                                                           ServiceType?serviceType    = null,
                                                           int?navigationPage         = null,
                                                           int?navigationPageSize     = null,
                                                           string methodOverride      = null,
                                                           string contentTypeOverride = null,
                                                           string acceptOverride      = null)
        {
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);

            request.ContentType = "application/xml";
            request.Method      = requestMethod.ToString();
            request.KeepAlive   = false;
            request.Accept      = "application/xml";
            request.Headers.Add("Authorization", authorisationToken.Token);
            request.Headers.Add("timestamp", authorisationToken.Timestamp);

            if (SettingsManager.ConsumerSettings.CompressPayload)
            {
                request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
                request.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
            }

            if (serviceType.HasValue)
            {
                request.Headers.Add("serviceType", serviceType.Value.ToDescription());
            }

            if (navigationPage.HasValue)
            {
                request.Headers.Add("navigationPage", navigationPage.Value.ToString());
            }

            if (navigationPageSize.HasValue)
            {
                request.Headers.Add("navigationPageSize", navigationPageSize.Value.ToString());
            }

            if (!string.IsNullOrWhiteSpace(methodOverride))
            {
                request.Headers.Add("X-HTTP-Method-Override", methodOverride.Trim());
            }

            if (!string.IsNullOrWhiteSpace(methodOverride))
            {
                request.Headers.Add("methodOverride", methodOverride.Trim());
            }

            if (!string.IsNullOrWhiteSpace(acceptOverride))
            {
                request.Accept = acceptOverride.Trim();
            }

            if (!string.IsNullOrWhiteSpace(contentTypeOverride))
            {
                request.ContentType = contentTypeOverride.Trim();
            }

            return(request);
        }
Beispiel #29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ManagePermissionService" /> class.
 /// </summary>
 /// <param name="userScopeSetting">userScopeSetting.</param>
 /// <param name="sharePointGroupOptions">sharePointGroupOptions.</param>
 /// <param name="permissionOptions">permissionOptions.</param>
 /// <param name="scopeSettings">scopeSettings.</param>
 /// <param name="peoplePickerFilterProfileId">peoplePickerFilterProfileId.</param>
 /// <param name="requestTemplate">requestTemplate.</param>
 /// <param name="departmentAssignBy">departmentAssignBy.</param>
 /// <param name="metadatas">metadatas.</param>
 /// <param name="hideRequestSummary">hideRequestSummary.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="type">type.</param>
 /// <param name="department">department.</param>
 /// <param name="loadDepartmentFromUps">loadDepartmentFromUps.</param>
 /// <param name="departments">departments.</param>
 /// <param name="serviceContact">serviceContact.</param>
 /// <param name="serviceAdminContact">serviceAdminContact.</param>
 /// <param name="approversContainManagerRole">approversContainManagerRole.</param>
 /// <param name="status">status.</param>
 /// <param name="showServiceInCatalog">showServiceInCatalog.</param>
 /// <param name="customActions">customActions.</param>
 /// <param name="approvalProcessId">approvalProcessId.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="categoryId">categoryId.</param>
 /// <param name="details">details.</param>
 public ManagePermissionService(ManagePermissionUserSetting userScopeSetting = default(ManagePermissionUserSetting), ManagePermissionSharePointGroupOption sharePointGroupOptions = default(ManagePermissionSharePointGroupOption), ManagePermissionOption permissionOptions = default(ManagePermissionOption), ServiceScopeSettings scopeSettings = default(ServiceScopeSettings), Guid?peoplePickerFilterProfileId = default(Guid?), ManagePermissionRequest requestTemplate = default(ManagePermissionRequest), AssignBy?departmentAssignBy = default(AssignBy?), List <CustomMetadata> metadatas = default(List <CustomMetadata>), bool hideRequestSummary = default(bool), Guid id = default(Guid), string name = default(string), string description = default(string), ServiceType?type = default(ServiceType?), string department = default(string), bool loadDepartmentFromUps = default(bool), List <string> departments = default(List <string>), ApiUser serviceContact = default(ApiUser), ApiUser serviceAdminContact = default(ApiUser), bool approversContainManagerRole = default(bool), CommonStatus?status = default(CommonStatus?), bool showServiceInCatalog = default(bool), CustomActionSettings customActions = default(CustomActionSettings), Guid approvalProcessId = default(Guid), int languageId = default(int), string categoryId = default(string), string details = default(string))
 {
     this.UserScopeSetting            = userScopeSetting;
     this.SharePointGroupOptions      = sharePointGroupOptions;
     this.PermissionOptions           = permissionOptions;
     this.ScopeSettings               = scopeSettings;
     this.PeoplePickerFilterProfileId = peoplePickerFilterProfileId;
     this.RequestTemplate             = requestTemplate;
     this.DepartmentAssignBy          = departmentAssignBy;
     this.Metadatas          = metadatas;
     this.HideRequestSummary = hideRequestSummary;
     this.Id                          = id;
     this.Name                        = name;
     this.Description                 = description;
     this.Type                        = type;
     this.Department                  = department;
     this.LoadDepartmentFromUps       = loadDepartmentFromUps;
     this.Departments                 = departments;
     this.ServiceContact              = serviceContact;
     this.ServiceAdminContact         = serviceAdminContact;
     this.ApproversContainManagerRole = approversContainManagerRole;
     this.Status                      = status;
     this.ShowServiceInCatalog        = showServiceInCatalog;
     this.CustomActions               = customActions;
     this.ApprovalProcessId           = approvalProcessId;
     this.LanguageId                  = languageId;
     this.CategoryId                  = categoryId;
     this.Details                     = details;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WebLifecycleService" /> class.
 /// </summary>
 /// <param name="action">action.</param>
 /// <param name="archiveContentProfile">archiveContentProfile.</param>
 /// <param name="scopeSettings">scopeSettings.</param>
 /// <param name="requestTemplate">requestTemplate.</param>
 /// <param name="departmentAssignBy">departmentAssignBy.</param>
 /// <param name="metadatas">metadatas.</param>
 /// <param name="hideRequestSummary">hideRequestSummary.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="description">description.</param>
 /// <param name="type">type.</param>
 /// <param name="department">department.</param>
 /// <param name="loadDepartmentFromUps">loadDepartmentFromUps.</param>
 /// <param name="departments">departments.</param>
 /// <param name="serviceContact">serviceContact.</param>
 /// <param name="serviceAdminContact">serviceAdminContact.</param>
 /// <param name="approversContainManagerRole">approversContainManagerRole.</param>
 /// <param name="status">status.</param>
 /// <param name="showServiceInCatalog">showServiceInCatalog.</param>
 /// <param name="customActions">customActions.</param>
 /// <param name="approvalProcessId">approvalProcessId.</param>
 /// <param name="languageId">languageId.</param>
 /// <param name="categoryId">categoryId.</param>
 /// <param name="details">details.</param>
 public WebLifecycleService(WebLifecycleActionType?action = default(WebLifecycleActionType?), string archiveContentProfile = default(string), ServiceScopeSettings scopeSettings = default(ServiceScopeSettings), WebLifecycleRequest requestTemplate = default(WebLifecycleRequest), AssignBy?departmentAssignBy = default(AssignBy?), List <CustomMetadata> metadatas = default(List <CustomMetadata>), bool hideRequestSummary = default(bool), Guid id = default(Guid), string name = default(string), string description = default(string), ServiceType?type = default(ServiceType?), string department = default(string), bool loadDepartmentFromUps = default(bool), List <string> departments = default(List <string>), ApiUser serviceContact = default(ApiUser), ApiUser serviceAdminContact = default(ApiUser), bool approversContainManagerRole = default(bool), CommonStatus?status = default(CommonStatus?), bool showServiceInCatalog = default(bool), CustomActionSettings customActions = default(CustomActionSettings), Guid approvalProcessId = default(Guid), int languageId = default(int), string categoryId = default(string), string details = default(string))
 {
     this.Action = action;
     this.ArchiveContentProfile = archiveContentProfile;
     this.ScopeSettings         = scopeSettings;
     this.RequestTemplate       = requestTemplate;
     this.DepartmentAssignBy    = departmentAssignBy;
     this.Metadatas             = metadatas;
     this.HideRequestSummary    = hideRequestSummary;
     this.Id                          = id;
     this.Name                        = name;
     this.Description                 = description;
     this.Type                        = type;
     this.Department                  = department;
     this.LoadDepartmentFromUps       = loadDepartmentFromUps;
     this.Departments                 = departments;
     this.ServiceContact              = serviceContact;
     this.ServiceAdminContact         = serviceAdminContact;
     this.ApproversContainManagerRole = approversContainManagerRole;
     this.Status                      = status;
     this.ShowServiceInCatalog        = showServiceInCatalog;
     this.CustomActions               = customActions;
     this.ApprovalProcessId           = approvalProcessId;
     this.LanguageId                  = languageId;
     this.CategoryId                  = categoryId;
     this.Details                     = details;
 }
Beispiel #31
0
 public Stop(string address, bool hasCharging = false, ServiceType? services = null) : base()
 {
     Address  = address;
     Services = services;
 }