Class ResourceExtenderServiceFacade
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.service.extender.facade.ResourceExtenderServiceFacade
-
public class ResourceExtenderServiceFacade extends java.lang.ObjectFacade service for reading data extend
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends IExtendableResourceResult>
booleanaddExtenderType(ExtenderType<T> extenderType)Appends the extenderType element to the end of this liststatic <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: Listor 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: Listor List ..) static java.lang.StringgetInfoForExport(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 exportstatic java.lang.StringgetInfoForRecap(java.lang.String extenderType, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Get the information value associate to the extenderType to write in the recapstatic java.util.List<ExtenderType<? extends IExtendableResourceResult>>getListExtenderType()
-
-
-
Method Detail
-
getInfoForExport
public static java.lang.String getInfoForExport(java.lang.String extenderType, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType) throws InfoExtenderExceptionGet 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 java.lang.String getInfoForRecap(java.lang.String extenderType, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType) throws InfoExtenderExceptionGet 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> 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: 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> 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: 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> 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 ...)
-
-