public String[] getFolderColumns() throws PortalException, SystemException {
    String[] folderColumns = _dlPortletInstanceSettings.getFolderColumns();

    if (!_dlActionsDisplayContext.isShowActions()) {
      folderColumns = ArrayUtil.remove(folderColumns, "action");
    }

    return folderColumns;
  }
  private void _removeCompanyId(long companyId) {
    _companyIds = ArrayUtil.remove(_companyIds, companyId);
    _webIds = null;

    _getWebIds();

    SearchEngineUtil.removeCompany(companyId);

    WebAppPool.remove(companyId, WebKeys.PORTLET_CATEGORY);
  }
  protected void mergePublicRenderParameters(
      DynamicServletRequest dynamicRequest, PortletPreferences preferences, long plid) {

    Enumeration<PublicRenderParameter> publicRenderParameters =
        Collections.enumeration(_portlet.getPublicRenderParameters());

    while (publicRenderParameters.hasMoreElements()) {
      PublicRenderParameter publicRenderParameter = publicRenderParameters.nextElement();

      String ignoreKey = PublicRenderParameterConfiguration.getIgnoreKey(publicRenderParameter);

      boolean ignoreValue = GetterUtil.getBoolean(preferences.getValue(ignoreKey, null));

      if (ignoreValue) {
        continue;
      }

      String mappingKey = PublicRenderParameterConfiguration.getMappingKey(publicRenderParameter);

      String mappingValue = GetterUtil.getString(preferences.getValue(mappingKey, null));

      HttpServletRequest request = (HttpServletRequest) dynamicRequest.getRequest();

      String[] newValues = request.getParameterValues(mappingValue);

      if ((newValues != null) && (newValues.length != 0)) {
        newValues = ArrayUtil.remove(newValues, StringPool.NULL);
      }

      String name = publicRenderParameter.getIdentifier();

      if ((newValues == null) || (newValues.length == 0)) {
        QName qName = publicRenderParameter.getQName();

        String[] values =
            _publicRenderParameters.get(PortletQNameUtil.getPublicRenderParameterName(qName));

        if ((values) == null || (values.length == 0) || (Validator.isNull(values[0]))) {

          continue;
        }

        if (dynamicRequest.getParameter(name) == null) {
          dynamicRequest.setParameterValues(name, values);
        }
      } else {
        dynamicRequest.setParameterValues(name, newValues);
      }
    }
  }
  public String[] getEntryColumns() throws PortalException, SystemException {
    String[] entryColumns = _dlPortletInstanceSettings.getEntryColumns();

    String portletId = _portletDisplay.getId();

    if (!_dlActionsDisplayContext.isShowActions()) {
      entryColumns = ArrayUtil.remove(entryColumns, "action");
    } else if (!portletId.equals(PortletKeys.DOCUMENT_LIBRARY)
        && !portletId.equals(PortletKeys.DOCUMENT_LIBRARY_ADMIN)
        && !ArrayUtil.contains(entryColumns, "action")) {

      entryColumns = ArrayUtil.append(entryColumns, "action");
    }

    return entryColumns;
  }