org.broadleafcommerce.common.site.service.type
Class SiteResolutionType
java.lang.Object
org.broadleafcommerce.common.site.service.type.SiteResolutionType
- All Implemented Interfaces:
- Serializable, BroadleafEnumerationType
public class SiteResolutionType
- extends Object
- implements Serializable, BroadleafEnumerationType
An extendible enumeration of order status types.
- DOMAIN - Resolve a site based on the whole domain (e.g. request.getServerName())
- DOMAIN_PREFIX - Resolve a site based on the first word in the domain.
For example, if the URL you wanted to resolve was
http://mysite.mycompany.com.
The #getSiteIdentifierValue() should be set as follows:
to use DOMAIN resolution, set to "mysite.mycompany.com"
to use DOMAIN_PREFIX resolution, set to "mysite"
- Author:
- jfischer
- See Also:
- Serialized Form
DOMAIN
public static final SiteResolutionType DOMAIN
DOMAIN_PREFIX
public static final SiteResolutionType DOMAIN_PREFIX
SiteResolutionType
public SiteResolutionType()
SiteResolutionType
public SiteResolutionType(String type,
String friendlyType)
getInstance
public static SiteResolutionType getInstance(String type)
getType
public String getType()
- Specified by:
getType in interface BroadleafEnumerationType
getFriendlyType
public String getFriendlyType()
- Specified by:
getFriendlyType in interface BroadleafEnumerationType
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2013. All Rights Reserved.