Class ExtenderType<T extends IExtendableResourceResult>
java.lang.Object
fr.paris.lutece.plugins.extend.service.extender.facade.ExtenderType<T>
- Type Parameters:
T- the type of elements in this ExtenderType (example: Hit)- Record Components:
IExtendableResourceResult- the IExtendableResourceResult
Generic service for reading data extend
-
Constructor Summary
ConstructorsConstructorDescriptionExtenderType(Class<T> t, String strType) Constructor (example: new ExtenderType (HitResourceExtender.EXTENDER_TYPE))ExtenderType(Class<T> t, String strType, BiFunction<String, String, List<T>> getInfoExtender, BiFunction<List<String>, String, List<T>> getInfoExtenderByList, BinaryOperator<String> getInfoForExport, BinaryOperator<String> getInfoForRecap) Constructor ExtenderType -
Method Summary
Modifier and TypeMethodDescriptionGet the class typegetInfoExtender(String strIdExtendableResource, String strExtendableResourceType) Get optional extenderType(hit or rate) information object (example: Optionalor Optional ..) getInfoExtenderByList(List<String> listIdExtendableResource, String strExtendableResourceType) Get list extenderType information object (example: Listor List ..) getInfoForExport(String strIdExtendableResource, String strExtendableResourceType) Get the information value associate to the extenderType to export in the file exportgetInfoForRecap(String strIdExtendableResource, String strExtendableResourceType) Get the information value associate to the extenderType to write in the recapgetType()Get type of the extendervoidsetInfoExtender(BiFunction<String, String, List<T>> biFunctionInfoExtender) Sets the BiFunction to get the optional extender type information objectvoidsetInfoExtenderByList(BiFunction<List<String>, String, List<T>> biFunctionInfoExtender) Sets the BiFunction to get the list of extender type information objectvoidsetInfoForExport(BinaryOperator<String> binaryOperatorInfoForExport) Sets the BinaryOperator to get the information value associate to the ExtenderType to export in the file exportvoidsetInfoForRecap(BinaryOperator<String> binaryOperatorInfoForRecap) Sets the BinaryOperator to get the information value associate to the ExtenderType to write in the recap
-
Constructor Details
-
ExtenderType
Constructor (example: new ExtenderType (HitResourceExtender.EXTENDER_TYPE))- Parameters:
Class-the Class type strType- the type of extender
-
ExtenderType
public ExtenderType(Class<T> t, String strType, BiFunction<String, String, List<T>> getInfoExtender, BiFunction<List<String>, String, List<T>> getInfoExtenderByList, BinaryOperator<String> getInfoForExport, BinaryOperator<String> getInfoForRecap) Constructor ExtenderType- Parameters:
Class-the Class type of the output arguments of the getInfoExtende and getInfoExtenderByList strType- the type of extendergetInfoExtender- the BiFunction to get the optional extender type information objectgetInfoExtenderByList- the BiFunction to get the list of extender type information objectgetInfoForExport- the BinaryOperator to get the information value associate to the ExtenderType to export in the file exportgetInfoForRecap- the BinaryOperator to get the information value associate to the ExtenderType to write in the recap- See Also:
-
constructor example
-
-
Method Details
-
getType
Get type of the extender- Returns:
- _strType
-
getClassType
Get the class type- Returns:
- _t
-
getInfoForExport
public String getInfoForExport(String strIdExtendableResource, String strExtendableResourceType) throws InfoExtenderException Get the information value associate to the extenderType to export in the file export- Parameters:
strIdExtendableResource- the idExtendableResourcestrExtendableResourceType- the extendableResourceType- Returns:
- the information value associate to the extenderType to export in the file export
- Throws:
InfoExtenderException- the InfoExtenderException
-
getInfoForRecap
public String getInfoForRecap(String strIdExtendableResource, String strExtendableResourceType) throws InfoExtenderException Get the information value associate to the extenderType to write in the recap- Parameters:
strIdExtendableResource- the idExtendableResourcestrExtendableResourceType- the extendableResourceType- Returns:
- the information value associate to the extenderType to write in the recap
- Throws:
InfoExtenderException- the InfoExtenderException
-
getInfoExtender
public List<T> getInfoExtender(String strIdExtendableResource, String strExtendableResourceType) throws InfoExtenderException Get optional extenderType(hit or rate) information object (example: Optionalor Optional ..) - Parameters:
strIdExtendableResource- the idExtendableResourcestrExtendableResourceType- the extendableResourceTypeT- the extenderType information object (example: Hit)- Returns:
- the optional extenderType(example: hit or rate) information object (example: Optional
or Optional ..) - Throws:
InfoExtenderException- the InfoExtenderException
-
getInfoExtenderByList
public List<T> getInfoExtenderByList(List<String> listIdExtendableResource, String strExtendableResourceType) throws InfoExtenderException Get list extenderType information object (example: Listor List ..) - Parameters:
listIdExtendableResource- the list of IdExtendableResourcestrExtendableResourceType- the extendableResourceTypeT- the extenderType information object (example: Hit)- Returns:
- list of extender type information object (example: List
or List ..) - Throws:
InfoExtenderException- the InfoExtenderException
-
setInfoForExport
Sets the BinaryOperator to get the information value associate to the ExtenderType to export in the file export- Parameters:
binaryOperatorInfoForExport- the binaryOperatorInfoForExport
-
setInfoForRecap
Sets the BinaryOperator to get the information value associate to the ExtenderType to write in the recap- Parameters:
binaryOperatorInfoForRecap- the binaryOperatorInfoForRecap
-
setInfoExtender
Sets the BiFunction to get the optional extender type information object- Parameters:
T- the extenderType information object (example: Hit)biFunctionInfoExtender- the biFunctionInfoExtender
-
setInfoExtenderByList
Sets the BiFunction to get the list of extender type information object- Parameters:
T- the extenderType information object (example: Hit)biFunctionInfoExtender- the biFunctionInfoExtender
-