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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_FAILURE_TEMPLATE
JPA attribute name for thegetFailureTemplate()
field.static String
ATTR_IDENTITY_TOKEN_TEMPLATE
JPA attribute name for thegetIdentityTokenTemplate()
field.static String
COL_FAILURE_TEMPLATE
Database column name for thegetFailureTemplate()
field.static String
COL_IDENTITY_TOKEN_TEMPLATE
Database column name for thegetIdentityTokenTemplate()
field.static String
COL_PROJECT_ID
Database column name for thegetProjekt()
field.static String
COL_UUID
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.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 Constructor Description ProjectIdentityCheckData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectIdentityCheckData
cloneBasics()
Textbaustein
getFailureTemplate()
Long
getId()
@Length(max=1024) String
getIdentityTokenTemplate()
Projekt
getProjekt()
String
getUUID()
UUID
getUUIDObject()
void
setFailureTemplate(Textbaustein failureTemplate)
void
setId(Long id)
!!!void
setIdentityTokenTemplate(String identityTokenTemplate)
void
setProject(Projekt project)
void
setProjekt(Projekt project)
void
setUUID(String uuid)
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
-
-
-
-
Field Detail
-
ATTR_FAILURE_TEMPLATE
public static final String ATTR_FAILURE_TEMPLATE
JPA attribute name for thegetFailureTemplate()
field.- See Also:
- Constant Field Values
-
ATTR_IDENTITY_TOKEN_TEMPLATE
public static final String ATTR_IDENTITY_TOKEN_TEMPLATE
JPA attribute name for thegetIdentityTokenTemplate()
field.- See Also:
- Constant Field Values
-
COL_FAILURE_TEMPLATE
public static final String COL_FAILURE_TEMPLATE
Database column name for thegetFailureTemplate()
field.- See Also:
- Constant Field Values
-
COL_IDENTITY_TOKEN_TEMPLATE
public static final String COL_IDENTITY_TOKEN_TEMPLATE
Database column name for thegetIdentityTokenTemplate()
field.- See Also:
- Constant Field Values
-
COL_UUID
public static final String COL_UUID
Database column name for thegetUUID()
field.- See Also:
- Constant Field Values
-
COL_PROJECT_ID
public static final String COL_PROJECT_ID
Database column name for thegetProjekt()
field.- See Also:
- Constant Field Values
-
-
Method Detail
-
cloneBasics
public ProjectIdentityCheckData cloneBasics()
-
getFailureTemplate
@Nullable public Textbaustein getFailureTemplate()
- Returns:
- The template that is displayed when the identity token check fails.
-
getIdentityTokenTemplate
@Length(max=1024) public @Length(max=1024) String 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
public Projekt getProjekt()
- Specified by:
getProjekt
in interfaceIProjektDependent
-
getUUID
public String 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
public UUID getUUIDObject()
- Specified by:
getUUIDObject
in interfaceIUUIDEntity
-
setFailureTemplate
public void setFailureTemplate(Textbaustein failureTemplate)
- Parameters:
failureTemplate
- The template that is displayed when the identity token check fails.
-
setId
public void setId(Long id)
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
public void setIdentityTokenTemplate(String identityTokenTemplate)
- 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
public void setProject(Projekt project)
-
setProjekt
public void setProjekt(Projekt project)
- Specified by:
setProjekt
in interfaceIProjektDependent
-
setUUID
public void setUUID(String uuid)
- Specified by:
setUUID
in interfaceIUUIDEntity
-
setUUIDObject
public void setUUIDObject(UUID uuid)
-
-