Class URLHandlerImpl
java.lang.Object
org.broadleafcommerce.cms.url.domain.URLHandlerImpl
- All Implemented Interfaces:
Serializable,URLHandler,URLHandlerAdminPresentation,org.broadleafcommerce.common.admin.domain.AdminMainEntity,org.broadleafcommerce.common.copy.MultiTenantCloneable<URLHandler>,org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity,org.broadleafcommerce.common.web.Locatable
@Entity
public class URLHandlerImpl
extends Object
implements URLHandler, org.broadleafcommerce.common.web.Locatable, org.broadleafcommerce.common.admin.domain.AdminMainEntity, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity, URLHandlerAdminPresentation
- Author:
- priyeshpatel
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.broadleafcommerce.cms.url.domain.URLHandlerAdminPresentation
URLHandlerAdminPresentation.GroupName, URLHandlerAdminPresentation.GroupOrder, URLHandlerAdminPresentation.TabName, URLHandlerAdminPresentation.TabOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longprotected Stringprotected Booleanprotected Stringprotected StringFields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends URLHandler>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) booleangetId()inthashCode()protected booleanhasRegExCharacters(String location) In a preview environment,getLocation()attempts to navigate to the provided URL.booleanIndicates if the value returned bygetIncomingURL()is a regex expression rather than a concrete URI.voidvoidsetIncomingURL(String incomingURL) voidvoidsetRegexHandler(boolean regexHandler) Deprecated.voidsetRegexHandler(Boolean regexHandler) Indicates if the value set by the methodsetIncomingURL(String)should be treated as a regex expression rather than as a concrete URI.voidsetUrlRedirectType(URLRedirectType redirectType)
-
Field Details
-
id
-
incomingURL
-
newURL
-
urlRedirectType
-
isRegex
-
-
Constructor Details
-
URLHandlerImpl
public URLHandlerImpl()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceURLHandler
-
setId
- Specified by:
setIdin interfaceURLHandler
-
getIncomingURL
- Specified by:
getIncomingURLin interfaceURLHandler
-
setIncomingURL
- Specified by:
setIncomingURLin interfaceURLHandler
-
getNewURL
- Specified by:
getNewURLin interfaceURLHandler
-
setNewURL
- Specified by:
setNewURLin interfaceURLHandler
-
getUrlRedirectType
- Specified by:
getUrlRedirectTypein interfaceURLHandler
-
setUrlRedirectType
- Specified by:
setUrlRedirectTypein interfaceURLHandler
-
isRegexHandler
public boolean isRegexHandler()Description copied from interface:URLHandlerIndicates if the value returned bygetIncomingURL()is a regex expression rather than a concrete URI. Default is false.- Specified by:
isRegexHandlerin interfaceURLHandler- Returns:
-
setRegexHandler
Deprecated.- Specified by:
setRegexHandlerin interfaceURLHandler
-
setRegexHandler
Description copied from interface:URLHandlerIndicates if the value set by the methodsetIncomingURL(String)should be treated as a regex expression rather than as a concrete URI.- Specified by:
setRegexHandlerin interfaceURLHandler
-
getMainEntityName
- Specified by:
getMainEntityNamein interfaceorg.broadleafcommerce.common.admin.domain.AdminMainEntity
-
getLocation
- Specified by:
getLocationin interfaceorg.broadleafcommerce.common.web.Locatable
-
hasRegExCharacters
In a preview environment,getLocation()attempts to navigate to the provided URL. If the URL contains a Regular Expression, then we can't navigate to it.- Parameters:
location-- Returns:
-
createOrRetrieveCopyInstance
public <G extends URLHandler> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<URLHandler>- Throws:
CloneNotSupportedException
-
equals
-
hashCode
public int hashCode()
-