class AbstractInstallSetup implements InstallSetup {

	@Override
	public boolean isAbleToScan(TargetType type) {
		if (type==null) {
			return false;
		}
		ensureInfo();

		if (isIntranet(type)) {
			return info.canScanIntranet;
		}else if (isInternet(type)) {
			return info.canScanInternet;
		}else if (isCode(type)){
			/* code has no restriction is always scannable */
			return true;
		}else {
			return false;
		}
	}

}