org.broadleafcommerce.openadmin.server.service.type
Class ContextType

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.service.type.ContextType
All Implemented Interfaces:
Serializable, BroadleafEnumerationType

public class ContextType
extends Object
implements Serializable, BroadleafEnumerationType

An extensible enumeration for a Security Context Type.

Author:
elbertbautista
See Also:
AdminSecurityContext, Serialized Form

Field Summary
static ContextType CATALOG
           
static ContextType GLOBAL
           
static ContextType SITE
           
static ContextType TEMPLATE
           
 
Constructor Summary
ContextType()
           
ContextType(String type, String friendlyType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFriendlyType()
           
static ContextType 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

GLOBAL

public static final ContextType GLOBAL

SITE

public static final ContextType SITE

CATALOG

public static final ContextType CATALOG

TEMPLATE

public static final ContextType TEMPLATE
Constructor Detail

ContextType

public ContextType()

ContextType

public ContextType(String type,
                   String friendlyType)
Method Detail

getInstance

public static ContextType 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.