Ejemplo n.º 1
0
        /// <summary>
        /// Creates and intialize a proxy of the Percussion service used for retriving
        /// slots and templates.
        /// </summary>
        /// <param name="protocol">Communications protocol to use when connecting to
        ///     the Percussion server.  Should be either HTTP or HTTPS.</param>
        /// <param name="host">Host name or IP address of the Percussion server.</param>
        /// <param name="port">Port number to use when connecting to the Percussion server.</param>
        /// <param name="cookie">The cookie container for maintaining the session for all
        ///     webservice requests.</param>
        /// <param name="authHeader">The authentication header for maintaining the Rhythmyx session
        ///     for all webservice requests.</param>
        /// <returns>An initialized proxy for the Percussion content service.</returns>
        public static assemblySOAP GetAssemblyService(string protocol, string host, string port, CookieContainer cookie, PSAuthenticationHeader authHeader)
        {
            assemblySOAP assemblySvc = new assemblySOAP();

            assemblySvc.Url                         = RewriteServiceUrl(assemblySvc.Url, protocol, host, port);
            assemblySvc.CookieContainer             = cookie;
            assemblySvc.PSAuthenticationHeaderValue = authHeader;

            return(assemblySvc);
        }
Ejemplo n.º 2
0
        internal TemplateNameManager(assemblySOAP assemblyService)
        {
            _assemblyService = assemblyService;

            if (_templateMap == null)
            {
                // Lock the container for possible updating.
                lock (lockObject)
                {
                    // Was the map loaded while we waited for the lock?
                    if (_templateMap == null)
                    {
                        LoadTemplateIDMap();
                    }
                }
            }
        }
Ejemplo n.º 3
0
        public static PSTemplateSlot[] LoadSlots(assemblySOAP assemblySvc)
        {
            PSTemplateSlot[] slotData;

            try
            {
                LoadSlotsRequest req = new LoadSlotsRequest();
                slotData = assemblySvc.LoadSlots(req);
            }
            catch (SoapException ex)
            {
                throw new CMSSoapException("Percussion error in LoadSlots", ex);
            }


            return(slotData);
        }
Ejemplo n.º 4
0
        public static PSAssemblyTemplate[] LoadAssemblyTemplates(assemblySOAP assemblySvc)
        {
            PSAssemblyTemplate[] templateData;

            try
            {
                LoadAssemblyTemplatesRequest req = new LoadAssemblyTemplatesRequest();
                templateData = assemblySvc.LoadAssemblyTemplates(req);
            }
            catch (SoapException ex)
            {
                throw new CMSSoapException("Percussion error in LoadAssemblyTemplates", ex);
            }


            return(templateData);
        }
Ejemplo n.º 5
0
        internal SlotManager(assemblySOAP assemblyService,
                             ContentTypeManager contentTypeManager,
                             TemplateNameManager templateNameManager)
        {
            _assemblyService = assemblyService;

            if (_slotMap == null)
            {
                // Lock the container for possible updating.
                lock (lockObject)
                {
                    // Was the map loaded while we waited for the lock?
                    if (_slotMap == null)
                    {
                        LoadSlotInfoMap(contentTypeManager, templateNameManager);
                    }
                }
            }
        }