Class ResourceExtenderServiceFacade

java.lang.Object
fr.paris.lutece.plugins.extend.service.extender.facade.ResourceExtenderServiceFacade

public class ResourceExtenderServiceFacade extends Object
Facade service for reading data extend
  • Method Details

    • getInfoForExport

      public static String getInfoForExport(String extenderType, String strIdExtendableResource, String strExtendableResourceType) throws InfoExtenderException
      Get the information value associate to the extenderType to export in the file export
      Parameters:
      extenderType - the extender type ( example: hit, rating ....)
      strIdExtendableResource - the idExtendableResource
      strExtendableResourceType - the extendableResourceType
      Returns:
      the information value associate to the extenderType to export in the file export
      Throws:
      InfoExtenderException - the InfoExtenderException
    • getInfoForRecap

      public static String getInfoForRecap(String extenderType, String strIdExtendableResource, String strExtendableResourceType) throws InfoExtenderException
      Get the information value associate to the extenderType to write in the recap
      Parameters:
      extenderType - the extender type (example: hit, rating ....)
      strIdExtendableResource - the idExtendableResource
      strExtendableResourceType - the extendableResourceType
      Returns:
      the information value associate to the extenderType to write in the recap
      Throws:
      InfoExtenderException - the InfoExtenderException
    • getInfoExtender

      public static <T extends IExtendableResourceResult> List<T> getInfoExtender(String extenderType, String strIdExtendableResource, String strExtendableResourceType) throws InfoExtenderException
      Get list extenderType information object (example: List or List..)
      Parameters:
      extenderType - the extender type (example: hit, rating ....)
      strIdExtendableResource - the idExtendableResource
      strExtendableResourceType - the extendableResourceType
      T - the extenderType information object (example: Hit)
      Returns:
      the list extenderType(example: hit or rate) information object (example: Optional or Optional..)
      Throws:
      InfoExtenderException - the InfoExtenderException
    • getInfoExtenderByList

      public <T extends IExtendableResourceResult> List<T> getInfoExtenderByList(String extenderType, List<String> listIdExtendableResource, String strExtendableResourceType) throws InfoExtenderException
      Get list extenderType information object (example: List or List..)
      Parameters:
      extenderType - the extender type (example: hit, rating ....)
      listIdExtendableResource - the list of IdExtendableResource
      strExtendableResourceType - the extendableResourceType
      T - the extenderType information object (example: Hit)
      Returns:
      list of extenderType information object (example: List or List..)
      Throws:
      InfoExtenderException - the InfoExtenderException
    • getExtenderType

      public static <T extends IExtendableResourceResult> Optional<ExtenderType<T>> getExtenderType(Class<T> clazz)
      Get Optional<ExtenderType>
      Type Parameters:
      T - the type of extender type (example: Hit or Rating or......)
      Parameters:
      clazz - the class type of extender type (example: Hit.class or Rating.class or....)
      T - the extenderType information object (example: Hit)
      Returns:
      the Optional<ExtenderType>
      See Also:
    • addExtenderType

      public static <T extends IExtendableResourceResult> boolean addExtenderType(ExtenderType<T> extenderType)
      Appends the extenderType element to the end of this list
      Parameters:
      extenderType - the ExtenderType (example: ExtenderType or ExtenderType or ... )
      Returns:
      true if this list changed as a result of the call
    • getListExtenderType

      public static List<ExtenderType<? extends IExtendableResourceResult>> getListExtenderType()
      Returns:
      The list of Extender Type (example: ExtenderType, ExtenderType...)