org.broadleafcommerce.common.file.service.type
Class FileApplicationType

java.lang.Object
  extended by org.broadleafcommerce.common.file.service.type.FileApplicationType
All Implemented Interfaces:
Serializable, BroadleafEnumerationType

public class FileApplicationType
extends Object
implements Serializable, BroadleafEnumerationType

Any module within the BLC framework that needs to store and retrieve files from a remote storage such as Rackspace CloudFiles or AmazonS3 should declare an application file type. Many (or perhaps even most) implementations will just configure a provider for ALL. Implementations that deploy to a single file system may use the default FileSystemProvider and not configure anything. This enumeration is intended to provide a deployment team with the ability to make granular decisions on how files are accessed and stored. For example, Images might be stored on S3 whereas SiteMap creation might be stored on CloudFiles. These are just arbitrary examples, but the intent is to give an implementation the ability to alter the storage paradigm based on cost/reliability/performance needs that might vary by file type.

Author:
bpolster
See Also:
Serialized Form

Field Summary
static FileApplicationType ALL
           
static FileApplicationType IMAGE
           
static FileApplicationType SITE_MAP
           
static FileApplicationType STATIC
           
 
Constructor Summary
FileApplicationType()
           
FileApplicationType(String type, String friendlyType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFriendlyType()
           
static FileApplicationType 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

ALL

public static final FileApplicationType ALL

IMAGE

public static final FileApplicationType IMAGE

STATIC

public static final FileApplicationType STATIC

SITE_MAP

public static final FileApplicationType SITE_MAP
Constructor Detail

FileApplicationType

public FileApplicationType()

FileApplicationType

public FileApplicationType(String type,
                           String friendlyType)
Method Detail

getInstance

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