sets if spool is enable or not

@param spoolEnable
@throws SecurityException
333291
public void setMailSpoolEnable(Boolean spoolEnable) throws SecurityException {
	checkWriteAccess();
	boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_MAIL);

	if (!hasAccess) throw new SecurityException("no access to update mail server settings");
	Element mail = _getRootElement("mail");
	mail.setAttribute("spool-enable", Caster.toString(spoolEnable, ""));
	// config.setMailSpoolEnable(spoolEnable);
    }
717332
public void setControlledObjects(List secured)
    {
        controlledObjects = new ArrayList<WeakReference<Authorizable>>(secured.size());

        // Convert to weak references and validate the object types
        for (Iterator iter = secured.iterator(); iter.hasNext();)
        {
            Object o = iter.next();

            // Ensure that we got something we can control
            if (!(o instanceof Authorizable))
            {
                throw new IllegalArgumentException("Controlled object must implement Authorizable, got "
                        + o.getClass());
            }
            addAndPrepareControlledObject((Authorizable) o);
        }
    }
763803
public void enableLocking() {
		if (validState) {
			throw new InvalidStateException();
		}
		if (Boolean.getBoolean(Constants.PROP_IO_LOCKING)) {
			useLock = false;
			log.info("Disabled Locking in System Property (" + Constants.PROP_IO_LOCKING + ")");
		} else {
			useLock = true;
			log.info("Enabled Locking");
		}
	}
1143409
@Override
    public void setComponentEnabled(boolean enabled) {
        super.setComponentEnabled(enabled);

        boolean enable = enabled && getModel().getRowCount() > 0;
        enableAllButton.setEnabled(enable);
        disableAllButton.setEnabled(enable);
    }
815900
protected void setProjectEnabled(boolean selection) {
        // chkEnableFindBugs.setEnabled(selection);
        // chkRunAtFullBuild.setEnabled(selection &&
        // chkEnableFindBugs.getSelection());
        if (enableProjectCheck != null) {
            // this link should always be enabled
            //workspaceSettingsLink.setEnabled(!selection);
        }
        detectorTab.setEnabled(selection);
        filterFilesTab.setEnabled(selection);
        reportConfigurationTab.setEnabled(selection);
        restoreDefaultsButton.setEnabled(selection);
        effortViewer.getCombo().setEnabled(selection);
    }
689664
public void setSecurityGroups(java.util.Collection<String> securityGroups) {
        if (securityGroups == null) {
            this.securityGroups = null;
            return;
        }

        this.securityGroups = new java.util.ArrayList<String>(securityGroups);
    }
549447
public void setEnabled(boolean enabled) {
		super.setEnabled(enabled);

		if (dayChooser != null) {
			dayChooser.setEnabled(enabled);
			monthChooser.setEnabled(enabled);
			yearChooser.setEnabled(enabled);
		}
	}
46667
public void setPropertiesInSMC(SessionManagerConfig _smc) {
        /*
         * cannot cache whether security is enabled in lWAS
         * boolean securityEnabled = getWsSecurityEnabled();
         * if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINE)) {
         * LoggingUtil.SESSION_LOGGER_CORE.logp(Level.FINE, methodClassName, "setPropertiesInSMC", "smcServerSecurity=" + securityEnabled);
         * }
         * _smc.setServerSecurityEnabled(securityEnabled);
         */
        /*- The following logic exists on tWAS, but serves no purpose because hideSessionValues=true by default 
        if (!SessionManagerConfig.isHideSessionValuesPropertySet() && securityEnabled) {
            // we still need to hide the session if security is on and prop wasn't set
            SessionManagerConfig.setHideSessionValues(true);
        }
         */

        if (_smc.isDebugSessionCrossover() && SessionContext.currentThreadSacHashtable == null) {
            SessionContext.currentThreadSacHashtable = new WSThreadLocal();
        }

    }
19586
private static void setServiceEnabled(final XMPPConnection connection,
            final boolean isEnabled) {
        ServiceDiscoveryManager manager = ServiceDiscoveryManager
                .getInstanceFor(connection);

        List<String> namespaces = new ArrayList<>();
        namespaces.addAll(Arrays.asList(NAMESPACE));
        namespaces.add(DataPacketExtension.NAMESPACE);
        if (!IBB_ONLY) {
            namespaces.add(Bytestream.NAMESPACE);
        }

        for (String namespace : namespaces) {
            if (isEnabled) {
                manager.addFeature(namespace);
            } else {
                manager.removeFeature(namespace);
            }
        }
    }
68699
public void setCacheable(String cacheable) {

        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(cacheable)) {
            m_cacheable = Boolean.valueOf(cacheable).booleanValue();
        }
    }
738039
public void setSecurityConfigurations(java.util.Collection<SecurityConfiguration> securityConfigurations) {
        if (securityConfigurations == null) {
            this.securityConfigurations = null;
            return;
        }

        this.securityConfigurations = new java.util.ArrayList<SecurityConfiguration>(securityConfigurations);
    }
838148
public void setDisabled(boolean disabled) {
		this.disabled = disabled;
		if (disabled) {
			handlerManager.fireEvent(new ToolbarActionDisabledEvent());
		} else {
			handlerManager.fireEvent(new ToolbarActionEnabledEvent());
		}
	}
62673
protected void storeSecurity(Security s, XMLStreamWriter writer) throws Exception
   {
      writer.writeStartElement(CommonXML.ELEMENT_SECURITY);

      if (s.getSecurityDomain() != null)
      {
         writer.writeStartElement(CommonXML.ELEMENT_SECURITY_DOMAIN);
         writer.writeCharacters(s.getValue(CommonXML.ELEMENT_SECURITY_DOMAIN, s.getSecurityDomain()));
         writer.writeEndElement();
      }

      writer.writeEndElement();
   }
679609
public void setSecurityHint(String hint) {

        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(hint)) {
            m_securityHint.setValue(hint);
            m_securityHint.setVisible(true);
        } else {
            m_securityHint.setVisible(false);
        }
    }
308562
@Override
    public void setEnabled(boolean enabled) {
        context.setEnabled(enabled);
        thisTable.setEnabled(enabled);
        localsTable.setEnabled(enabled);
        evaluator.setEnabled(enabled);
        cmdLine.setEnabled(enabled);
    }
866855
public void setAppServerDefaultDeploymentScanEnabled(boolean enabled) throws Exception {
        final String[] addressArr = { SUBSYSTEM, DEPLOYMENT_SCANNER, SCANNER, "default" };
        final Address address = Address.root().add(addressArr);
        final ModelNode req = createWriteAttributeRequest("scan-enabled", Boolean.toString(enabled), address);
        final ModelNode response = execute(req);

        if (!isSuccess(response)) {
            throw new FailureException(response);
        }
        return;
    }
812626
public function setSSL($isEnabled)
    {
        if (!is_bool($isEnabled)) {
            throw new InvalidArgumentException(
                sprintf('%s only accepts a boolean', __FUNCTION__)
            );
        }

        $this->ssl = (bool)$isEnabled;

        return $this;
    }