Class ResourceExtenderServiceFacade


  • public class ResourceExtenderServiceFacade
    extends java.lang.Object
    Facade service for reading data extend
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends IExtendableResourceResult>
      boolean
      addExtenderType​(ExtenderType<T> extenderType)
      Appends the extenderType element to the end of this list
      static <T extends IExtendableResourceResult>
      java.util.Optional<ExtenderType<T>>
      getExtenderType​(java.lang.Class<T> clazz)
      Get Optional>
      static <T extends IExtendableResourceResult>
      java.util.List<T>
      getInfoExtender​(java.lang.String extenderType, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      Get list extenderType information object (example: List or List..)
      <T extends IExtendableResourceResult>
      java.util.List<T>
      getInfoExtenderByList​(java.lang.String extenderType, java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType)
      Get list extenderType information object (example: List or List..)
      static java.lang.String getInfoForExport​(java.lang.String extenderType, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      Get the information value associate to the extenderType to export in the file export
      static java.lang.String getInfoForRecap​(java.lang.String extenderType, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      Get the information value associate to the extenderType to write in the recap
      static java.util.List<ExtenderType<? extends IExtendableResourceResult>> getListExtenderType()  
      • Methods inherited from class java.lang.Object

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

      • getInfoForExport

        public static java.lang.String getInfoForExport​(java.lang.String extenderType,
                                                        java.lang.String strIdExtendableResource,
                                                        java.lang.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 java.lang.String getInfoForRecap​(java.lang.String extenderType,
                                                       java.lang.String strIdExtendableResource,
                                                       java.lang.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> java.util.List<T> getInfoExtender​(java.lang.String extenderType,
                                                                                              java.lang.String strIdExtendableResource,
                                                                                              java.lang.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> java.util.List<T> getInfoExtenderByList​(java.lang.String extenderType,
                                                                                             java.util.List<java.lang.String> listIdExtendableResource,
                                                                                             java.lang.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> java.util.Optional<ExtenderType<T>> getExtenderType​(java.lang.Class<T> clazz)
        Get Optional>
        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>
        See Also:
        ExtenderType
      • 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 java.util.List<ExtenderType<? extends IExtendableResourceResult>> getListExtenderType()
        Returns:
        The list of Extender Type (example: ExtenderType, ExtenderType...)