Class FormsEntryUtils


  • public final class FormsEntryUtils
    extends java.lang.Object
    Utility class for plugin Form
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static fr.paris.lutece.plugins.genericattributes.business.Entry createEntryByType​(int nIdType)
      Return an instance of IEntry function of type entry
      static fr.paris.lutece.plugins.genericattributes.business.Field findFieldByCode​(fr.paris.lutece.plugins.genericattributes.business.Entry entry, java.lang.String strCode)
      Finds a field with the specified code in the specified entry
      static int getIndexFieldInTheFieldList​(int nIdField, java.util.List<fr.paris.lutece.plugins.genericattributes.business.Field> listField)
      Return the index in the list of the field whose key is specified in parameter
      static java.util.List<fr.paris.lutece.plugins.genericattributes.business.EntryType> initListEntryType()
      Build a list with the different entry types excluding Group and MyLuteceUser
      static fr.paris.lutece.util.ReferenceList initRefListEntryType()
      Build a reference list with the different entry types excluding Group and MyLuteceUser
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createEntryByType

        public static fr.paris.lutece.plugins.genericattributes.business.Entry createEntryByType​(int nIdType)
        Return an instance of IEntry function of type entry
        Parameters:
        nIdType - the entry type id
        Returns:
        an instance of IEntry function of type entry
      • getIndexFieldInTheFieldList

        public static int getIndexFieldInTheFieldList​(int nIdField,
                                                      java.util.List<fr.paris.lutece.plugins.genericattributes.business.Field> listField)
        Return the index in the list of the field whose key is specified in parameter
        Parameters:
        nIdField - the key of the field
        listField - the list of field
        Returns:
        the index in the list of the field whose key is specified in parameter
      • initRefListEntryType

        public static fr.paris.lutece.util.ReferenceList initRefListEntryType()
        Build a reference list with the different entry types excluding Group and MyLuteceUser
        Returns:
        reference list of entry type
      • initListEntryType

        public static java.util.List<fr.paris.lutece.plugins.genericattributes.business.EntryType> initListEntryType()
        Build a list with the different entry types excluding Group and MyLuteceUser
        Returns:
        list of entry type
      • findFieldByCode

        public static fr.paris.lutece.plugins.genericattributes.business.Field findFieldByCode​(fr.paris.lutece.plugins.genericattributes.business.Entry entry,
                                                                                               java.lang.String strCode)
        Finds a field with the specified code in the specified entry
        Parameters:
        entry - the entry
        strCode - the code
        Returns:
        the found field, or null otherwise