Class InboxUtils

java.lang.Object
de.xima.fc.inbox.utils.InboxUtils

public class InboxUtils extends Object
Author:
XIMA MEDIA GmbH
  • Constructor Details

    • InboxUtils

      public InboxUtils()
  • Method Details

    • canUserEditProcess

      @Deprecated public static boolean canUserEditProcess(Benutzer user, long processId)
    • canChangeFormRecordToState

      @Deprecated public static boolean canChangeFormRecordToState(UserContext uc, Vorgang formRecord, Status state)
      Deprecated.
    • canUserChangeToState

      @Deprecated public static boolean canUserChangeToState(UserContext uc, IUser user, Status state)
      Deprecated.
    • getUserInboxes

      public static Set<Postfach> getUserInboxes(IUser user, Mandant client)
    • getInboxProjects

      public static final List<Projekt> getInboxProjects(UserContext uc, List<Projekt> projects, Postfach inbox)
    • getFormRecordCount

      public static final int getFormRecordCount(Long inboxId, boolean onlyUnread)
      Gets the number of form records for the given inbox id
      Parameters:
      inboxId - Long id of the inbox
      onlyUnread - Boolean whether only unread form records should be counted or not
      Returns:
      number of form records
    • getFormRecordCount

      public static final int getFormRecordCount(Postfach inbox, boolean onlyUnread)
    • getFormRecordCount

      public static final int getFormRecordCount(Postfach inbox, Projekt project, boolean onlyUnread)
      Gets the number of form records in the given inbox
      Parameters:
      inbox - Postfach
      onlyUnread - Boolean whether only unread form records should be counted or not
      Returns:
      number of form records
    • getIdsFromExtendedModel

      public static final List<Long> getIdsFromExtendedModel(List<ExtendedEntityModel<Vorgang>> extEntities)
    • getIds

      public static final <T extends de.xima.cmn.dao.interfaces.IEntity<I>, I extends Serializable & Comparable<I>> List<I> getIds(List<T> entities)
      Turns a list of entities into a list of IDs
      Parameters:
      entities - List of IEntitys
      Returns:
      List of IDs
    • getStateDisplayName

      public static final String getStateDisplayName(Vorgang formRecord, Locale locale)
    • getFormRecordStateDisplayName

      public static final String getFormRecordStateDisplayName(boolean newWorkflow, boolean saved, WorkflowState wfState, Status status, String verifyUuid, Date verifyDate, Locale locale)