Class RatingFacadeFactory
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.rating.service.facade.RatingFacadeFactory
-
public class RatingFacadeFactory extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanaddRatingType(RatingType ratingType)Appends the specified element to the end of this list (optional operation).static voidcancelRating(RatingExtenderConfig config, Rating rating)Do cancel ratingstatic voidcancelRating(Rating rating)Do cancel ratingstatic voiddoRating(RatingExtenderConfig config, Rating rating)Do Ratingstatic voiddoRating(Rating rating)Do Ratingstatic java.lang.StringgetInfoForExport(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 strIdExtendableResource, java.lang.String strExtendableResourceType)Get the information value associate to the extenderType to write in the recapstatic java.util.List<Rating>getInfoRating(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Get rating list information objectstatic java.util.List<Rating>getInfoRatingByList(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType)Get the rating list by id resourcesstatic java.util.List<RatingType>getListRatingType()Get all rating typestatic java.lang.StringgetPageAddOn(RatingExtenderConfig config, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String strParameters, javax.servlet.http.HttpServletRequest request)Get PageAddOnstatic RatinggetRatingInstance(java.lang.String typeName)Get an instance of ratingstatic java.util.Optional<RatingType>getRatingType(java.lang.Class<? extends Rating> clazz)Get the rating typestatic java.util.Optional<RatingType>getRatingType(java.lang.String strType)Get rating type
-
-
-
Method Detail
-
doRating
public static void doRating(Rating rating) throws fr.paris.lutece.portal.service.security.UserNotSignedException, RatingException
Do Rating- Parameters:
rating- the rating object- Throws:
fr.paris.lutece.portal.service.security.UserNotSignedException- the UserNotSignedExceptionRatingException- the RatingException
-
doRating
public static void doRating(RatingExtenderConfig config, Rating rating) throws fr.paris.lutece.portal.service.security.UserNotSignedException, RatingException
Do Rating- Parameters:
config- the configuration of the rating extenderrating- the rating object- Throws:
fr.paris.lutece.portal.service.security.UserNotSignedException- the UserNotSignedExceptionRatingException- the RatingException
-
cancelRating
public static void cancelRating(Rating rating) throws RatingException
Do cancel rating- Parameters:
rating- the rating object- Throws:
RatingException- the RatingException
-
cancelRating
public static void cancelRating(RatingExtenderConfig config, Rating rating) throws RatingException
Do cancel rating- Parameters:
config- the configuration of the rating extenderrating- the rating object- Throws:
RatingException- the RatingException
-
getPageAddOn
public static java.lang.String getPageAddOn(RatingExtenderConfig config, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String strParameters, javax.servlet.http.HttpServletRequest request)
Get PageAddOn- Parameters:
config- the configuration of the rating extenderstrIdExtendableResource- the idExtendableResourcestrExtendableResourceType- the extendableResourceTypestrParameters- the parametersrequest- the request- Returns:
- Page builded
-
getInfoRatingByList
public static java.util.List<Rating> getInfoRatingByList(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType)
Get the rating list by id resources- Parameters:
strIdExtendableResource- the idExtendableResourcestrExtendableResourceType- the extendableResourceType- Returns:
- the list of rating
-
getInfoRating
public static java.util.List<Rating> getInfoRating(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
Get rating list information object- Parameters:
strIdExtendableResource- the idExtendableResourcestrExtendableResourceType- the extendableResourceType- Returns:
- the list of rating
-
getInfoForExport
public static java.lang.String getInfoForExport(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)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 extender rating to export in the file export
-
getInfoForRecap
public static java.lang.String getInfoForRecap(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)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
-
getRatingInstance
public static Rating getRatingInstance(java.lang.String typeName)
Get an instance of rating- Parameters:
typeName- the type name- Returns:
- rating instance
-
addRatingType
public static boolean addRatingType(RatingType ratingType)
Appends the specified element to the end of this list (optional operation).- Parameters:
ratingType- the rating type- Returns:
- true if the element is added
-
getRatingType
public static java.util.Optional<RatingType> getRatingType(java.lang.Class<? extends Rating> clazz)
Get the rating type- Parameters:
clazz- the class of rating type- Returns:
-
getRatingType
public static java.util.Optional<RatingType> getRatingType(java.lang.String strType)
Get rating type- Parameters:
strType- the type- Returns:
- RatingType
-
getListRatingType
public static java.util.List<RatingType> getListRatingType()
Get all rating type- Returns:
- the list of all rating type
-
-