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)
public class ExtenderType<T extends IExtendableResourceResult> extends java.lang.ObjectGeneric service for reading data extend
-
-
Constructor Summary
Constructors Constructor Description ExtenderType(java.lang.Class<T> t, java.lang.String strType)Constructor (example: new ExtenderType (HitResourceExtender.EXTENDER_TYPE))ExtenderType(java.lang.Class<T> t, java.lang.String strType, java.util.function.BiFunction<java.lang.String,java.lang.String,java.util.List<T>> getInfoExtender, java.util.function.BiFunction<java.util.List<java.lang.String>,java.lang.String,java.util.List<T>> getInfoExtenderByList, java.util.function.BinaryOperator<java.lang.String> getInfoForExport, java.util.function.BinaryOperator<java.lang.String> getInfoForRecap)Constructor ExtenderType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<T>getClassType()Get the class typejava.util.List<T>getInfoExtender(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Get optional extenderType(hit or rate) information object (example: Optionalor Optional ..) java.util.List<T>getInfoExtenderByList(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType)Get list extenderType information object (example: Listor List ..) java.lang.StringgetInfoForExport(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Get the information value associate to the extenderType to export in the file exportjava.lang.StringgetInfoForRecap(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Get the information value associate to the extenderType to write in the recapjava.lang.StringgetType()Get type of the extendervoidsetInfoExtender(java.util.function.BiFunction<java.lang.String,java.lang.String,java.util.List<T>> biFunctionInfoExtender)Sets the BiFunction to get the optional extender type information objectvoidsetInfoExtenderByList(java.util.function.BiFunction<java.util.List<java.lang.String>,java.lang.String,java.util.List<T>> biFunctionInfoExtender)Sets the BiFunction to get the list of extender type information objectvoidsetInfoForExport(java.util.function.BinaryOperator<java.lang.String> binaryOperatorInfoForExport)Sets the BinaryOperator to get the information value associate to the ExtenderType to export in the file exportvoidsetInfoForRecap(java.util.function.BinaryOperator<java.lang.String> binaryOperatorInfoForRecap)Sets the BinaryOperator to get the information value associate to the ExtenderType to write in the recap
-
-
-
Constructor Detail
-
ExtenderType
public ExtenderType(java.lang.Class<T> t, java.lang.String strType)
Constructor (example: new ExtenderType (HitResourceExtender.EXTENDER_TYPE))- Parameters:
Class-the Class type strType- the type of extender
-
ExtenderType
public ExtenderType(java.lang.Class<T> t, java.lang.String strType, java.util.function.BiFunction<java.lang.String,java.lang.String,java.util.List<T>> getInfoExtender, java.util.function.BiFunction<java.util.List<java.lang.String>,java.lang.String,java.util.List<T>> getInfoExtenderByList, java.util.function.BinaryOperator<java.lang.String> getInfoForExport, java.util.function.BinaryOperator<java.lang.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 Detail
-
getType
public java.lang.String getType()
Get type of the extender- Returns:
- _strType
-
getClassType
public java.lang.Class<T> getClassType()
Get the class type- Returns:
- _t
-
getInfoForExport
public java.lang.String getInfoForExport(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType) throws InfoExtenderExceptionGet 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 java.lang.String getInfoForRecap(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType) throws InfoExtenderExceptionGet 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 java.util.List<T> getInfoExtender(java.lang.String strIdExtendableResource, java.lang.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 java.util.List<T> getInfoExtenderByList(java.util.List<java.lang.String> listIdExtendableResource, java.lang.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
public void setInfoForExport(java.util.function.BinaryOperator<java.lang.String> binaryOperatorInfoForExport)
Sets the BinaryOperator to get the information value associate to the ExtenderType to export in the file export- Parameters:
binaryOperatorInfoForExport- the binaryOperatorInfoForExport
-
setInfoForRecap
public void setInfoForRecap(java.util.function.BinaryOperator<java.lang.String> binaryOperatorInfoForRecap)
Sets the BinaryOperator to get the information value associate to the ExtenderType to write in the recap- Parameters:
binaryOperatorInfoForRecap- the binaryOperatorInfoForRecap
-
setInfoExtender
public void setInfoExtender(java.util.function.BiFunction<java.lang.String,java.lang.String,java.util.List<T>> biFunctionInfoExtender)
Sets the BiFunction to get the optional extender type information object- Parameters:
T- the extenderType information object (example: Hit)biFunctionInfoExtender- the biFunctionInfoExtender
-
setInfoExtenderByList
public void setInfoExtenderByList(java.util.function.BiFunction<java.util.List<java.lang.String>,java.lang.String,java.util.List<T>> biFunctionInfoExtender)
Sets the BiFunction to get the list of extender type information object- Parameters:
T- the extenderType information object (example: Hit)biFunctionInfoExtender- the biFunctionInfoExtender
-
-