/** CAT_TAG_COLLECTION_URL * Most of the code in the Qalingo project is copyrighted Hoteia and licensed * under the Apache License Version 2.0 (release version 0.8.0) * http://www.apache.org/licenses/LICENSE-2.0 * * Copyright (c) Hoteia, 2012-2014 * http://www.hoteia.com - http://twitter.com/hoteia - contact@hoteia.com * */ package org.hoteia.qalingo.core.domain.enumtype; import org.apache.commons.lang.StringUtils; import org.hoteia.qalingo.core.RequestConstants; public enum FoUrls { PREHOME(FoUrls.PREHOME_URL, FoUrls.PREHOME_KEY, FoUrls.PREHOME_VELOCITY_PAGE, false), HOME(FoUrls.HOME_URL, FoUrls.HOME_KEY, FoUrls.HOME_VELOCITY_PAGE, true), INDEX(FoUrls.INDEX_URL, FoUrls.HOME_KEY, FoUrls.HOME_VELOCITY_PAGE, true), OUR_COMPANY(FoUrls.OUR_COMPANY_URL, FoUrls.OUR_COMPANY_KEY, FoUrls.OUR_COMPANY_VELOCITY_PAGE, true), FAQ(FoUrls.FAQ_URL, FoUrls.FAQ_KEY, FoUrls.FAQ_VELOCITY_PAGE, true), CLP(FoUrls.CLP_URL, FoUrls.CLP_KEY, FoUrls.CLP_VELOCITY_PAGE, true), FOLLOW_US(FoUrls.FOLLOW_US_URL, FoUrls.FOLLOW_US_KEY, FoUrls.FOLLOW_US_VELOCITY_PAGE, true), CONTACT(FoUrls.CONTACT_URL, FoUrls.CONTACT_KEY, FoUrls.CONTACT_VELOCITY_PAGE, true), NEWSLETTER_REGISTER(FoUrls.NEWSLETTER_REGISTER_URL, FoUrls.NEWSLETTER_REGISTER_KEY, FoUrls.NEWSLETTER_REGISTER_VELOCITY_PAGE, true), NEWSLETTER_UNREGISTER(FoUrls.NEWSLETTER_UNREGISTER_URL, FoUrls.NEWSLETTER_UNREGISTER_KEY, FoUrls.NEWSLETTER_UNREGISTER_VELOCITY_PAGE, true), LEGAL_TERMS(FoUrls.LEGAL_TERMS_URL, FoUrls.LEGAL_TERMS_KEY, FoUrls.LEGAL_TERMS_VELOCITY_PAGE, true), CONDITIONS_OF_USE(FoUrls.CONDITIONS_OF_USE_URL, FoUrls.CONDITIONS_OF_USE_KEY, FoUrls.CONDITIONS_OF_USE_VELOCITY_PAGE, true), CONDITIONS_OF_SALE(FoUrls.CONDITIONS_OF_SALE_URL, FoUrls.CONDITIONS_OF_SALE_KEY, FoUrls.CONDITIONS_OF_SALE_VELOCITY_PAGE, true), STORE_LOCATION(FoUrls.STORE_LOCATION_URL, FoUrls.STORE_LOCATION_KEY, FoUrls.STORE_LOCATION_VELOCITY_PAGE, true), STORE_DETAILS(FoUrls.STORE_DETAILS_URL, FoUrls.STORE_DETAILS_KEY, FoUrls.STORE_DETAILS_VELOCITY_PAGE, true), STORE_COMMENT(FoUrls.STORE_COMMENT_URL, FoUrls.STORE_COMMENT_KEY, FoUrls.STORE_COMMENT_FORM_VELOCITY_PAGE, true), STORE_VOTE(FoUrls.STORE_VOTE_URL, FoUrls.STORE_COMMENT_KEY, FoUrls.STORE_COMMENT_FORM_VELOCITY_PAGE, true), STORE_CONTACT(FoUrls.STORE_CONTACT_URL, FoUrls.STORE_CONTACT_KEY, FoUrls.STORE_CONTACT_FORM_VELOCITY_PAGE, true), CATALOG_SEARCH(FoUrls.CATALOG_SEARCH_URL, FoUrls.CATALOG_SEARCH_KEY, FoUrls.CATALOG_SEARCH_VELOCITY_PAGE, true), STORE_SEARCH(FoUrls.STORE_SEARCH_URL, FoUrls.STORE_SEARCH_KEY, FoUrls.STORE_SEARCH_VELOCITY_PAGE, true), CHANGE_LANGUAGE(FoUrls.CHANGE_LANGUAGE_URL, null, null, true), CHANGE_CONTEXT(FoUrls.CHANGE_CONTEXT_URL, null, null, true), LOGIN(FoUrls.LOGIN_URL, FoUrls.LOGIN_KEY, FoUrls.LOGIN_VELOCITY_PAGE, true), LOGIN_CHECK(FoUrls.LOGIN_CHECK_URL, FoUrls.LOGIN_KEY, FoUrls.LOGIN_VELOCITY_PAGE, true), LOGOUT(FoUrls.LOGOUT_URL, FoUrls.LOGOUT_KEY, FoUrls.LOGOUT_VELOCITY_PAGE, false), PERSONAL_DETAILS(FoUrls.PERSONAL_DETAILS_URL, FoUrls.PERSONAL_DETAILS_KEY, FoUrls.PERSONAL_DETAILS_VELOCITY_PAGE, true), PERSONAL_EDIT(FoUrls.PERSONAL_EDIT_URL, FoUrls.PERSONAL_EDIT_KEY, FoUrls.PERSONAL_EDIT_VELOCITY_PAGE, true), PERSONAL_ORDER_LIST(FoUrls.PERSONAL_ORDER_LIST_URL, FoUrls.PERSONAL_ORDER_LIST_KEY, FoUrls.PERSONAL_ORDER_LIST_VELOCITY_PAGE, true), PERSONAL_ORDER_DETAILS(FoUrls.PERSONAL_ORDER_DETAILS_URL, FoUrls.PERSONAL_ORDER_DETAILS_KEY, FoUrls.PERSONAL_ORDER_DETAILS_VELOCITY_PAGE, true), PERSONAL_WISHLIST(FoUrls.PERSONAL_WISHLIST_URL, FoUrls.PERSONAL_WISHLIST_KEY, FoUrls.PERSONAL_WISHLIST_VELOCITY_PAGE, true), PERSONAL_PRODUCT_COMMENT_LIST(FoUrls.PERSONAL_PRODUCT_COMMENT_LIST_URL, FoUrls.PERSONAL_PRODUCT_COMMENT_LIST_KEY, FoUrls.PERSONAL_PRODUCT_COMMENT_LIST_VELOCITY_PAGE, true), PERSONAL_ADD_PRODUCT_COMMENT_LIST(FoUrls.PERSONAL_ADD_PRODUCT_COMMENT_LIST_URL, FoUrls.PERSONAL_ADD_PRODUCT_COMMENT_LIST_KEY, FoUrls.PERSONAL_ADD_PRODUCT_COMMENT_LIST_VELOCITY_PAGE, true), PERSONAL_REMOVE_PRODUCT_COMMENT_LIST(FoUrls.PERSONAL_REMOVE_PRODUCT_COMMENT_LIST_URL, FoUrls.PERSONAL_REMOVE_PRODUCT_COMMENT_LIST_KEY, FoUrls.PERSONAL_REMOVE_PRODUCT_COMMENT_LIST_VELOCITY_PAGE, true), PERSONAL_ADDRESS_LIST(FoUrls.PERSONAL_ADDRESS_LIST_URL, FoUrls.PERSONAL_ADDRESS_LIST_KEY, FoUrls.PERSONAL_ADDRESS_LIST_VELOCITY_PAGE, true), PERSONAL_ADD_ADDRESS(FoUrls.PERSONAL_ADD_ADDRESS_URL, FoUrls.PERSONAL_ADD_ADDRESS_KEY, FoUrls.PERSONAL_ADD_ADDRESS_VELOCITY_PAGE, true), PERSONAL_EDIT_ADDRESS(FoUrls.PERSONAL_EDIT_ADDRESS_URL, FoUrls.PERSONAL_EDIT_ADDRESS_KEY, FoUrls.PERSONAL_EDIT_ADDRESS_VELOCITY_PAGE, true), PERSONAL_DELETE_ADDRESS(FoUrls.PERSONAL_DELETE_ADDRESS_URL, FoUrls.PERSONAL_DELETE_ADDRESS_KEY, FoUrls.PERSONAL_DELETE_ADDRESS_VELOCITY_PAGE, true), CUSTOMER_DETAILS(FoUrls.CUSTOMER_DETAILS_URL, FoUrls.CUSTOMER_DETAILS_KEY, FoUrls.CUSTOMER_DETAILS_VELOCITY_PAGE, true), CUSTOMER_CREATE_ACCOUNT(FoUrls.CUSTOMER_CREATE_ACCOUNT_URL, FoUrls.CUSTOMER_CREATE_ACCOUNT_KEY, FoUrls.CUSTOMER_CREATE_ACCOUNT_VELOCITY_PAGE, true), CUSTOMER_NEW_ACCOUNT_VALIDATION(FoUrls.CUSTOMER_NEW_ACCOUNT_VALIDATION_URL, FoUrls.CUSTOMER_NEW_ACCOUNT_VALIDATION_KEY, null, true), RETAILER_DETAILS(FoUrls.RETAILER_DETAILS_URL, FoUrls.RETAILER_DETAILS_KEY, FoUrls.RETAILER_DETAILS_VELOCITY_PAGE, true), RETAILER_CREATE(FoUrls.RETAILER_CREATE_URL, FoUrls.RETAILER_CREATE_KEY, FoUrls.RETAILER_CREATE_VELOCITY_PAGE, true), RETAILER_CONTACT(FoUrls.RETAILER_CONTACT_URL, FoUrls.RETAILER_CONTACT_KEY, FoUrls.RETAILER_CONTACT_FORM_VELOCITY_PAGE, true), RETAILER_COMMENT(FoUrls.RETAILER_COMMENT_URL, FoUrls.RETAILER_COMMENT_KEY, FoUrls.RETAILER_COMMENT_FORM_VELOCITY_PAGE, true), RETAILER_VOTE(FoUrls.RETAILER_VOTE_URL, FoUrls.RETAILER_COMMENT_KEY, FoUrls.RETAILER_COMMENT_FORM_VELOCITY_PAGE, true), BRAND_ALL(FoUrls.BRAND_ALL_URL, FoUrls.BRAND_ALL_KEY, FoUrls.BRAND_ALL_VELOCITY_PAGE, true), BRAND_DETAILS(FoUrls.BRAND_DETAILS_URL, FoUrls.BRAND_DETAILS_KEY, FoUrls.BRAND_DETAILS_VELOCITY_PAGE, true), BRAND_LINE(FoUrls.BRAND_LINE_URL, FoUrls.BRAND_LINE_KEY, FoUrls.BRAND_LINE_VELOCITY_PAGE, true), CATEGORY_AS_AXE(FoUrls.CATEGORY_AS_AXE_URL, FoUrls.CATEGORY_AS_AXE_KEY, FoUrls.CATEGORY_AS_AXE_VELOCITY_PAGE, true), CATEGORY_AS_LINE(FoUrls.CATEGORY_AS_LINE_URL, FoUrls.CATEGORY_AS_LINE_KEY, FoUrls.CATEGORY_AS_LINE_VELOCITY_PAGE, true), TAG_AS_LINE(FoUrls.TAG_AS_LINE_URL, FoUrls.TAG_AS_LINE_KEY, FoUrls.TAG_AS_LINE_VELOCITY_PAGE, true), TAG_COLLECTION(FoUrls.TAG_COLLECTION_URL, FoUrls.TAG_COLLECTION_KEY, FoUrls.TAG_COLLECTION_VELOCITY_PAGE, true), CAT_TAG_COLLECTION(FoUrls.CAT_TAG_COLLECTION_URL, FoUrls.CAT_TAG_COLLECTION_KEY, FoUrls.CAT_TAG_COLLECTION_VELOCITY_PAGE, true), PRODUCT_DETAILS(FoUrls.PRODUCT_DETAILS_URL, FoUrls.PRODUCT_DETAILS_KEY, FoUrls.PRODUCT_DETAILS_VELOCITY_PAGE, true), PRODUCT_COMMENT(FoUrls.PRODUCT_COMMENT_URL, FoUrls.PRODUCT_COMMENT_KEY, FoUrls.PRODUCT_COMMENT_VELOCITY_PAGE, true), WISHLIST_ADD_PRODUCT(FoUrls.WISHLIST_ADD_PRODUCT_URL, FoUrls.WISHLIST_ADD_PRODUCT_KEY, FoUrls.WISHLIST_ADD_PRODUCT_VELOCITY_PAGE, true), WISHLIST_REMOVE_ITEM(FoUrls.WISHLIST_REMOVE_ITEM_URL, FoUrls.WISHLIST_REMOVE_ITEM_KEY, FoUrls.WISHLIST_REMOVE_ITEM_VELOCITY_PAGE, true), CART_DETAILS(FoUrls.CART_DETAILS_URL, FoUrls.CART_DETAILS_KEY, FoUrls.CART_DETAILS_VELOCITY_PAGE, true), CART_MULTIPLE_ADD_ITEM(FoUrls.CART_MULTIPLE_ADD_PRODUCT_URL, FoUrls.CART_MULTIPLE_ADD_PRODUCT_KEY, null, true), CART_ADD_ITEM(FoUrls.CART_ADD_PRODUCT_URL, FoUrls.CART_ADD_PRODUCT_KEY, null, true), CART_REMOVE_ITEM(FoUrls.CART_REMOVE_ITEM_URL, FoUrls.CART_REMOVE_ITEM_KEY, null, true), CART_AUTH(FoUrls.CART_AUTH_URL, FoUrls.CART_AUTH_KEY, FoUrls.LOGIN_VELOCITY_PAGE, true), CART_CREATE_ACCOUNT(FoUrls.CART_CREATE_ACCOUNT_URL, FoUrls.CART_CREATE_ACCOUNT_KEY, FoUrls.CUSTOMER_CREATE_ACCOUNT_VELOCITY_PAGE, true), CART_DELIVERY(FoUrls.CART_DELIVERY_URL, FoUrls.CART_DELIVERY_KEY, FoUrls.CART_DELIVERY_VELOCITY_PAGE, true), CART_ORDER_PAYMENT(FoUrls.CART_ORDER_PAYMENT_URL, FoUrls.CART_ORDER_PAYMENT_KEY, FoUrls.CART_ORDER_PAYMENT_VELOCITY_PAGE, true), CART_ORDER_CONFIRMATION(FoUrls.CART_ORDER_CONFIRMATION_URL, FoUrls.CART_ORDER_CONFIRMATION_KEY, FoUrls.CART_ORDER_CONFIRMATION_VELOCITY_PAGE, true), PRIVATE_SALE(FoUrls.PRIVATE_SALE_URL, FoUrls.PRIVATE_SALE_KEY, FoUrls.PRIVATE_SALE_VELOCITY_PAGE, true), NAVIGATOR_GEOLOCATION_AJAX(FoUrls.NAVIGATOR_GEOLOCATION_AJAX_URL, FoUrls.NAVIGATOR_GEOLOCATION_AJAX_KEY, null, false), ADD_TO_WISHLIST_AJAX(FoUrls.ADD_TO_WISHLIST_AJAX_URL, FoUrls.ADD_TO_WISHLIST_AJAX_KEY, null, false), GET_CART_AJAX(FoUrls.GET_CART_AJAX_URL, FoUrls.GET_CART_AJAX_KEY, null, false), ADD_TO_CART_AJAX(FoUrls.ADD_TO_CART_AJAX_URL, FoUrls.ADD_TO_CART_AJAX_KEY, null, false), ADD_TO_CART_FROM_STORE_AJAX(FoUrls.ADD_TO_CART_FROM_STORE_AJAX_URL, FoUrls.ADD_TO_CART_FROM_STORE_AJAX_KEY, null, false), UPDATE_CART_ITEM_AJAX(FoUrls.UPDATE_CART_ITEM_AJAX_URL, FoUrls.UPDATE_CART_ITEM_AJAX_KEY, null, false), DELETE_CART_ITEM_AJAX(FoUrls.DELETE_CART_ITEM_AJAX_URL, FoUrls.DELETE_CART_ITEM_AJAX_KEY, null, false), APPLY_PROMO_CODE_AJAX(FoUrls.APPLY_PROMO_CODE_AJAX_URL, FoUrls.APPLY_PROMO_CODE_AJAX_KEY, null, false), SET_SHIPPING_ADDRESS_AJAX(FoUrls.SET_SHIPPING_ADDRESS_AJAX_URL, FoUrls.SET_SHIPPING_ADDRESS_AJAX_KEY, null, false), SET_BILLING_ADDRESS_AJAX(FoUrls.SET_BILLING_ADDRESS_AJAX_URL, FoUrls.SET_BILLING_ADDRESS_AJAX_KEY, null, false), SET_DELIVERY_METHOD_AJAX(FoUrls.SET_DELIVERY_METHOD_AJAX_URL, FoUrls.SET_DELIVERY_METHOD_AJAX_KEY, null, false), ARTICLES(FoUrls.ARTICLES_URL, FoUrls.ARTICLES_KEY, FoUrls.ARTICLES_VELOCITY_PAGE, true), ARTICLE_CMS_CONTENT(FoUrls.ARTICLE_CMS_CONTENT_URL, FoUrls.ARTICLE_CMS_CONTENT_KEY, FoUrls.ARTICLE_CMS_CONTENT_VELOCITY_PAGE, true), PAGE_CMS_CONTENT(FoUrls.PAGE_CMS_CONTENT_URL, FoUrls.PAGE_CMS_CONTENT_KEY, FoUrls.PAGE_CMS_CONTENT_VELOCITY_PAGE, true), FORBIDDEN(FoUrls.FORBIDDEN_URL, FoUrls.FORBIDDEN_KEY, FoUrls.FORBIDDEN_VELOCITY_PAGE, true), FORGOTTEN_PASSWORD(FoUrls.FORGOTTEN_PASSWORD_URL, FoUrls.FORGOTTEN_PASSWORD_KEY, FoUrls.FORGOTTEN_PASSWORD_VELOCITY_PAGE, true), RESET_PASSWORD(FoUrls.RESET_PASSWORD_URL, FoUrls.RESET_PASSWORD_KEY, FoUrls.RESET_PASSWORD_VELOCITY_PAGE, true), CANCEL_RESET_PASSWORD(FoUrls.CANCEL_RESET_PASSWORD_URL, FoUrls.CANCEL_RESET_PASSWORD_KEY, FoUrls.CANCEL_RESET_PASSWORD_VELOCITY_PAGE, true), TIMEOUT(FoUrls.TIMEOUT_URL, FoUrls.TIMEOUT_KEY, FoUrls.TIMEOUT_VELOCITY_PAGE, true), CONTEXT(FoUrls.CONTEXT_URL, FoUrls.CONTEXT_KEY, FoUrls.CONTEXT_VELOCITY_PAGE, false); public static final String PREHOME_KEY = "prehome"; public static final String PREHOME_URL = "/**/prehome.html"; public static final String PREHOME_VELOCITY_PAGE = "prehome"; public static final String HOME_KEY = "home"; public static final String HOME_URL = "/**/home.html"; public static final String HOME_VELOCITY_PAGE = "home"; public static final String INDEX_URL = "/**/index.html"; public static final String OUR_COMPANY_KEY = "our-company"; public static final String OUR_COMPANY_URL = "/**/our-company.html"; public static final String OUR_COMPANY_VELOCITY_PAGE = "our-company/our-company"; public static final String FAQ_KEY = "faq"; public static final String FAQ_URL = "/**/faq.html"; public static final String FAQ_VELOCITY_PAGE = "faq/faq"; public static final String CLP_KEY = "clp"; public static final String CLP_URL = "/**/clp.html"; public static final String CLP_VELOCITY_PAGE = "clp/clp"; public static final String LEGAL_TERMS_KEY = "legal-terms"; public static final String LEGAL_TERMS_URL = "/**/legal-terms.html"; public static final String LEGAL_TERMS_VELOCITY_PAGE = "legal-terms/legal-terms"; public static final String CONDITIONS_OF_USE_KEY = "conditions-of-use"; public static final String CONDITIONS_OF_USE_URL = "/**/conditions-of-use.html"; public static final String CONDITIONS_OF_USE_VELOCITY_PAGE = "conditions/conditions-of-use"; public static final String CONDITIONS_OF_SALE_KEY = "conditions-of-sale"; public static final String CONDITIONS_OF_SALE_URL = "/**/conditions-of-sale.html"; public static final String CONDITIONS_OF_SALE_VELOCITY_PAGE = "conditions/conditions-of-sale"; public static final String FOLLOW_US_KEY = "follow-us"; public static final String FOLLOW_US_URL = "/**/follow-us.html"; public static final String FOLLOW_US_VELOCITY_PAGE = "follow-us/follow-us"; public static final String FOLLOW_US_SUCCESS_VELOCITY_PAGE = "follow-us/follow-us-success"; public static final String CONTACT_KEY = "contact"; public static final String CONTACT_URL = "/**/contact.html"; public static final String CONTACT_VELOCITY_PAGE = "contact/contact"; public static final String STORE_LOCATION_KEY = "store-location"; public static final String STORE_LOCATION_URL = "/**/store-location.html"; public static final String STORE_LOCATION_VELOCITY_PAGE = "store-location/store-location"; public static final String STORE_DETAILS_KEY = "store-details"; public static final String STORE_DETAILS_URL = "/**/store-{" + RequestConstants.URL_PATTERN_STORE_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String STORE_DETAILS_OLD_URL = "/**/store-details-{" + RequestConstants.URL_PATTERN_STORE_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String STORE_DETAILS_VELOCITY_PAGE = "retailer/store-details"; public static final String STORE_COMMENT_KEY = "store-comment"; public static final String STORE_COMMENT_URL = "/**/store-comment-{" + RequestConstants.URL_PATTERN_STORE_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String STORE_COMMENT_FORM_VELOCITY_PAGE = "store/retailer-comment"; public static final String STORE_VOTE_URL = "/**/store-vote-{" + RequestConstants.URL_PATTERN_STORE_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String STORE_CONTACT_KEY = "store-contact"; public static final String STORE_CONTACT_URL = "/**/store-contact-{" + RequestConstants.URL_PATTERN_STORE_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String STORE_CONTACT_FORM_VELOCITY_PAGE = "store/store-contact"; public static final String STORE_CONTACT_SUCCESS_VELOCITY_PAGE = "retailer/store-contact-succes"; public static final String NEWSLETTER_REGISTER_KEY = "newsletter-register"; public static final String NEWSLETTER_REGISTER_URL = "/**/newsletter-register.html"; public static final String NEWSLETTER_REGISTER_VELOCITY_PAGE = "newsletter/register-newsletter-success"; public static final String NEWSLETTER_UNREGISTER_KEY = "newsletter-unregister"; public static final String NEWSLETTER_UNREGISTER_URL = "/**/newsletter-unregister.html"; public static final String NEWSLETTER_UNREGISTER_VELOCITY_PAGE = "follow-us/unregister-newsletter-success"; public static final String CATALOG_SEARCH_KEY = "catalog-search"; public static final String CATALOG_SEARCH_URL = "/**/catalog-search.html"; public static final String CATALOG_SEARCH_VELOCITY_PAGE = "search/catalog-search-result"; public static final String STORE_SEARCH_KEY = "store-search"; public static final String STORE_SEARCH_URL = "/**/store-search.html"; public static final String STORE_SEARCH_VELOCITY_PAGE = "search/store-search-result"; public static final String LOGIN_KEY = "login"; public static final String LOGIN_URL = "/**/login.html"; public static final String LOGIN_VELOCITY_PAGE = "security/login"; public static final String LOGIN_CHECK_URL = "/**/login-check.html"; public static final String LOGOUT_KEY = "logout"; public static final String LOGOUT_URL = "/**/logout-session.html"; public static final String LOGOUT_VELOCITY_PAGE = "security/logout"; public static final String CHANGE_LANGUAGE_URL = "/**/change-language.html"; public static final String CHANGE_CONTEXT_URL = "/**/change-context.html"; public static final String PERSONAL_DETAILS_KEY = "personal-details"; public static final String PERSONAL_DETAILS_URL = "/**/personal-details.html"; public static final String PERSONAL_DETAILS_VELOCITY_PAGE = "customer/personal-details"; public static final String PERSONAL_EDIT_KEY = "personal-edit"; public static final String PERSONAL_EDIT_URL = "/**/personal-edit.html"; public static final String PERSONAL_EDIT_VELOCITY_PAGE = "customer/personal-edit"; public static final String PERSONAL_ORDER_LIST_KEY = "personal-order-list"; public static final String PERSONAL_ORDER_LIST_URL = "/**/personal-order-list.html"; public static final String PERSONAL_ORDER_LIST_VELOCITY_PAGE = "customer/personal-order-list"; public static final String PERSONAL_ORDER_DETAILS_KEY = "personal-order-details"; public static final String PERSONAL_ORDER_DETAILS_URL = "/**/personal-order-details.html"; public static final String PERSONAL_ORDER_DETAILS_VELOCITY_PAGE = "customer/personal-order-details"; public static final String PERSONAL_WISHLIST_KEY = "personal-wishlist"; public static final String PERSONAL_WISHLIST_URL = "/**/personal-wishlist.html"; public static final String PERSONAL_WISHLIST_VELOCITY_PAGE = "customer/personal-wishlist"; public static final String PERSONAL_PRODUCT_COMMENT_LIST_KEY = "personal-product-comment-list"; public static final String PERSONAL_PRODUCT_COMMENT_LIST_URL = "/**/personal-product-comment-list.html"; public static final String PERSONAL_PRODUCT_COMMENT_LIST_VELOCITY_PAGE = "customer/personal-product-comment-list"; public static final String PERSONAL_ADD_PRODUCT_COMMENT_LIST_KEY = "add-personal-product-comment"; public static final String PERSONAL_ADD_PRODUCT_COMMENT_LIST_URL = "/**/add-personal-product-comment.html"; public static final String PERSONAL_ADD_PRODUCT_COMMENT_LIST_VELOCITY_PAGE = ""; public static final String PERSONAL_REMOVE_PRODUCT_COMMENT_LIST_KEY = "remove-personal-product-comment"; public static final String PERSONAL_REMOVE_PRODUCT_COMMENT_LIST_URL = "/**/remove-personal-product-comment.html"; public static final String PERSONAL_REMOVE_PRODUCT_COMMENT_LIST_VELOCITY_PAGE = ""; public static final String PERSONAL_ADDRESS_LIST_KEY = "personal-address-list"; public static final String PERSONAL_ADDRESS_LIST_URL = "/**/personal-address-list.html"; public static final String PERSONAL_ADDRESS_LIST_VELOCITY_PAGE = "customer/personal-address-list"; public static final String PERSONAL_ADD_ADDRESS_KEY = "personal-add-address"; public static final String PERSONAL_ADD_ADDRESS_URL = "/**/personal-add-address.html"; public static final String PERSONAL_ADD_ADDRESS_VELOCITY_PAGE = "customer/personal-add-address"; public static final String PERSONAL_EDIT_ADDRESS_KEY = "personal-edit-address"; public static final String PERSONAL_EDIT_ADDRESS_URL = "/**/personal-edit-address.html"; public static final String PERSONAL_EDIT_ADDRESS_VELOCITY_PAGE = "customer/personal-edit-address"; public static final String PERSONAL_DELETE_ADDRESS_KEY = "personal-delete-address"; public static final String PERSONAL_DELETE_ADDRESS_URL = "/**/personal-delete-address.html"; public static final String PERSONAL_DELETE_ADDRESS_VELOCITY_PAGE = "customer/personal-delete-address"; public static final String CUSTOMER_DETAILS_KEY = "customer-details"; public static final String CUSTOMER_DETAILS_URL = "/**/customer-details.html"; public static final String CUSTOMER_DETAILS_VELOCITY_PAGE = "customer/customer-details"; public static final String CUSTOMER_CREATE_ACCOUNT_KEY = "customer-create-account"; public static final String CUSTOMER_CREATE_ACCOUNT_URL = "/**/customer-create-account.html"; public static final String CUSTOMER_CREATE_ACCOUNT_VELOCITY_PAGE = "customer/customer-create-account"; public static final String CUSTOMER_NEW_ACCOUNT_VALIDATION_KEY = "customer-new-account-validation"; public static final String CUSTOMER_NEW_ACCOUNT_VALIDATION_URL = "/**/customer-new-account-validation.html"; public static final String RETAILER_DETAILS_KEY = "retailer-details"; public static final String RETAILER_DETAILS_URL = "/**/retailer-details-{" + RequestConstants.URL_PATTERN_RETAILER_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String RETAILER_DETAILS_VELOCITY_PAGE = "retailer/retailer-details"; public static final String RETAILER_CREATE_KEY = "retailer-create"; public static final String RETAILER_CREATE_URL = "/**/retailer-create.html"; public static final String RETAILER_CREATE_VELOCITY_PAGE = "retailer/retailer-create"; public static final String RETAILER_CONTACT_KEY = "retailer-contact"; public static final String RETAILER_CONTACT_URL = "/**/retailer-contact-{" + RequestConstants.URL_PATTERN_RETAILER_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String RETAILER_CONTACT_FORM_VELOCITY_PAGE = "retailer/retailer-contact"; public static final String RETAILER_CONTACT_SUCCESS_VELOCITY_PAGE = "retailer/retailer-contact-succes"; public static final String RETAILER_COMMENT_KEY = "retailer-comment"; public static final String RETAILER_COMMENT_URL = "/**/retailer-comment-{" + RequestConstants.URL_PATTERN_RETAILER_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String RETAILER_COMMENT_FORM_VELOCITY_PAGE = "retailer/retailer-comment"; public static final String RETAILER_VOTE_URL = "/**/retailer-vote-{" + RequestConstants.URL_PATTERN_RETAILER_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String BRAND_ALL_KEY = "all-brands"; public static final String BRAND_ALL_URL = "/**/all-brands.html"; public static final String BRAND_ALL_VELOCITY_PAGE = "catalog/all-brands"; public static final String BRAND_DETAILS_KEY = "brand-details"; public static final String BRAND_DETAILS_URL = "/**/brand-{" + RequestConstants.URL_PATTERN_BRAND_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String BRAND_DETAILS_OLD_URL = "/**/brand-details-{" + RequestConstants.URL_PATTERN_BRAND_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String BRAND_DETAILS_VELOCITY_PAGE = "catalog/brand-details"; public static final String BRAND_LINE_KEY = "brand-line"; public static final String BRAND_LINE_URL = "/**/brand-line-{" + RequestConstants.URL_PATTERN_BRAND_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String BRAND_LINE_VELOCITY_PAGE = "catalog/brand-line"; public static final String BRAND_COMMENT_KEY = "brand-comment"; public static final String BRAND_COMMENT_URL = "/**/brand-comment-{" + RequestConstants.URL_PATTERN_BRAND_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String BRAND_COMMENT_VELOCITY_PAGE = "catalog/brand-comment"; public static final String BRAND_VOTE_URL = "/**/brand-vote-{" + RequestConstants.URL_PATTERN_BRAND_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String CATEGORY_AS_AXE_KEY = "axe"; public static final String CATEGORY_AS_AXE_URL = "/**/axe-{" + RequestConstants.URL_PATTERN_CATEGORY_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String CATEGORY_AS_AXE_VELOCITY_PAGE = "catalog/category-axe"; public static final String CATEGORY_AS_LINE_KEY = "product-line"; public static final String CATEGORY_AS_LINE_URL = "/**/line-{" + RequestConstants.URL_PATTERN_CATEGORY_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String CATEGORY_AS_LINE_VELOCITY_PAGE = "catalog/product-line"; public static final String TAG_AS_LINE_KEY = "tag-line"; public static final String TAG_AS_LINE_URL = "/**/tag-{" + RequestConstants.URL_PATTERN_TAG_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String TAG_AS_LINE_VELOCITY_PAGE = "catalog/tag-line"; public static final String TAG_COLLECTION_KEY = "collection"; public static final String TAG_COLLECTION_URL = "/**/collection-t-{" + RequestConstants.URL_PATTERN_TAG_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String TAG_COLLECTION_VELOCITY_PAGE = "catalog/collection"; public static final String CAT_TAG_COLLECTION_KEY = "collection-tag"; public static final String CAT_TAG_COLLECTION_URL = "/**/collection-c-{" + RequestConstants.URL_PATTERN_CATEGORY_CODE + ":[a-zA-Z0-9-]+}-t-{" + RequestConstants.URL_PATTERN_TAG_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String CAT_TAG_COLLECTION_VELOCITY_PAGE = "catalog/collection"; public static final String PRODUCT_DETAILS_KEY = "product-details"; public static final String PRODUCT_DETAILS_URL = "/**/product-{" + RequestConstants.URL_PATTERN_CATEGORY_CODE + ":[a-zA-Z0-9-]+}-pm-{" + RequestConstants.URL_PATTERN_PRODUCT_MARKETING_CODE + ":[a-zA-Z0-9-]+}-sku-{" + RequestConstants.URL_PATTERN_PRODUCT_SKU_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String PRODUCT_DETAILS_OLD_URL = "/**/product-details-{" + RequestConstants.URL_PATTERN_CATEGORY_CODE + ":[a-zA-Z0-9-]+}-pm-{" + RequestConstants.URL_PATTERN_PRODUCT_MARKETING_CODE + ":[a-zA-Z0-9-]+}-sku-{" + RequestConstants.URL_PATTERN_PRODUCT_SKU_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String PRODUCT_DETAILS_VELOCITY_PAGE = "catalog/product-details"; public static final String PRODUCT_COMMENT_KEY = "product-comment"; public static final String PRODUCT_COMMENT_URL = "/**/product-comment-{" + RequestConstants.URL_PATTERN_PRODUCT_MARKETING_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String PRODUCT_COMMENT_VELOCITY_PAGE = "product/product-comment"; public static final String PRODUCT_VOTE_URL = "/**/product-vote-{" + RequestConstants.URL_PATTERN_PRODUCT_MARKETING_CODE + ":[a-zA-Z0-9-]+}.html"; public static final String WISHLIST_ADD_PRODUCT_KEY = "add-to-wishlist"; public static final String WISHLIST_ADD_PRODUCT_URL = "/**/add-to-wishlist.html"; public static final String WISHLIST_ADD_PRODUCT_VELOCITY_PAGE = ""; public static final String WISHLIST_REMOVE_ITEM_KEY = "remove-from-wishlist"; public static final String WISHLIST_REMOVE_ITEM_URL = "/**/remove-from-wishlist.html"; public static final String WISHLIST_REMOVE_ITEM_VELOCITY_PAGE = ""; public static final String CART_DETAILS_KEY = "cart-details"; public static final String CART_DETAILS_URL = "/**/cart-details.html"; public static final String CART_DETAILS_VELOCITY_PAGE = "cart/cart-details"; public static final String CART_MULTIPLE_ADD_PRODUCT_KEY = "multiple-add-to-cart"; public static final String CART_MULTIPLE_ADD_PRODUCT_URL = "/**/multiple-add-to-cart.html"; public static final String CART_ADD_PRODUCT_KEY = "add-to-cart"; public static final String CART_ADD_PRODUCT_URL = "/**/add-to-cart.html"; public static final String CART_REMOVE_ITEM_KEY = "remove-from-cart"; public static final String CART_REMOVE_ITEM_URL = "/**/remove-from-cart.html"; public static final String CART_AUTH_KEY = "cart-auth"; public static final String CART_AUTH_URL = "/**/cart-auth.html"; public static final String CART_CREATE_ACCOUNT_KEY = "cart-create-account"; public static final String CART_CREATE_ACCOUNT_URL = "/**/cart-create-account.html"; public static final String CART_DELIVERY_KEY = "cart-delivery-order-information"; public static final String CART_DELIVERY_URL = "/**/cart-delivery-order-information.html"; public static final String CART_DELIVERY_VELOCITY_PAGE = "cart/cart-delivery-order-information"; public static final String CART_ORDER_PAYMENT_KEY = "cart-order-payment"; public static final String CART_ORDER_PAYMENT_URL = "/**/cart-order-payment.html"; public static final String CART_ORDER_PAYMENT_VELOCITY_PAGE = "cart/cart-order-payment"; public static final String CART_ORDER_CONFIRMATION_KEY = "cart-order-confirmation"; public static final String CART_ORDER_CONFIRMATION_URL = "/**/cart-order-confirmation.html"; public static final String CART_ORDER_CONFIRMATION_VELOCITY_PAGE = "cart/cart-order-confirmation"; public static final String PRIVATE_SALE_KEY = "private-sale-form"; public static final String PRIVATE_SALE_URL = "/**/private-sale.html"; public static final String PRIVATE_SALE_VELOCITY_PAGE = "private-sale/private-sale"; public static final String NAVIGATOR_GEOLOCATION_AJAX_KEY = "navigator-geolocation-ajax"; public static final String NAVIGATOR_GEOLOCATION_AJAX_URL = "/**/navigator-geolocation.ajax"; public static final String ADD_TO_WISHLIST_AJAX_KEY = "add-to-wishlist-ajax"; public static final String ADD_TO_WISHLIST_AJAX_URL = "/**/add-to-wishlist.ajax"; public static final String GET_CART_AJAX_KEY = "get-cart-ajax"; public static final String GET_CART_AJAX_URL = "/**/get-cart.ajax"; public static final String ADD_TO_CART_AJAX_KEY = "add-to-cart-ajax"; public static final String ADD_TO_CART_AJAX_URL = "/**/add-to-cart.ajax"; public static final String ADD_TO_CART_FROM_STORE_AJAX_KEY = "add-to-cart-from-store-ajax"; public static final String ADD_TO_CART_FROM_STORE_AJAX_URL = "/**/add-to-cart-from-store.ajax"; public static final String UPDATE_CART_ITEM_AJAX_KEY = "update-item-quantity-ajax"; public static final String UPDATE_CART_ITEM_AJAX_URL = "/**/update-item-quantity.ajax"; public static final String DELETE_CART_ITEM_AJAX_KEY = "delete-item-ajax"; public static final String DELETE_CART_ITEM_AJAX_URL = "/**/delete-item.ajax"; public static final String APPLY_PROMO_CODE_AJAX_KEY = "apply-promo-code-ajax"; public static final String APPLY_PROMO_CODE_AJAX_URL = "/**/apply-promo-code.ajax"; public static final String SET_SHIPPING_ADDRESS_AJAX_KEY = "set-shipping-address-ajax"; public static final String SET_SHIPPING_ADDRESS_AJAX_URL = "/**/set-shipping-address.ajax"; public static final String SET_BILLING_ADDRESS_AJAX_KEY = "set-billing-address-ajax"; public static final String SET_BILLING_ADDRESS_AJAX_URL = "/**/set-billing-address.ajax"; public static final String SET_DELIVERY_METHOD_AJAX_KEY = "set-delivery-method-ajax"; public static final String SET_DELIVERY_METHOD_AJAX_URL = "/**/set-delivery-method.ajax"; public static final String ARTICLES_KEY = "articles"; public static final String ARTICLES_URL = "/**/articles.html"; public static final String ARTICLES_VELOCITY_PAGE = "cms/article/articles"; public static final String ARTICLE_CMS_CONTENT_KEY = "article-cms-content"; public static final String ARTICLE_CMS_CONTENT_URL = "/**/article-{" + RequestConstants.URL_PATTERN_CMS_CONTENT_SEO_KEY + ":[a-zA-Z0-9-]+}.html"; public static final String ARTICLE_CMS_CONTENT_VELOCITY_PAGE = "cms/article/article-details"; public static final String PAGE_CMS_CONTENT_KEY = "page-cms-content"; public static final String PAGE_CMS_CONTENT_URL = "/**/page-{" + RequestConstants.URL_PATTERN_CMS_CONTENT_SEO_KEY + ":[a-zA-Z0-9-]+}.html"; public static final String PAGE_CMS_CONTENT_VELOCITY_PAGE = "cms/article/article-details"; public static final String FORBIDDEN_KEY = "forbidden"; public static final String FORBIDDEN_URL = "/**/forbidden.html"; public static final String FORBIDDEN_VELOCITY_PAGE = "security/forbidden"; public static final String TIMEOUT_KEY = "timeout"; public static final String TIMEOUT_URL = "/**/timeout.html"; public static final String TIMEOUT_VELOCITY_PAGE = "security/timeout"; public static final String FORGOTTEN_PASSWORD_KEY = "forgotten-password"; public static final String FORGOTTEN_PASSWORD_URL = "/**/forgotten-password.html"; public static final String FORGOTTEN_PASSWORD_VELOCITY_PAGE = "security/forgotten-password"; public static final String FORGOTTEN_PASSWORD_SUCCESS_VELOCITY_PAGE = "security/forgotten-password-success"; public static final String RESET_PASSWORD_KEY = "reset-password"; public static final String RESET_PASSWORD_URL = "/**/reset-password.html"; public static final String RESET_PASSWORD_VELOCITY_PAGE = "security/reset-password"; public static final String RESET_PASSWORD_SUCCESS_VELOCITY_PAGE = "security/reset-password-success"; public static final String CANCEL_RESET_PASSWORD_KEY = "cancel-reset-password"; public static final String CANCEL_RESET_PASSWORD_URL = "/**/cancel-reset-password.html"; public static final String CANCEL_RESET_PASSWORD_VELOCITY_PAGE = ""; public static final String SPRING_SECURITY_URL = "/j_spring_security_check"; public static final String CONTEXT_KEY = "context"; public static final String CONTEXT_URL = "/**/fo-context.config"; // WARN: *.config pattern must be without any web cache public static final String CONTEXT_VELOCITY_PAGE = "context/context"; private final String url; private final String key; // CODE IS USE TO GET THE SEO VALUE private final String velocityPage; private final boolean withPrefixSEO; FoUrls(String url, String key, String velocityPage, boolean withPrefixSEO) { this.url = url; this.key = key; this.velocityPage = velocityPage; this.withPrefixSEO = withPrefixSEO; } public String getUrl() { return url; } public String getUrlWithoutWildcard() { if (StringUtils.isNotEmpty(url)) { return url.replace("/**", ""); } return url; } public String getUrlPatternKey() { if (StringUtils.isNotEmpty(url)) { String patternKey = url; patternKey = patternKey.replace("/**", ""); patternKey = patternKey.replace(".html", ""); if(patternKey.contains("-${")){ patternKey = patternKey.replace(patternKey.substring(patternKey.indexOf("-${"), patternKey.indexOf("}") + 1), ""); } return patternKey; } return url; } public String getKey() { return this.key; } public String getMessageKey() { return this.key.replace("-", "_"); } public String getVelocityPage() { return this.velocityPage; } public boolean withPrefixSEO() { return withPrefixSEO; } public static FoUrls fromKey(String key) { for (FoUrls url : FoUrls.values()) { if (url.getKey() == key) return url; } return null; } }