Returns a list with the possible modes for the history to keep.<p>

@return a list with the possible modes for the history to keep
774755
private List getModes() {

        ArrayList ret = new ArrayList();

        ret.add(
            new CmsSelectWidgetOption(
                String.valueOf(CmsHistorySettings.MODE_DELETED_HISTORY_DISABLED),
                m_historySettings.getMode() == CmsHistorySettings.MODE_DELETED_HISTORY_DISABLED,
                key(Messages.GUI_HISTORY_SETTINGS_MODE_DISABLED_0)));
        ret.add(new CmsSelectWidgetOption(
            String.valueOf(CmsHistorySettings.MODE_DELETED_HISTORY_KEEP_NO_VERSIONS),
            m_historySettings.getMode() == CmsHistorySettings.MODE_DELETED_HISTORY_KEEP_NO_VERSIONS,
            key(Messages.GUI_HISTORY_SETTINGS_MODE_KEEP_NO_VERSIONS_0)));
        ret.add(new CmsSelectWidgetOption(
            String.valueOf(CmsHistorySettings.MODE_DELETED_HISTORY_KEEP_WITH_VERSIONS),
            m_historySettings.getMode() == CmsHistorySettings.MODE_DELETED_HISTORY_KEEP_WITH_VERSIONS,
            key(Messages.GUI_HISTORY_SETTINGS_MODE_KEEP_WITH_VERSIONS_0)));

        return ret;
    }
938235
List<I_CmsSimpleContextMenuEntry<Set<String>>> getMenuEntries() {

        if (m_menuEntries == null) {
            m_menuEntries = new ArrayList<I_CmsSimpleContextMenuEntry<Set<String>>>();
            m_menuEntries.add(new EditEntry());
            m_menuEntries.add(new SchemaEditorEntry());
            m_menuEntries.add(new SearchEntry());
            m_menuEntries.add(new MoveEntry());
            m_menuEntries.add(new DeleteEntry());
        }
        return m_menuEntries;
    }
1291853
List<CmsCategoryTreeEntry> getFlatList() {

        List<CmsCategoryTreeEntry> toProcess = Lists.newArrayList(m_categoryEntries);
        List<CmsCategoryTreeEntry> result = Lists.newArrayList();
        Set<CmsUUID> visited = Sets.newHashSet();
        while (!toProcess.isEmpty()) {
            Iterator<CmsCategoryTreeEntry> iter = toProcess.iterator();
            CmsCategoryTreeEntry entry = iter.next();
            iter.remove();
            if (!visited.contains(entry.getId())) {
                result.add(entry);
                visited.add(entry.getId());
                toProcess.addAll(entry.getChildren());
            }
        }
        return result;
    }
739765
public List<I_CmsDataViewItem> getSelection() {

        List<I_CmsDataViewItem> result = Lists.newArrayList();
        Object val = m_table.get().getValue();
        if (val == null) {
            return result;
        }
        if (val instanceof Collection) {
            Collection<?> results = (Collection<?>)val;
            for (Object obj : results) {
                result.add(m_dataView.getItemById((String)obj));
            }
        } else {
            result.add(m_dataView.getItemById((String)val));
        }
        return result;

    }
938428
public List<CmsDetailPageInfo> toList() {

        List<CmsDetailPageInfo> result = new ArrayList<CmsDetailPageInfo>();
        for (String key : m_map.keySet()) {
            for (CmsDetailPageInfo info : m_map.get(key)) {
                result.add(info);
            }
        }
        return result;
    }
284081
public java.util.List<ManagedActionHistoryItem> getManagedActionHistoryItems() {
        if (managedActionHistoryItems == null) {
            managedActionHistoryItems = new com.amazonaws.internal.SdkInternalList<ManagedActionHistoryItem>();
        }
        return managedActionHistoryItems;
    }
213438
public List<CmsListItem> getAllContent() {

        if (m_metadata.isSelfManaged()) {
            if (m_filteredItems != null) {
                return Collections.unmodifiableList(m_filteredItems);
            } else {
                return Collections.emptyList();
            }
        } else {
            if (m_originalItems != null) {
                return Collections.unmodifiableList(m_originalItems);
            } else {
                return Collections.emptyList();
            }
        }
    }
1085424
public List<CustomPortletModeType<PortletAppType<T>>> getAllCustomPortletMode()
   {
      List<CustomPortletModeType<PortletAppType<T>>> list = new ArrayList<CustomPortletModeType<PortletAppType<T>>>();
      List<Node> nodeList = childNode.get("custom-portlet-mode");
      for(Node node: nodeList)
      {
         CustomPortletModeType<PortletAppType<T>>  type = new CustomPortletModeTypeImpl<PortletAppType<T>>(this, "custom-portlet-mode", childNode, node);
         list.add(type);
      }
      return list;
   }
1031124
public java.util.List<HistoryRecordEntry> getHistoryRecords() {
        if (historyRecords == null) {
            historyRecords = new com.amazonaws.internal.SdkInternalList<HistoryRecordEntry>();
        }
        return historyRecords;
    }
226752
public static List<String> getManagableOUs(CmsObject cms) {

        List<String> ous = new ArrayList<String>();
        try {
            for (CmsRole role : OpenCms.getRoleManager().getRolesOfUser(
                cms,
                cms.getRequestContext().getCurrentUser().getName(),
                "",
                true,
                false,
                true)) {
                if (role.getRoleName().equals(CmsRole.ACCOUNT_MANAGER.getRoleName())) {
                    if (role.getOuFqn().equals("")) {
                        ous.add(0, role.getOuFqn());
                    } else {
                        ous.add(role.getOuFqn());
                    }
                }
            }
        } catch (CmsException e) {
            //
        }
        return ous;
    }
