Class FormResponse
java.lang.Object
fr.paris.lutece.plugins.forms.business.FormResponse
- All Implemented Interfaces:
fr.paris.lutece.portal.service.resource.IExtendableResource,Serializable
public class FormResponse
extends Object
implements fr.paris.lutece.portal.service.resource.IExtendableResource, Serializable
This is the business class for the object FormResponse
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringForm response resource typestatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdmin()Gets the formResponse admin depositaryintgetGuid()intgetId()getRole()Gets the formResponse roleintGets the formResponse statusgetSteps()Gives the steps containing responsesbooleanis an backup responsebooleancheck whether the formResponse is publishedvoidSets the formResponse admin depositaryvoidsetDateCreation(Timestamp dateCreation) voidsetFormId(int nFormId) voidsetFromSave(boolean bFromSave) set if the response is an backup responsevoidvoidsetId(int nId) voidsetPublished(boolean bPublished) Deprecated.use setStatus() insteadvoidSets the formResponse rolevoidsetStatus(int nStatus) Sets the formResponse statusvoidsetSteps(List<FormResponseStep> listFormResponseStep) Sets the steps containing responsesvoidvoidsetUpdateStatus(Timestamp dateUpdateStatus)
-
Field Details
-
RESOURCE_TYPE
Form response resource type- See Also:
-
STATUS_PUBLISHED
public static final int STATUS_PUBLISHED- See Also:
-
STATUS_DELETING
public static final int STATUS_DELETING- See Also:
-
-
Constructor Details
-
FormResponse
public FormResponse()
-
-
Method Details
-
getId
public int getId()- Returns:
- the _nId
-
setId
public void setId(int nId) - Parameters:
nId- the nId to set
-
getFormId
public int getFormId()- Returns:
- the _nFormId
-
setFormId
public void setFormId(int nFormId) - Parameters:
nFormId- the nFormId to set
-
getGuid
- Returns:
- the _strGuid
-
setGuid
- Parameters:
strGuid- the strGuid to set
-
getEncryptedGuid
- Returns:
- the RSA-encrypted guid
-
getCreation
- Returns:
- the _dateCreation
-
setDateCreation
- Parameters:
dateCreation- the dateCreation to set
-
getUpdate
- Returns:
- the _dateUpdate
-
setUpdate
- Parameters:
dateUpdate- the dateUpdate to set
-
isFromSave
public boolean isFromSave()is an backup response- Returns:
- the _bFromSave
-
setFromSave
public void setFromSave(boolean bFromSave) set if the response is an backup response- Parameters:
bFromSave- the bFromSave to set
-
isPublished
public boolean isPublished()check whether the formResponse is published- Returns:
- true if formResponse is published, false otherwise
-
setPublished
Deprecated.use setStatus() instead- Parameters:
bPublished- the bPublished to set
-
getUpdateStatus
- Returns:
- the _dateUpdate
-
setUpdateStatus
- Parameters:
dateUpdate- the dateUpdate to set
-
getSteps
Gives the steps containing responses- Returns:
- the steps
-
setSteps
Sets the steps containing responses- Parameters:
listFormResponseStep- the list of steps
-
getRole
Gets the formResponse role- Returns:
- formResponse role as a String
-
setRole
Sets the formResponse role- Parameters:
strRole- The role
-
getAdmin
Gets the formResponse admin depositary- Returns:
- formResponse admin as a String
-
setAdmin
Sets the formResponse admin depositary- Parameters:
strRole- The admin depositary
-
getExtendableResourceDescription
- Specified by:
getExtendableResourceDescriptionin interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getExtendableResourceImageUrl
- Specified by:
getExtendableResourceImageUrlin interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getExtendableResourceName
- Specified by:
getExtendableResourceNamein interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getExtendableResourceType
- Specified by:
getExtendableResourceTypein interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getIdExtendableResource
- Specified by:
getIdExtendableResourcein interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getStatus
public int getStatus()Gets the formResponse status- Returns:
- formResponse status
-
setStatus
public void setStatus(int nStatus) Sets the formResponse status- Parameters:
nStatus- The formResponse status
-