Enum RatingService
- java.lang.Object
-
- java.lang.Enum<RatingService>
-
- fr.paris.lutece.plugins.extend.modules.rating.service.RatingService
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RatingService>
public enum RatingService extends java.lang.Enum<RatingService>
RatingService
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<Rating>findAndbuildRatingResult(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType)load and build Rating Resultjava.util.List<Rating>findAndbuildRatingResult(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String strRatingType, java.lang.String strUserGuid)load and build Rating Resultjava.util.List<Rating>findAndbuildRatingResult(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType)load and build Rating Resultjava.util.Optional<Rating>findByPrimaryKey(int nIdRating)Find by primary keyjava.util.List<Rating>findByResource(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Select by resource.java.util.Optional<Rating>findRating(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType, double value, java.lang.String userGuid)find by primary keyvoidremoveByResource(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Remove rating by resourcestatic RatingServicevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RatingService[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final RatingService INSTANCE
-
-
Method Detail
-
values
public static RatingService[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RatingService c : RatingService.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RatingService valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
removeByResource
public void removeByResource(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Remove rating by resource- Parameters:
strIdExtendableResource- the Extendable resource idstrExtendableResourceType- the Extendable Resourcer type
-
findByPrimaryKey
public java.util.Optional<Rating> findByPrimaryKey(int nIdRating)
Find by primary key- Parameters:
nIdRating- the n id rating- Returns:
- the rating
-
findRating
public java.util.Optional<Rating> findRating(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType, double value, java.lang.String userGuid)
find by primary key- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource typeratingType- the rating typevalue- the rating value- Returns:
- the rating
-
findByResource
public java.util.List<Rating> findByResource(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
Select by resource.- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type- Returns:
- the rating list
-
findAndbuildRatingResult
public java.util.List<Rating> findAndbuildRatingResult(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType)
load and build Rating Result- Parameters:
listIdExtendableResource- the list of id resourcestrExtendableResourceType- the resource typeratingType- the rating type- Returns:
- rating result
-
findAndbuildRatingResult
public java.util.Optional<Rating> findAndbuildRatingResult(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType)
load and build Rating Result- Parameters:
listIdExtendableResource- the of id resourcestrExtendableResourceType- the resource typeratingType- the rating type- Returns:
- rating result
-
findAndbuildRatingResult
public java.util.List<Rating> findAndbuildRatingResult(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String strRatingType, java.lang.String strUserGuid)
load and build Rating Result- Parameters:
listIdExtendableResource- the list of id resourcestrExtendableResourceType- the resource typeratingType- the rating typestrGuid- the guid- Returns:
- rating result
-
-