Package de.xima.fc.entities
Class ProjectIdentityCheckData
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.ALockableEntity
de.xima.fc.entities.ProjectIdentityCheckData
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,ILockingVersionProviding
,IProjektDependent
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,IUUIDEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity
public class ProjectIdentityCheckData
extends ALockableEntity
implements IProjektDependent, IUUIDEntity
Configuration for a project for detecting duplicate submissions.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
JPA attribute name for thegetFailureTemplate()
field.static final String
JPA attribute name for thegetIdentityTokenTemplate()
field.static final String
Database column name for thegetFailureTemplate()
field.static final String
Database column name for thegetIdentityTokenTemplate()
field.static final String
Database column name for thegetProjekt()
field.static final String
Database column name for thegetUUID()
field.Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
Fields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_ID
Fields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSION
Fields inherited from interface de.xima.fc.entities.interfaces.IProjektDependent
ATTR_PROJEKT
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
@Length(max=1024) String
getUUID()
void
setFailureTemplate
(Textbaustein failureTemplate) void
!!!void
setIdentityTokenTemplate
(String identityTokenTemplate) void
setProject
(Projekt project) void
setProjekt
(Projekt project) void
void
setUUIDObject
(UUID uuid) Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toString
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted
-
Field Details
-
ATTR_FAILURE_TEMPLATE
JPA attribute name for thegetFailureTemplate()
field.- See Also:
-
ATTR_IDENTITY_TOKEN_TEMPLATE
JPA attribute name for thegetIdentityTokenTemplate()
field.- See Also:
-
COL_FAILURE_TEMPLATE
Database column name for thegetFailureTemplate()
field.- See Also:
-
COL_IDENTITY_TOKEN_TEMPLATE
Database column name for thegetIdentityTokenTemplate()
field.- See Also:
-
COL_UUID
Database column name for thegetUUID()
field.- See Also:
-
COL_PROJECT_ID
Database column name for thegetProjekt()
field.- See Also:
-
-
Constructor Details
-
ProjectIdentityCheckData
public ProjectIdentityCheckData()
-
-
Method Details
-
cloneBasics
-
getFailureTemplate
- Returns:
- The template that is displayed when the identity token check fails.
-
getId
- Specified by:
getId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
getIdentityTokenTemplate
- Returns:
- When enabled, an ID is generated based on the data of a submitted form. The form submission is rejected when a form record with the same identity token exists already. This is the template for generating the ID and may contain placeholders.
-
getProjekt
- Specified by:
getProjekt
in interfaceIProjektDependent
-
getUUID
- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a
context, e.g.
Mandant
,Projekt
, ...
-
getUUIDObject
- Specified by:
getUUIDObject
in interfaceIUUIDEntity
-
setFailureTemplate
- Parameters:
failureTemplate
- The template that is displayed when the identity token check fails.
-
setId
Description copied from class:AbstractEntity
!!!WARNING: Currently values biggerInteger.MAX_VALUE
or lower thenInteger.MIN_VALUE
will be altered to null!!!- Specified by:
setId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
- Overrides:
setId
in classAbstractEntity
- Parameters:
id
-Long
the database-id to set
-
setIdentityTokenTemplate
- Parameters:
identityTokenTemplate
- When enabled, an ID is generated based on the data of a submitted form. The form submission is rejected when a form record with the same identity token exists already. This is the template for generating the ID and may contain placeholders.
-
setProject
-
setProjekt
- Specified by:
setProjekt
in interfaceIProjektDependent
-
setUUID
- Specified by:
setUUID
in interfaceIUUIDEntity
-
setUUIDObject
-