org.broadleafcommerce.common.site.service.type
Class SiteResolutionType

java.lang.Object
  extended by 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.

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

Field Summary
static SiteResolutionType DOMAIN
           
static SiteResolutionType DOMAIN_PREFIX
           
 
Constructor Summary
SiteResolutionType()
           
SiteResolutionType(String type, String friendlyType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFriendlyType()
           
static SiteResolutionType getInstance(String type)
           
 String getType()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOMAIN

public static final SiteResolutionType DOMAIN

DOMAIN_PREFIX

public static final SiteResolutionType DOMAIN_PREFIX
Constructor Detail

SiteResolutionType

public SiteResolutionType()

SiteResolutionType

public SiteResolutionType(String type,
                          String friendlyType)
Method Detail

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.