291452
@SuppressWarnings("unchecked")
    public Collection<CmsCategory> getSelectedCategories() {

        Set<CmsCategory> result = new HashSet<CmsCategory>();
        if (m_isDiplayOny) {
            // in case of display only, all displayed categories are assume selected
            result.addAll((Collection<? extends CmsCategory>)getItemIds());
        } else {
            for (Entry<CmsCategory, CheckBox> entry : m_checkboxes.entrySet()) {
                if (entry.getValue().getValue().booleanValue()) {
                    result.add(entry.getKey());
                }
            }
        }
        return result;
    }
1236468
public List<CmsJspNavElement> getItems() {

        if (m_items == null) {
            switch (m_type) {
                // calculate the results based on the given parameters
                case forFolder:
                    if (m_startLevel == Integer.MIN_VALUE) {
                        // no start level set
                        if (m_resource == null) {
                            m_items = m_builder.getNavigationForFolder();
                        } else {
                            m_items = m_builder.getNavigationForFolder(m_resource);
                        }
                    } else {
                        // start level is set
                        if (m_resource == null) {
                            m_items = m_builder.getNavigationForFolder(m_startLevel);
                        } else {
                            m_items = m_builder.getNavigationForFolder(m_resource, m_startLevel);
                        }
                    }
                    break;
                case forSite:
                    if (m_resource == null) {
                        m_items = m_builder.getSiteNavigation();
                    } else {
                        m_items = m_builder.getSiteNavigation(m_resource, m_endLevel);
                    }
                    break;
                case breadCrumb:
                    if (m_resource != null) {
                        // resource is set
                        m_items = m_builder.getNavigationBreadCrumb(
                            m_resource,
                            m_startLevel,
                            m_endLevel,
                            Boolean.valueOf(m_param).booleanValue());
                    } else {
                        if (m_startLevel == Integer.MIN_VALUE) {
                            // default start level is zero
                            m_items = m_builder.getNavigationBreadCrumb(0, Boolean.valueOf(m_param).booleanValue());
                        } else {
                            if (m_endLevel != Integer.MIN_VALUE) {
                                m_items = m_builder.getNavigationBreadCrumb(m_startLevel, m_endLevel);
                            } else {
                                m_items = m_builder.getNavigationBreadCrumb(
                                    m_startLevel,
                                    Boolean.valueOf(m_param).booleanValue());
                            }
                        }
                    }
                    break;
                case treeForFolder:
                    if (m_resource == null) {
                        m_items = m_builder.getNavigationTreeForFolder(m_startLevel, m_endLevel);
                    } else {
                        m_items = m_builder.getNavigationTreeForFolder(m_resource, m_startLevel, m_endLevel);
                    }
                    break;
                case forResource:
                default:
                    List<CmsJspNavElement> items = new ArrayList<CmsJspNavElement>(1);
                    if (m_resource == null) {
                        items.add(m_builder.getNavigationForResource());
                    } else {
                        items.add(m_builder.getNavigationForResource(m_resource));
                    }
                    m_items = items;
                    break;
            }
        }
        return m_items;
    }
1029934
public java.util.List<AlarmHistoryItem> getAlarmHistoryItems() {
        if (alarmHistoryItems == null) {
            alarmHistoryItems = new com.amazonaws.internal.SdkInternalList<AlarmHistoryItem>();
        }
        return alarmHistoryItems;
    }
694938
List<I_CmsSimpleContextMenuEntry<Set<String>>> getMenuEntries() {

        if (m_menuEntries == null) {
            m_menuEntries = new ArrayList<I_CmsSimpleContextMenuEntry<Set<String>>>();
            m_menuEntries.add(new EntryOpen());
            //            m_menuEntries.add(new EntryEditRole());
            //            m_menuEntries.add(new EntryEditGroup());
            //            m_menuEntries.add(new EntryShowResources());
            //            m_menuEntries.add(new EntryAddInfos());
            //            m_menuEntries.add(new EntrySwitchUser());
            //            m_menuEntries.add(new EntryRemoveFromGroup());
            //            m_menuEntries.add(new EntryDelete());
            //            m_menuEntries.add(new EntryKillSession());
        }
        return m_menuEntries;
    }
621474
private List getModes() {

        ArrayList ret = new ArrayList();

        ret.add(
            new CmsSelectWidgetOption(
                MODE_VARIATIONS,
                getMode().equals(MODE_VARIATIONS),
                key(Messages.GUI_FLEXCACHE_CLEAN_MODE_VARIATIONS_0)));
        ret.add(
            new CmsSelectWidgetOption(
                MODE_ALL,
                getMode().equals(MODE_ALL),
                key(Messages.GUI_FLEXCACHE_CLEAN_MODE_ALL_0)));

        return ret;
    }
68547
public List<SimpleOrderedMap<Object>> list() {
    List<SimpleOrderedMap<Object>> list = new ArrayList<>();
    for (Entry<String, String> entry : idToVersion.entrySet()) {
      SimpleOrderedMap<Object> item = new SimpleOrderedMap<>();
      item.add("id", entry.getKey());
      item.add("size", versionToItem.get(entry.getValue()).size);
      item.add("version", entry.getValue());
      item.add("expiration", expirationVersion.get(entry.getValue()));
      list.add(item);
    }
    return list;
  }
735420
public List<I_CmsSimpleContextMenuEntry<Set<String>>> getMenuEntries() {

        List<I_CmsSimpleContextMenuEntry<Set<String>>> result = Lists.newArrayList();

        result.add(new ModuleInfoEntry());
        result.add(new EditModuleEntry());
        result.add(new DeleteModuleEntry());
        result.add(new ExportModuleEntry());
        result.add(new ExplorerEntry());
        return result;
    }