org.broadleafcommerce.cms.field.type
Class StorageType

java.lang.Object
  extended by org.broadleafcommerce.cms.field.type.StorageType
All Implemented Interfaces:
Serializable

public class StorageType
extends Object
implements Serializable

Used by StaticAssets to communicate where the asset is stored. Broadleaf supports storing images on the fileSystem or on in the database.

Author:
bpolster
See Also:
Serialized Form

Field Summary
static StorageType DATABASE
           
static StorageType FILESYSTEM
           
 
Constructor Summary
StorageType()
           
StorageType(String type, String friendlyType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFriendlyType()
           
static StorageType 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

DATABASE

public static final StorageType DATABASE

FILESYSTEM

public static final StorageType FILESYSTEM
Constructor Detail

StorageType

public StorageType()

StorageType

public StorageType(String type,
                   String friendlyType)
Method Detail

getInstance

public static StorageType getInstance(String type)

getType

public String getType()

getFriendlyType

public String getFriendlyType()

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.