Class RatingsAndReviewsServiceResponseCode
java.lang.Object
com.skava.ratingandreviews.constant.ResponseCode
com.skava.ratingandreviews.constant.RatingsAndReviewsServiceResponseCode
-
Field Summary
FieldsFields inherited from class com.skava.ratingandreviews.constant.ResponseCode
ENTITY_COLLECTION, ENTITY_RATINGS_REVIEWS, ERROR_ALREADY_EXISTS, ERROR_INVALID_PAGE_SIZE, ERROR_LOCALE_VALIDATION, ERROR_NOT_FOUND, ERROR_VALIDATION, INVALID, NOTUPDATE, OPERATION_COMMON, OPERATION_CREATE, OPERATION_DELETE, OPERATION_GET, OPERATION_MERGE, OPERATION_PATCH, OPERATION_UPDATE, OPERATION_VALIDATION, PARTNER_NOT_FOUND, SERVICE_MINIMUM_REVIEWS_NOT_REACHED, SERVICE_NEGATIVE_REVIEWS_NOT_FOUND, SERVICE_POSITIVE_REVIEWS_NOT_FOUND, SERVICE_POSITIVENEAGTIVE_REVIEWS_NOT_FOUND, SERVICE_RATINGS_ANSWER_ALREADY_EXIST, SERVICE_RATINGS_ANSWER_ID_NOFOUND, SERVICE_RATINGS_ANSWER_STATUS, SERVICE_RATINGS_FEEDBACK, SERVICE_RATINGS_FEEDBACK_NOFOUND, SERVICE_RATINGS_ITEM_ID_NOFOUND, SERVICE_RATINGS_QUESTION_ID_NOFOUND, SERVICE_RATINGS_QUESTION_NOFOUND, SERVICE_RATINGS_REVIEWS, SERVICE_RATINGS_STATUS, SERVICE_RATINGS_SUMMARY, SERVICE_VOTES_NOFOUND, SUCCESS_CODE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(String responseCode, org.springframework.context.MessageSource messageSource, String locale) The Method getMessage.
-
Field Details
-
COLLECTION_NOT_FOUND
- See Also:
-
PAGE_INVALID
- See Also:
-
SIZE_INVALID
- See Also:
-
-
Constructor Details
-
RatingsAndReviewsServiceResponseCode
public RatingsAndReviewsServiceResponseCode()
-
-
Method Details
-
getMessage
public String getMessage(String responseCode, org.springframework.context.MessageSource messageSource, String locale) The Method getMessage. This method populates the response message for the response code from the resource bundle.- Parameters:
responseCode
- The response code for which the message needs to be determined.messageSource
- The message source resource bundle.locale
- The locale string for getting the response message.- Returns:
- The response message from the resource bundle.
-