Class EntityDummyFactory
java.lang.Object
de.xima.fc.testhelper.EntityDummyFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDummyFormSubmission(Vorgang formRecord, IUser user) static voidaddDummyFormSubmission(Vorgang formRecord, IUser user, EFormRecordSubmitContext submitContext) static voidaddDummyFormSubmission(Vorgang formRecord, IUser user, EFormRecordSubmitContext submitContext, String formData, boolean newDataEntry) static voidaddDummyFormSubmission(Vorgang formRecord, IUser user, String formData, boolean newDataEntry) static <E extends de.xima.cmn.dao.interfaces.IEntity<Long>, F extends ALocalizedScopedFileMetaEntity<E,?>>
voidaddFileEntityMetaData(Locale locale, String filename, String fileKey, E baseEntity, F fileMetaEntity) static <E extends de.xima.cmn.dao.interfaces.IEntity<Long>, F extends ALocalization<E>>
voidaddLocalizationData(Locale locale, String i18nName, String i18nValue, E baseEntity, F localizationEntity) static AktiondummyAction(String name, Status status) Deprecated.static AppointmentdummyAppointment(Vorgang formRecord, IFormRecordAppointmentTestConfig config) static AppointmentdummyAppointment(Vorgang formRecord, Instant from, Instant until, AppointmentType type, EAppointmentStatus status) static AttachmentdummyAttachment(String filename, byte[] data, Vorgang process, IUser user, String elementName) static AttachmentdummyAttachment(String filename, byte[] data, Vorgang process, IUser user, String elementName, EAttachmentSource source) static AttachmentdummyAttachment(String filename, String text, Vorgang process, IUser user, String elementName, EAttachmentSource source) static AttachmentdummyAttachmentEmpty(String filename, Vorgang process) static AttachmentdummyAttachmentEmpty(String filename, Vorgang process, EAttachmentSource source) static MandantdummyClient(String name) static ClientAuthenticatordummyClientAuthenticator(String name, EAuthClientType clientType, Mandant client) static ClientAuthenticatorFiledummyClientAuthenticatorFile(String filename, byte[] data, ClientAuthenticator auth) static ClientCounterdummyClientCounter(Mandant client, String name) static ClientCounterdummyClientCounter(Mandant client, String name, int counterValue) static MandantRessourcedummyClientFile(Mandant client, String name, String content) static MandantRessourcedummyClientFile(Mandant client, String name, String description, byte[] data, String creator) static ClientFormThemedummyClientFormTheme(Mandant client, String name) Creates a new, unsaved client form theme with the given name.static ClientFormThemedummyClientFormTheme(Mandant client, String name, FormThemeReference parent) Creates a new, unsaved client form theme with the given name and the given parent theme.static ClientFormThemedummyClientFormTheme(Mandant client, String name, FormThemeReference parent, Map<String, ?> files) Creates a new, unsaved client form theme with the given name and the given parent theme.static MandantFrontendServerdummyClientFrontendServer(String name, FrontendServer fs, Mandant client) static MandantLdapDatadummyClientLdapData(Mandant client) static MandantLdapDatadummyClientLdapData(Mandant client, int port) Deprecated.static BedingungdummyCondition(Aktion action) Deprecated.static DatenquelledummyCsvSource(String name, String csv, Mandant client) static DatenbankZugriffdummyDBConnection(String name, Mandant client) static DatenbankZugriffdummyDBConnection(String name, Mandant client, EDatenbankTyp type, String jdbcUrl) static DatenbankZugriffdummyDBConnection(String name, Mandant client, String jdbcUrl) Deprecated.static DatenbankZugriffdummyDBConnectionInvalid(String name, Mandant client) static DatenquelledummyDbQuery(String name, DatenbankZugriff connection, String sql) static DatenquelledummyDbQuery(String name, DatenbankZugriff connection, String sql, Mandant client) static DirectClientAuthorizationdummyDirectClientAuthorization(UserProfile profile, Mandant client, boolean accepted, Rolle... roles) static EndUserStatedummyEndUserState(WorkflowState state, EEndUserStateType type, Map<Locale, String> names) static FormEingangdummyFormData(Vorgang formRecord, String formData) static FormElementdummyFormElement(FormVersion formVersion, String elementName) static FormElementdummyFormElement(FormVersion formVersion, String elementName, String aliasName) static FormElementdummyFormElement(FormVersion formVersion, String elementName, String aliasName, EFormElementTyp type) static ProjektRessourcedummyFormFile(Projekt project, String name, String content) static ProjektRessourcedummyFormFile(Projekt project, String name, String description, byte[] data, String creator) static VorgangdummyFormRecord(IFormRecordTestConfig<?> config) static VorgangdummyFormRecord(String subject, Projekt project, Status state) static VorgangdummyFormRecord(String subject, Projekt project, WorkflowState state) static FormRecordChatdummyFormRecordChat(Vorgang formRecord, IUser member) static FormRecordChatdummyFormRecordChat(Vorgang formRecord, IUser member, boolean open) static FormRecordMessagedummyFormRecordMessage(FormRecordChat chat, IUser sender, String senderCtx, String content) static FormRecordMessagedummyFormRecordMessage(FormRecordChat chat, IUser sender, String senderCtx, String content, Instant sentInstant) dummyFormRecordMessageUploadRequest(FormRecordMessage message, Attachment attachment, String formFieldName) dummyFormRecordMessageUploadRequest(FormRecordMessage message, List<Attachment> attachments, String formFieldName) static FormRecordSubmissiondummyFormRecordSubmission(Vorgang formRecord, IUser user) static FormRecordSubmissiondummyFormRecordSubmission(Vorgang formRecord, IUser user, String submitCtx, WorkflowState submitState, FrontendServer submitFrontendServer, String submitServerBaseUrl, byte[] formData) static FormRecordSubmissiondummyFormRecordSubmission(Vorgang formRecord, IUser user, String submitCtx, WorkflowState submitState, FrontendServer submitFrontendServer, String submitServerBaseUrl, String formData) static FormVersiondummyFormVersion(Projekt project, int versionNumber) static FrontendServerdummyFrontendServer(String name) static FrontendServerdummyFrontendServer(String name, String authToken) static PostfachdummyInbox(String name, Mandant client) static IndirectClientAuthorizationdummyIndirectClientAuthorization(IClientDescriptor clientDescriptor, String name, Mandant client, Rolle... roles) static LDAPZugriffdummyLdapConnection(String name, Mandant client) static LDAPAbfragedummyLdapQuery(String name, LDAPZugriff connection, String ldapQuery) static ProjektdummyProject(String name, Postfach inbox, Mandant client) static ProjectAuthenticatorConfigdummyProjectAuthenticatorConfig(Projekt project, IAuthenticator<?> auth) static ProjectAuthenticatorConfigdummyProjectAuthenticatorConfig(Projekt project, IClientDescriptor client) static ProjectAuthenticatorConfigdummyProjectAuthenticatorConfig(Projekt project, EAuthClientType clientType) static ProjectLocalizationdummyProjectDescriptionLocalization(Projekt project, Locale locale, String description) static ProjectLocalizationdummyProjectDisplayNameLocalization(Projekt project, Locale locale, String displayName) static ProjectFiledummyProjectFile(Projekt project, String name, byte[] data, String creator, String fileKey) static ProjektRessourcedummyProjectFile(Projekt project, String name, String content) static ProjektRessourcedummyProjectFile(Projekt project, String name, String description, byte[] data, String creator) static ProjectFilestatic ProjectLocalizationdummyProjectLocalization(Projekt project, Locale locale, String key, String value) static ProjectPortalConfigdummyProjectPortalConfig(UserPortal portal, Projekt project, boolean active) static ProjectPortalDatadummyProjectPortalData(Projekt project) static ProjectPortalTagdummyProjectPortalTag(Locale locale, String name, String description) static ProjectPortalTagLocalizationdummyProjectPortalTagLocalization(ProjectPortalTag tag, Locale locale, String key, String data) static List<ProjectPortalTag> dummyProjectPortalTags(Locale locale, String... tagNames) static ProjectLocalizationdummyProjectShortDescriptionLocalization(Projekt project1, Locale locale, String shortDescription) static RolledummyRole(String name, ERollenTyp type, Mandant client) static StatusdummyStatus(String name, Projekt project) Deprecated.static SystemAuthenticatordummySystemAuthenticator(String name, EAuthClientType clientType) static SystemAuthenticatorFiledummySystemAuthenticatorFile(String filename, byte[] data, SystemAuthenticator auth) static TextbausteindummyTemplate(String name, String textValue, ETextbausteinKategorie cat, Mandant client) static TextbausteindummyTemplate(String name, String textValue, ETextbausteinKategorie cat, ETextbausteinMsgCode msgCode, Mandant client) static BenutzerDeprecated.static BenutzerDeprecated.static BenutzerGruppedummyUserGroup(String name, Mandant client) static BenutzerGruppedummyUserGroup(String name, Mandant client, Postfach... inboxes) static BenutzerGruppedummyUserGroup(String name, Mandant client, Iterable<Postfach> inboxes) static UserIdentitydummyUserIdentity(SystemAuthenticator auth, String identifier) static UserIdentitydummyUserIdentity(IClientDescriptor client, String identifier) static UserIdentitydummyUserIdentity(IClientDescriptor client, String identifier, UserProfile profile) static UserIdentitydummyUserIdentity(EAuthClientType type, String identifier) static UserPortaldummyUserPortal(String name, String alias) static UserPortalAuthConfigdummyUserPortalAuthConfig(UserPortalLoginConfig loginConfig, IClientDescriptor clientDescriptor, int orderIndex) static UserPortalFiledummyUserPortalFile(UserPortal portal, String filename, String fileKey, byte[] data, Locale locale) static UserPortalFiledummyUserPortalFile(UserPortal portal, String filename, String fileKey, String content, Locale locale) static UserPortalLoginConfigdummyUserPortalLoginConfig(UserPortal portal) static UserProfiledummyUserProfile(String firstName, String lastName) static UserProfiledummyUserProfile(String userName, String firstName, String lastName) static UserProfilestatic WebDavAccessdummyWebDavAccess(String name, Mandant client, String url) static WorkflowStatedummyWorkflowState(String name) static WorkflowStatedummyWorkflowState(String name, WorkflowVersion version) dummyWorkflowStateAuthenticatorConfig(WorkflowState state, EAuthClientType clientType) static WorkflowVersiondummyWorkflowVersion(Projekt project, WorkflowProcess process, int versionNumber)
-
Method Details
-
addDummyFormSubmission
-
addDummyFormSubmission
public static void addDummyFormSubmission(Vorgang formRecord, IUser user, EFormRecordSubmitContext submitContext) -
addDummyFormSubmission
-
addDummyFormSubmission
public static void addDummyFormSubmission(Vorgang formRecord, IUser user, EFormRecordSubmitContext submitContext, String formData, boolean newDataEntry) -
addFileEntityMetaData
public static <E extends de.xima.cmn.dao.interfaces.IEntity<Long>, F extends ALocalizedScopedFileMetaEntity<E,?>> void addFileEntityMetaData(Locale locale, String filename, String fileKey, E baseEntity, F fileMetaEntity) -
addLocalizationData
public static <E extends de.xima.cmn.dao.interfaces.IEntity<Long>, F extends ALocalization<E>> void addLocalizationData(Locale locale, String i18nName, String i18nValue, E baseEntity, F localizationEntity) -
dummyAction
Deprecated. -
dummyAppointment
public static Appointment dummyAppointment(Vorgang formRecord, Instant from, Instant until, AppointmentType type, EAppointmentStatus status) -
dummyAppointment
public static Appointment dummyAppointment(Vorgang formRecord, IFormRecordAppointmentTestConfig config) -
dummyAttachment
public static Attachment dummyAttachment(String filename, byte[] data, Vorgang process, IUser user, String elementName) -
dummyAttachment
public static Attachment dummyAttachment(String filename, String text, Vorgang process, IUser user, String elementName, EAttachmentSource source) -
dummyAttachment
public static Attachment dummyAttachment(String filename, byte[] data, Vorgang process, IUser user, String elementName, EAttachmentSource source) -
dummyAttachmentEmpty
-
dummyAttachmentEmpty
public static Attachment dummyAttachmentEmpty(String filename, Vorgang process, EAttachmentSource source) -
dummyClient
-
dummyClientAuthenticator
public static ClientAuthenticator dummyClientAuthenticator(String name, EAuthClientType clientType, Mandant client) -
dummyClientAuthenticatorFile
public static ClientAuthenticatorFile dummyClientAuthenticatorFile(String filename, byte[] data, ClientAuthenticator auth) -
dummyClientCounter
-
dummyClientCounter
-
dummyClientFile
-
dummyClientFile
public static MandantRessource dummyClientFile(Mandant client, String name, String description, byte[] data, String creator) -
dummyClientFormTheme
Creates a new, unsaved client form theme with the given name.- Parameters:
client- The client to which the theme belongsname- The name of the theme- Returns:
- The new client form theme
-
dummyClientFormTheme
public static ClientFormTheme dummyClientFormTheme(Mandant client, String name, FormThemeReference parent) Creates a new, unsaved client form theme with the given name and the given parent theme.- Parameters:
client- The client to which the theme belongsname- The name of the themeparent- The parent theme of the new theme- Returns:
- The new client form theme
-
dummyClientFormTheme
public static ClientFormTheme dummyClientFormTheme(Mandant client, String name, FormThemeReference parent, Map<String, ?> files) Creates a new, unsaved client form theme with the given name and the given parent theme.- Parameters:
client- The client to which the theme belongsname- The name of the themeparent- The parent theme of the new themefiles- A list of files to add to the theme. The key must consist of the resource context and the file name, in that order, separated by a slash. The value must be either a byte array or a string. If a string, it is encoded using UTF-8. Any other type of object is converted to a string using itstoString()method.- Returns:
- The new client form theme
-
dummyClientFrontendServer
public static MandantFrontendServer dummyClientFrontendServer(String name, FrontendServer fs, Mandant client) -
dummyClientLdapData
-
dummyClientLdapData
Deprecated. -
dummyCondition
Deprecated. -
dummyCsvSource
-
dummyDBConnection
-
dummyDBConnection
@Deprecated public static DatenbankZugriff dummyDBConnection(String name, Mandant client, String jdbcUrl) Deprecated. -
dummyDBConnection
public static DatenbankZugriff dummyDBConnection(String name, Mandant client, EDatenbankTyp type, String jdbcUrl) -
dummyDBConnectionInvalid
-
dummyDbQuery
-
dummyDbQuery
public static Datenquelle dummyDbQuery(String name, DatenbankZugriff connection, String sql, Mandant client) -
dummyDirectClientAuthorization
public static DirectClientAuthorization dummyDirectClientAuthorization(UserProfile profile, Mandant client, boolean accepted, Rolle... roles) -
dummyFormData
-
dummyFormElement
-
dummyFormElement
public static FormElement dummyFormElement(FormVersion formVersion, String elementName, String aliasName) -
dummyFormElement
public static FormElement dummyFormElement(FormVersion formVersion, String elementName, String aliasName, EFormElementTyp type) -
dummyFormFile
-
dummyFormFile
public static ProjektRessource dummyFormFile(Projekt project, String name, String description, byte[] data, String creator) -
dummyFormRecord
-
dummyFormRecord
-
dummyFormRecord
-
dummyFormRecordChat
-
dummyFormRecordChat
-
dummyFormRecordMessage
public static FormRecordMessage dummyFormRecordMessage(FormRecordChat chat, IUser sender, String senderCtx, String content) -
dummyFormRecordMessage
public static FormRecordMessage dummyFormRecordMessage(FormRecordChat chat, IUser sender, String senderCtx, String content, Instant sentInstant) -
dummyFormRecordMessageUploadRequest
public static FormRecordMessageUploadRequest dummyFormRecordMessageUploadRequest(FormRecordMessage message, Attachment attachment, String formFieldName) -
dummyFormRecordMessageUploadRequest
public static FormRecordMessageUploadRequest dummyFormRecordMessageUploadRequest(FormRecordMessage message, List<Attachment> attachments, String formFieldName) -
dummyFormRecordSubmission
-
dummyFormRecordSubmission
public static FormRecordSubmission dummyFormRecordSubmission(Vorgang formRecord, IUser user, String submitCtx, WorkflowState submitState, FrontendServer submitFrontendServer, String submitServerBaseUrl, String formData) -
dummyFormRecordSubmission
public static FormRecordSubmission dummyFormRecordSubmission(Vorgang formRecord, IUser user, String submitCtx, WorkflowState submitState, FrontendServer submitFrontendServer, String submitServerBaseUrl, byte[] formData) -
dummyFormVersion
-
dummyFrontendServer
-
dummyFrontendServer
-
dummyInbox
-
dummyIndirectClientAuthorization
public static IndirectClientAuthorization dummyIndirectClientAuthorization(IClientDescriptor clientDescriptor, String name, Mandant client, Rolle... roles) -
dummyLdapConnection
-
dummyLdapQuery
-
dummyProjectPortalTags
-
dummyProjectPortalTag
public static ProjectPortalTag dummyProjectPortalTag(Locale locale, String name, String description) -
dummyProjectPortalTagLocalization
public static ProjectPortalTagLocalization dummyProjectPortalTagLocalization(ProjectPortalTag tag, Locale locale, String key, String data) -
dummyProject
-
dummyProjectAuthenticatorConfig
public static ProjectAuthenticatorConfig dummyProjectAuthenticatorConfig(Projekt project, EAuthClientType clientType) -
dummyProjectAuthenticatorConfig
public static ProjectAuthenticatorConfig dummyProjectAuthenticatorConfig(Projekt project, IAuthenticator<?> auth) -
dummyProjectAuthenticatorConfig
public static ProjectAuthenticatorConfig dummyProjectAuthenticatorConfig(Projekt project, IClientDescriptor client) -
dummyProjectDisplayNameLocalization
public static ProjectLocalization dummyProjectDisplayNameLocalization(Projekt project, Locale locale, String displayName) -
dummyProjectDescriptionLocalization
public static ProjectLocalization dummyProjectDescriptionLocalization(Projekt project, Locale locale, String description) -
dummyProjectPortalData
-
dummyProjectShortDescriptionLocalization
public static ProjectLocalization dummyProjectShortDescriptionLocalization(Projekt project1, Locale locale, String shortDescription) -
dummyProjectLocalization
public static ProjectLocalization dummyProjectLocalization(Projekt project, Locale locale, String key, String value) -
dummyProjectFile
public static ProjectFile dummyProjectFile(Projekt project, String name, byte[] data, String creator, String fileKey) -
dummyProjectFile
-
dummyProjectFile
-
dummyProjectFile
public static ProjektRessource dummyProjectFile(Projekt project, String name, String description, byte[] data, String creator) -
dummyProjectPortalConfig
public static ProjectPortalConfig dummyProjectPortalConfig(UserPortal portal, Projekt project, boolean active) -
dummyRole
-
dummyStatus
Deprecated. -
dummySystemAuthenticator
-
dummySystemAuthenticatorFile
public static SystemAuthenticatorFile dummySystemAuthenticatorFile(String filename, byte[] data, SystemAuthenticator auth) -
dummyTemplate
public static Textbaustein dummyTemplate(String name, String textValue, ETextbausteinKategorie cat, ETextbausteinMsgCode msgCode, Mandant client) -
dummyTemplate
public static Textbaustein dummyTemplate(String name, String textValue, ETextbausteinKategorie cat, Mandant client) -
dummyUser
Deprecated. -
dummyUser
-
dummyUserGroup
-
dummyUserGroup
public static BenutzerGruppe dummyUserGroup(String name, Mandant client, Iterable<Postfach> inboxes) -
dummyUserGroup
-
dummyUserIdentity
-
dummyUserIdentity
-
dummyUserIdentity
public static UserIdentity dummyUserIdentity(IClientDescriptor client, String identifier, UserProfile profile) -
dummyUserIdentity
-
dummyUserPortal
-
dummyUserPortalFile
public static UserPortalFile dummyUserPortalFile(UserPortal portal, String filename, String fileKey, String content, Locale locale) -
dummyUserPortalFile
public static UserPortalFile dummyUserPortalFile(UserPortal portal, String filename, String fileKey, byte[] data, Locale locale) -
dummyUserPortalAuthConfig
public static UserPortalAuthConfig dummyUserPortalAuthConfig(UserPortalLoginConfig loginConfig, IClientDescriptor clientDescriptor, int orderIndex) -
dummyUserPortalLoginConfig
-
dummyUserProfile
-
dummyUserProfile
-
dummyUserProfile
-
dummyWebDavAccess
-
dummyWorkflowState
-
dummyEndUserState
public static EndUserState dummyEndUserState(WorkflowState state, EEndUserStateType type, Map<Locale, String> names) -
dummyWorkflowState
-
dummyWorkflowStateAuthenticatorConfig
public static WorkflowStateAuthenticatorConfig dummyWorkflowStateAuthenticatorConfig(WorkflowState state, EAuthClientType clientType) -
dummyWorkflowVersion
public static WorkflowVersion dummyWorkflowVersion(Projekt project, WorkflowProcess process, int versionNumber)
-