public class IterationGroup extends Object
| Constructor and Description |
|---|
IterationGroup(fr.paris.lutece.plugins.genericattributes.business.Entry entry) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntryResponses(int nIterationNumber,
int nIdEntry,
List<fr.paris.lutece.plugins.genericattributes.business.Response> responseList)
Add Responses for the specified entry for the specified iteration
|
void |
addIteration()
Add an iteration to the group
|
boolean |
fillingMadeOnIteration(int nIterationNumber)
Return a boolean which indicate if the user filled at last one field for the specified iteration
|
static int |
findFieldValue(int nIdEntry,
String strFieldName,
int nDefaultValue)
Retrieve the value of field of an entry.
|
static int |
getEntryMaxIterationAllowed(int idEntry)
Return the maximum number of iterations allowed for the entry.
|
static int |
getEntryMinIterationAllowed(int idEntry)
Return the minimum number of iterations necessary for the entry.
|
int |
getIterationNumber()
Return the number of iteration for the group
|
int |
getLastIterationNumber()
Return the last iteration number used for the group
|
List<fr.paris.lutece.portal.util.mvc.utils.MVCMessage> |
getListErrorMessages()
Return the list of error messages
|
int |
getNbMaxIteration()
Return the maximum number of iteration allow for the group
|
int |
getNbMinIteration()
Return the minimum number of iteration necessary for the group
|
Set<Integer> |
getSetIterationNumber()
Return the set of all iteration number of the group
|
boolean |
isIterationLimitReached()
Tell if the maximum number of iteration has been reached or not
|
void |
removeIteration(int nIterationNumber)
Remove an iteration to the group
|
void |
resetListErrorMessages()
Reset the list of error messages for the iteration group
|
public IterationGroup(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
public int getNbMaxIteration()
public int getNbMinIteration()
public List<fr.paris.lutece.portal.util.mvc.utils.MVCMessage> getListErrorMessages()
public void resetListErrorMessages()
public int getLastIterationNumber()
public int getIterationNumber()
public void removeIteration(int nIterationNumber)
public void addIteration()
public void addEntryResponses(int nIterationNumber,
int nIdEntry,
List<fr.paris.lutece.plugins.genericattributes.business.Response> responseList)
nIterationNumber - the iteration numbernIdEntry - the id of the entry to attached the list of ResponseresponseList - the Response list of the Entrypublic Set<Integer> getSetIterationNumber()
public boolean fillingMadeOnIteration(int nIterationNumber)
public boolean isIterationLimitReached()
public static int getEntryMinIterationAllowed(int idEntry)
idEntry - The id of the entry to find the minimum number of iterations necessarypublic static int getEntryMaxIterationAllowed(int idEntry)
idEntry - The id of the entry to find the maximum number of iterationspublic static int findFieldValue(int nIdEntry,
String strFieldName,
int nDefaultValue)
nIdEntry - The entry to retrieve the field fromstrFieldName - The name of the field to retrievenDefaultValue - The default value to returned if the field has not foundCopyright © 2018 City of Paris. All rights reserved.