Class FileApplicationType
java.lang.Object
org.broadleafcommerce.common.file.service.type.FileApplicationType
- All Implemented Interfaces:
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FileApplicationTypestatic final FileApplicationTypestatic final FileApplicationTypestatic final FileApplicationType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic FileApplicationTypegetInstance(String type) getType()inthashCode()protected void
-
Field Details
-
ALL
-
IMAGE
-
STATIC
-
SITE_MAP
-
-
Constructor Details
-
FileApplicationType
public FileApplicationType() -
FileApplicationType
-
-
Method Details
-
getInstance
-
getType
- Specified by:
getTypein interfaceBroadleafEnumerationType
-
setType
-
getFriendlyType
- Specified by:
getFriendlyTypein interfaceBroadleafEnumerationType
-
hashCode
public int hashCode() -
equals
-