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 Deprecated Methods Modifier and Type Method Description static boolean
canChangeFormRecordToState(UserContext uc, Vorgang formRecord, Status state)
Deprecated.static boolean
canUserChangeToState(UserContext uc, IUser user, Status state)
Deprecated.static boolean
canUserEditProcess(Benutzer user, long processId)
Deprecated.UseUserMgmtUtils.canAccessInbox(IUser, Postfach)
instead.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)
static List<Long>
getStatusIdsByName(UserContext uc, String searchStr, Mandant client)
static Set<Postfach>
getUserInboxes(IUser user, Mandant client)
static List<Long>
getWorkflowStateIdsByName(UserContext uc, String searchStr, Mandant client, Locale locale)
-
-
-
Method Detail
-
canUserEditProcess
@Deprecated public static boolean canUserEditProcess(Benutzer user, long processId)
Deprecated.UseUserMgmtUtils.canAccessInbox(IUser, Postfach)
instead.
-
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.
-
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)
-
getFormRecordStateDisplayName
public static final String getFormRecordStateDisplayName(boolean newWorkflow, boolean saved, WorkflowState wfState, Status status, String verifyUuid, Date verifyDate, Locale locale)
-
getWorkflowStateIdsByName
public static List<Long> getWorkflowStateIdsByName(UserContext uc, String searchStr, Mandant client, Locale locale)
-
getStatusIdsByName
public static List<Long> getStatusIdsByName(UserContext uc, String searchStr, Mandant client)
-
-