Class ResourceExtenderServiceFacade
java.lang.Object
fr.paris.lutece.plugins.extend.service.extender.facade.ResourceExtenderServiceFacade
Facade service for reading data extend
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends IExtendableResourceResult>
booleanaddExtenderType(ExtenderType<T> extenderType) Appends the extenderType element to the end of this liststatic <T extends IExtendableResourceResult>
Optional<ExtenderType<T>>getExtenderType(Class<T> clazz) Get Optional<ExtenderType> static <T extends IExtendableResourceResult>
List<T>getInfoExtender(String extenderType, String strIdExtendableResource, String strExtendableResourceType) Get list extenderType information object (example: Listor List ..) <T extends IExtendableResourceResult>
List<T>getInfoExtenderByList(String extenderType, List<String> listIdExtendableResource, String strExtendableResourceType) Get list extenderType information object (example: Listor List ..) static StringgetInfoForExport(String extenderType, String strIdExtendableResource, String strExtendableResourceType) Get the information value associate to the extenderType to export in the file exportstatic StringgetInfoForRecap(String extenderType, String strIdExtendableResource, String strExtendableResourceType) Get the information value associate to the extenderType to write in the recapstatic List<ExtenderType<? extends IExtendableResourceResult>>
-
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 idExtendableResourcestrExtendableResourceType- 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 idExtendableResourcestrExtendableResourceType- 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: Listor List ..) - Parameters:
extenderType- the extender type (example: hit, rating ....)strIdExtendableResource- the idExtendableResourcestrExtendableResourceType- the extendableResourceTypeT- 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: Listor List ..) - Parameters:
extenderType- the extender type (example: hit, rating ....)listIdExtendableResource- the list of IdExtendableResourcestrExtendableResourceType- the extendableResourceTypeT- 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:
-
ExtenderType<T extends IExtendableResourceResult>
-
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
- Returns:
- The list of Extender Type (example: ExtenderType
, ExtenderType ...)
-