Gets the information if the search form is in the inital state.<p>

@return true, the search form is in the inital state. otherwise false
356023
private boolean isInitialCall() {

        // return false in case the form was submitted already or the submit button was pressed or the index was changed
        return !(((getJsp().getRequest().getParameter(CmsDialog.PARAM_ACTION) != null)
            && (getJsp().getRequest().getParameter(CmsDialog.PARAM_ACTION).equals(
                CmsDialog.PARAM_ACTION_VALUE_FOR_CHANGED_INDEX)))
            || ((getJsp().getRequest().getParameter("indexName.0")) != null));
    }
1305194
public boolean hasSelectFolder() {

        if (hasSelectResource()) {
            for (CmsResourceTypeBean type : m_dialogBean.getTypes()) {
                if (type.getType().contains(I_CmsGalleryProviderConstants.RESOURCE_TYPE_FOLDER)) {
                    return true;
                }
            }
        }
        return false;
    }
1100432
public boolean isHiddenNavigationEntry() {

        if (m_isHiddenNavigationEntry == null) {
            // use "lazy initializing"
            String navInfo = getProperties().get(CmsPropertyDefinition.PROPERTY_NAVINFO);
            m_isHiddenNavigationEntry = Boolean.valueOf(CmsClientSitemapEntry.HIDDEN_NAVIGATION_ENTRY.equals(navInfo));
        }
        return m_isHiddenNavigationEntry.booleanValue();
    }
589943
public boolean isSingleResult() {
		if (result == null) {
			return false;
		} else {
			if (singleResult == null) {
				if (result.size() == 1 && result.values().iterator().next().size() == 1) {
					singleResult = true;
				} else {
					singleResult = false;
				}
			}
			return singleResult;
		}
	}
192345
public static boolean isInitialized() {
    final boolean loaded = WebshimResources.rememberEvent != null
        || StringUtils.isEmpty(WebshimResources.POLIFILLER_URL);
    return loaded || WebshimResources.isInHeader();
  }
1300091
private I_CmsSearchIndex getIndex() {

        I_CmsSearchIndex index = null;
        // get the configured index or the selected index
        if (isInitialCall()) {
            // the search form is in the initial state
            // get the configured index
            index = OpenCms.getSearchManager().getIndex(getSettings().getUserSettings().getWorkplaceSearchIndexName());
        } else {
            // the search form is not in the inital state, the submit button was used already or the
            // search index was changed already
            // get the selected index in the search dialog
            index = OpenCms.getSearchManager().getIndex(getJsp().getRequest().getParameter("indexName.0"));
        }
        return index;
    }
655508
int getState() {
    if (tc.isEntryEnabled())
      tc.entry(this,cclass, "getState");
    int state;
    if (!prefixDone) {
      // Somewhere in the prefix or at beginning and there is no prefix
      Pattern.Clause prefix = pattern.getPrefix();
      if (prefix == null || next >= prefix.items.length) {
        // There is no prefix or we're at the end of it
        Pattern.Clause suffix = pattern.getSuffix();
        // Answer depends on the suffix
        state = suffix == null ? FINAL_MANY : suffix == prefix ? FINAL_EXACT
          : SWITCH_TO_SUFFIX;
      }
      else
        // We're somewhere in the body of the prefix
        state = prefix.items[next] == Pattern.matchOne ? SKIP_ONE_PREFIX : PREFIX_CHARS;
    }
    else {
      // We're in the suffix
      Pattern.Clause suffix = pattern.getSuffix();
      state = (next < 0) ? FINAL_MANY
        : suffix.items[next] == Pattern.matchOne ? SKIP_ONE_SUFFIX : SUFFIX_CHARS;  
    }
    if (tc.isEntryEnabled())
      tc.exit(this,cclass, "getState", new Integer(state));
    return state;
  }
1352044
private static boolean isRunningInWAS() {
        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
            SibTr.entry(TRACE, "isRunningInWAS");
        }

        if (inWAS == null) {
            inWAS = Boolean.TRUE;
        }

        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
            SibTr.exit(TRACE, "isRunningInWAS", inWAS);
        }
        return inWAS.booleanValue();
    }
1074215
public String getState()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getState");
    String state = 
      messageProcessor.getDestinationManager().getDestinationIndex().getState(foreignDest).toString();
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getState");
    return state;
  }
1162519
private boolean getInitBoolean(String name)
    {
        String value = getInitParameter(name);
        return value != null && value.length() > 0 && (value.startsWith("t") || value.startsWith("T") || value.startsWith("y") || value.startsWith("Y") || value.startsWith("1"));
    }
559901
protected boolean isOperationOnFolder() {

        Iterator<String> i = getResourceList().iterator();
        while (i.hasNext()) {
            String resName = i.next();
            try {
                CmsResource curRes = getCms().readResource(resName, CmsResourceFilter.ALL);
                if (curRes.isFolder()) {
                    // found a folder
                    return true;
                }
            } catch (CmsException e) {
                // can usually be ignored
                if (LOG.isInfoEnabled()) {
                    LOG.info(e.getLocalizedMessage());
                }
            }
        }
        return false;
    }
1324038
protected boolean isWeb() {
		ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
		if (attributes == null) {
			return false;
		}
		HttpServletRequest request = attributes.getRequest();
		if (request == null) {
			return false;
		}
		return true;
	}
857940
protected function hasInvalidState()
    {
        if ($this->isStateless()) {
            return false;
        }
        $state = $this->getSessionData('Socialite.state');
        return !(strlen($state) > 0 && A::get($this->request->getQueryParams(), 'state') === $state);
    }
1316699
public boolean find() {
    start = last;
    for (; start < tokens.size(); start++) {
      match = automaton.matches(input, start);
      if (match.getEndLocation() != -1) {
        last = match.getEndLocation();
        return true;
      }
    }
    start = -1;
    match = new Match(-1, null);
    return false;
  }
1124953
private boolean isSolrEnabled() {

        boolean solrEnabled = OpenCms.getSearchManager().getSolrServerConfiguration().isEnabled();
        CmsSolrIndex solrIndex = OpenCms.getSearchManager().getIndexSolr(CmsSolrIndex.DEFAULT_INDEX_NAME_OFFLINE);
        return solrEnabled && (solrIndex != null);
    }
566467
public boolean onBackPressed() {
        if (subForm != null) {
            final boolean shouldDisplayPreviousForm = configuration.allowLogIn() || configuration.allowSignUp();
            if (shouldDisplayPreviousForm) {
                resetHeaderTitle();
                showSignUpTerms(subForm instanceof CustomFieldsFormView);
                removeSubForm();
                clearFocus();
                return true;
            }
        }

        return formLayout != null && formLayout.onBackPressed();
    }
726880
private boolean isDialogOpen(){
		final Activity activity = activityUtils.getCurrentActivity(false);
		final View[] views = viewFetcher.getWindowDecorViews();
		View view = viewFetcher.getRecentDecorView(views);	
		
		if(!isDialog(activity, view)){
			for(View v : views){
				if(isDialog(activity, v)){
					return true;
				}
			}
		}
		else {
			return true;
		}
		return false;
	}