java.lang.Object
fr.paris.lutece.plugins.extend.modules.rating.service.facade.RatingFacadeFactory

public class RatingFacadeFactory extends Object
  • Method Details

    • 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 UserNotSignedException
      RatingException - 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 extender
      rating - the rating object
      Throws:
      fr.paris.lutece.portal.service.security.UserNotSignedException - the UserNotSignedException
      RatingException - 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 extender
      rating - the rating object
      Throws:
      RatingException - the RatingException
    • getPageAddOn

      public static String getPageAddOn(RatingExtenderConfig config, String strIdExtendableResource, String strExtendableResourceType, String strParameters, jakarta.servlet.http.HttpServletRequest request)
      Get PageAddOn
      Parameters:
      config - the configuration of the rating extender
      strIdExtendableResource - the idExtendableResource
      strExtendableResourceType - the extendableResourceType
      strParameters - the parameters
      request - the request
      Returns:
      Page builded
    • getInfoRatingByList

      public static List<Rating> getInfoRatingByList(List<String> listIdExtendableResource, String strExtendableResourceType)
      Get the rating list by id resources
      Parameters:
      strIdExtendableResource - the idExtendableResource
      strExtendableResourceType - the extendableResourceType
      Returns:
      the list of rating
    • getInfoRating

      public static List<Rating> getInfoRating(String strIdExtendableResource, String strExtendableResourceType)
      Get rating list information object
      Parameters:
      strIdExtendableResource - the idExtendableResource
      strExtendableResourceType - the extendableResourceType
      Returns:
      the list of rating
    • getInfoForExport

      public static String getInfoForExport(String strIdExtendableResource, String strExtendableResourceType)
      Get the information value associate to the extenderType to export in the file export
      Parameters:
      strIdExtendableResource - the idExtendableResource
      strExtendableResourceType - the extendableResourceType
      Returns:
      the information value associate to the extender rating to export in the file export
    • getInfoForRecap

      public static String getInfoForRecap(String strIdExtendableResource, String strExtendableResourceType)
      Get the information value associate to the extenderType to write in the recap
      Parameters:
      strIdExtendableResource - the idExtendableResource
      strExtendableResourceType - the extendableResourceType
      Returns:
      the information value associate to the extenderType to write in the recap
    • getRatingInstance

      public static Rating getRatingInstance(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 Optional<RatingType> getRatingType(Class<? extends Rating> clazz)
      Get the rating type
      Parameters:
      clazz - the class of rating type
      Returns:
    • getRatingType

      public static Optional<RatingType> getRatingType(String strType)
      Get rating type
      Parameters:
      strType - the type
      Returns:
      RatingType
    • getListRatingType

      public static List<RatingType> getListRatingType()
      Get all rating type
      Returns:
      the list of all rating type