예제 #1
0
        protected override bool IsPageEnabled(ModulePageInfo pageInfo)
        {
            Connection            conn = (Connection)GetService(typeof(Connection));
            ConfigurationPathType pt   = conn.ConfigurationPath.PathType;

            return(pt == ConfigurationPathType.Server);
        }
        internal void Initialize(PropertyBag bag, ConfigurationPathType scope, bool isLocalConnection)
        {
            Bag = bag;
            IsLocalConnection = isLocalConnection;

            if (scope != ConfigurationPathType.Server)
            {
                SetReadOnly("CosignHttpOnlyCookies", true);
                SetReadOnly("CosignSecureCookies", true);
                SetReadOnly("CosignCookieTimeout", true);
                SetReadOnly("CosignUrlValidation", true);
                SetReadOnly("CosignErrorUrl", true);
                SetReadOnly("CosignCookieDbPath", true);
                SetReadOnly("CosignServerPort", true);
                SetReadOnly("CosignServerName", true);
                SetReadOnly("CosignServerUrl", true);
                SetReadOnly("CosignConnectionRetries", true);
                SetReadOnly("CosignKerberosTicketPath", true);
            }
            else
            {
                SetReadOnly("CosignHttpOnlyCookies", false);
                SetReadOnly("CosignSecureCookies", false);
                SetReadOnly("CosignCookieTimeout", false);
                SetReadOnly("CosignUrlValidation", false);
                SetReadOnly("CosignErrorUrl", false);
                SetReadOnly("CosignCookieDbPath", false);
                SetReadOnly("CosignServerPort", false);
                SetReadOnly("CosignServerName", false);
                SetReadOnly("CosignServerUrl", false);
                SetReadOnly("CosignConnectionRetries", false);
                SetReadOnly("CosignKerberosTicketPath", false);
            }

            if (scope != ConfigurationPathType.Server && scope != ConfigurationPathType.Site)
            {
                SetReadOnly("ServiceName", true);
                SetReadOnly("CertificateCommonName", true);
            }
            else
            {
                SetReadOnly("ServiceName", false);
                SetReadOnly("CertificateCommonName", false);
            }
        }
        protected override bool IsPageEnabled(ModulePageInfo pageInfo)
        {
            ConfigurationPathType pathType = Connection.ConfigurationPath.PathType;

            return((pathType == ConfigurationPathType.Site) || (pathType == ConfigurationPathType.Application));
        }
 public CosignModuleCustomPropertiesInfo(ModulePropertiesPage page, PropertyBag bag, ConfigurationPathType scope, bool isLocalConnection)
     : base(page)
 {
     Initialize(bag, scope, isLocalConnection);
 }