Class InboxPreferences

    • Constructor Detail

      • InboxPreferences

        public InboxPreferences()
    • Method Detail

      • isVerticalLayout

        public Boolean isVerticalLayout()
      • setVerticalLayout

        public void setVerticalLayout​(Boolean vertLayout)
      • setInboxViewConfigs

        public void setInboxViewConfigs​(List<InboxViewConfig> inboxViewConfigs)
      • inboxViewConfigBy

        public InboxViewConfig inboxViewConfigBy​(Long mandantId,
                                                 String viewType,
                                                 Long viewId,
                                                 boolean create)
        Looks for a configuration matching the provided client ID, view type and view ID and returns it. If no such configuration could be found and the passed create flag is true, a new one will be created and returned. If the flag is false and no matching configuration was found, null will be returned.
        Parameters:
        mandantId - ID of the current client
        viewType - the type of the view (see de.xima.fc.inbox.enums.EProcessListView)
        viewId - the ID of the related de.xima.fc.inbox.model.ProjectView
        create - if true and no config for the given parameters could be found, one will be created and returned
        Returns:
        an existing or a newly created configuration or null
      • updateViewConfig

        public boolean updateViewConfig​(Long mandantId,
                                        String viewType,
                                        Long viewId,
                                        String sortField,
                                        boolean sortAsc)
        Updates (if present) or creates (if not present) the view configuration belonging to the passed client ID, view type and view ID with the provided sorting parameters.
        Parameters:
        mandantId - ID of the current client
        viewType - the type of the view (see de.xima.fc.inbox.enums.EProcessListView)
        viewId - the ID of the related de.xima.fc.inbox.model.ProjectView
        sortField - the name of the field to sort by
        sortAsc - flag for the sort order
        Returns:
        true, if there were changes (i.e. a new configuration was created or an existing one was changed), false, if neither sort field nor sort direction of an existing configuration has changed.