Package de.xima.fc.inbox.utils
Class InboxUtils
- java.lang.Object
-
- de.xima.fc.inbox.utils.InboxUtils
-
public class InboxUtils extends Object
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description InboxUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
canUserEditProcess(Benutzer user, long processId)
static int
getFormRecordCount(Postfach inbox, boolean onlyUnread)
static int
getFormRecordCount(Postfach inbox, Projekt project, boolean onlyUnread)
Gets the number of form records in the given inboxstatic int
getFormRecordCount(Long inboxId, boolean onlyUnread)
Gets the number of form records for the given inbox idstatic String
getFormRecordStateDisplayName(boolean newWorkflow, boolean saved, WorkflowState wfState, Status status, String verifyUuid, Date verifyDate, Locale locale)
static <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 IDsstatic List<Long>
getIdsFromExtendedModel(List<ExtendedEntityModel<Vorgang>> extEntities)
static List<Projekt>
getInboxProjects(UserContext uc, List<Projekt> projects, Postfach inbox)
static String
getStateDisplayName(Vorgang formRecord, Locale locale)
-
-
-
Method Detail
-
canUserEditProcess
public static boolean canUserEditProcess(Benutzer user, long processId)
-
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
-
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
-
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
-
getStateDisplayName
public static final String getStateDisplayName(Vorgang formRecord, Locale locale)
-
-