Class RatingFacadeFactory


  • public class RatingFacadeFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean addRatingType​(RatingType ratingType)
      Appends the specified element to the end of this list (optional operation).
      static void cancelRating​(RatingExtenderConfig config, Rating rating)
      Do cancel rating
      static void cancelRating​(Rating rating)
      Do cancel rating
      static void doRating​(RatingExtenderConfig config, Rating rating)
      Do Rating
      static void doRating​(Rating rating)
      Do Rating
      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
      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
      static java.util.List<Rating> getInfoRating​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      Get rating list information object
      static java.util.List<Rating> getInfoRatingByList​(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType)
      Get the rating list by id resources
      static java.util.List<RatingType> getListRatingType()
      Get all rating type
      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
      static Rating getRatingInstance​(java.lang.String typeName)
      Get an instance of rating
      static java.util.Optional<RatingType> getRatingType​(java.lang.Class<? extends Rating> clazz)
      Get the rating type
      static java.util.Optional<RatingType> getRatingType​(java.lang.String strType)
      Get rating type
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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
      • 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 extender
        strIdExtendableResource - the idExtendableResource
        strExtendableResourceType - the extendableResourceType
        strParameters - the parameters
        request - 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 idExtendableResource
        strExtendableResourceType - 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 idExtendableResource
        strExtendableResourceType - 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 idExtendableResource
        strExtendableResourceType - 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 idExtendableResource
        strExtendableResourceType - 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