org.broadleafcommerce.cms.file.domain
Class StaticAssetImpl

java.lang.Object
  extended by org.broadleafcommerce.cms.file.domain.StaticAssetImpl
All Implemented Interfaces:
Serializable, StaticAsset, AdminMainEntity
Direct Known Subclasses:
ImageStaticAssetImpl

@Entity
public class StaticAssetImpl
extends Object
implements StaticAsset, AdminMainEntity

Created by bpolster.

See Also:
Serialized Form

Nested Class Summary
static class StaticAssetImpl.Presentation
           
 
Field Summary
protected  String altText
           
protected  Boolean archivedFlag
           
protected  AdminAuditable auditable
           
protected  Map<String,StaticAssetDescription> contentMessageValues
           
protected  Boolean deletedFlag
           
protected  String fileExtension
           
protected  Long fileSize
           
protected  String fullUrl
           
protected  Long id
           
protected  Boolean lockedFlag
           
protected  String mimeType
           
protected  String name
           
protected  Long originalAssetId
           
protected  SandBox originalSandBox
           
protected  SandBox sandbox
           
protected  Site site
           
protected  String storageType
           
protected  String title
           
 
Fields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY
 
Constructor Summary
StaticAssetImpl()
           
 
Method Summary
 StaticAsset cloneEntity()
           
 String getAltText()
          Returns the altText of this asset.
 Boolean getArchivedFlag()
           
 AdminAuditable getAuditable()
           
 Map<String,StaticAssetDescription> getContentMessageValues()
           
 Boolean getDeletedFlag()
           
 String getFileExtension()
          Returns the file extension of the asset.
 Long getFileSize()
          Filesize of the asset.
 String getFullUrl()
          URL used to retrieve this asset.
 Long getId()
          Returns the id of the static asset.
 Boolean getLockedFlag()
           
 String getMainEntityName()
           
 String getMimeType()
          Returns the mimeType of the asset.
 String getName()
          The name of the static asset.
 Long getOriginalAssetId()
           
 SandBox getOriginalSandBox()
           
 SandBox getSandbox()
           
 Site getSite()
           
 StorageType getStorageType()
          Returns how the underlying asset is stored.
 String getTitle()
          Returns the title of this asset.
 void setAltText(String altText)
          Set the altText of the static asset.
 void setArchivedFlag(Boolean archivedFlag)
           
 void setAuditable(AdminAuditable auditable)
           
 void setContentMessageValues(Map<String,StaticAssetDescription> contentMessageValues)
           
 void setDeletedFlag(Boolean deletedFlag)
           
 void setFileExtension(String fileExtension)
          Sets the fileExtension of the asset.
 void setFileSize(Long fileSize)
          Sets the filesize of the asset
 void setFullUrl(String fullUrl)
          Sets the URL for the asset
 void setId(Long id)
          Sets the id of the static asset.
 void setLockedFlag(Boolean lockedFlag)
           
 void setMimeType(String mimeType)
          Sets the mimeType of the asset.
 void setName(String name)
          Sets the name of the static asset.
 void setOriginalAssetId(Long originalAssetId)
           
 void setOriginalSandBox(SandBox originalSandBox)
           
 void setSandbox(SandBox sandbox)
           
 void setSite(Site site)
           
 void setStorageType(StorageType storageType)
          Returns how the asset was stored in the backend (e.g.
 void setTitle(String title)
          Set the title of the static asset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

auditable

protected AdminAuditable auditable

name

protected String name

site

protected Site site

fullUrl

protected String fullUrl

title

protected String title

altText

protected String altText

mimeType

protected String mimeType

fileSize

protected Long fileSize

fileExtension

protected String fileExtension

contentMessageValues

protected Map<String,StaticAssetDescription> contentMessageValues

sandbox

protected SandBox sandbox

originalSandBox

protected SandBox originalSandBox

archivedFlag

protected Boolean archivedFlag

deletedFlag

protected Boolean deletedFlag

lockedFlag

protected Boolean lockedFlag

originalAssetId

protected Long originalAssetId

storageType

protected String storageType
Constructor Detail

StaticAssetImpl

public StaticAssetImpl()
Method Detail

getFullUrl

public String getFullUrl()
Description copied from interface: StaticAsset
URL used to retrieve this asset.

Specified by:
getFullUrl in interface StaticAsset
Returns:

setFullUrl

public void setFullUrl(String fullUrl)
Description copied from interface: StaticAsset
Sets the URL for the asset

Specified by:
setFullUrl in interface StaticAsset

getTitle

public String getTitle()
Description copied from interface: StaticAsset
Returns the title of this asset.

Specified by:
getTitle in interface StaticAsset
Returns:

setTitle

public void setTitle(String title)
Description copied from interface: StaticAsset
Set the title of the static asset.

Specified by:
setTitle in interface StaticAsset

getAltText

public String getAltText()
Description copied from interface: StaticAsset
Returns the altText of this asset.

Specified by:
getAltText in interface StaticAsset
Returns:

setAltText

public void setAltText(String altText)
Description copied from interface: StaticAsset
Set the altText of the static asset.

Specified by:
setAltText in interface StaticAsset

getFileSize

public Long getFileSize()
Description copied from interface: StaticAsset
Filesize of the asset.

Specified by:
getFileSize in interface StaticAsset
Returns:

setFileSize

public void setFileSize(Long fileSize)
Description copied from interface: StaticAsset
Sets the filesize of the asset

Specified by:
setFileSize in interface StaticAsset

getContentMessageValues

public Map<String,StaticAssetDescription> getContentMessageValues()
Specified by:
getContentMessageValues in interface StaticAsset
Returns:

setContentMessageValues

public void setContentMessageValues(Map<String,StaticAssetDescription> contentMessageValues)
Specified by:
setContentMessageValues in interface StaticAsset

getArchivedFlag

public Boolean getArchivedFlag()
Specified by:
getArchivedFlag in interface StaticAsset

setArchivedFlag

public void setArchivedFlag(Boolean archivedFlag)
Specified by:
setArchivedFlag in interface StaticAsset

getOriginalAssetId

public Long getOriginalAssetId()
Specified by:
getOriginalAssetId in interface StaticAsset

setOriginalAssetId

public void setOriginalAssetId(Long originalAssetId)
Specified by:
setOriginalAssetId in interface StaticAsset

getSandbox

public SandBox getSandbox()
Specified by:
getSandbox in interface StaticAsset

setSandbox

public void setSandbox(SandBox sandbox)
Specified by:
setSandbox in interface StaticAsset

getMimeType

public String getMimeType()
Description copied from interface: StaticAsset
Returns the mimeType of the asset.

Specified by:
getMimeType in interface StaticAsset
Returns:

setMimeType

public void setMimeType(String mimeType)
Description copied from interface: StaticAsset
Sets the mimeType of the asset.

Specified by:
setMimeType in interface StaticAsset

getFileExtension

public String getFileExtension()
Description copied from interface: StaticAsset
Returns the file extension of the asset.

Specified by:
getFileExtension in interface StaticAsset
Returns:

setFileExtension

public void setFileExtension(String fileExtension)
Description copied from interface: StaticAsset
Sets the fileExtension of the asset.

Specified by:
setFileExtension in interface StaticAsset

getOriginalSandBox

public SandBox getOriginalSandBox()
Specified by:
getOriginalSandBox in interface StaticAsset

setOriginalSandBox

public void setOriginalSandBox(SandBox originalSandBox)
Specified by:
setOriginalSandBox in interface StaticAsset

getAuditable

public AdminAuditable getAuditable()
Specified by:
getAuditable in interface StaticAsset

setAuditable

public void setAuditable(AdminAuditable auditable)
Specified by:
setAuditable in interface StaticAsset

getDeletedFlag

public Boolean getDeletedFlag()
Specified by:
getDeletedFlag in interface StaticAsset

setDeletedFlag

public void setDeletedFlag(Boolean deletedFlag)
Specified by:
setDeletedFlag in interface StaticAsset

getId

public Long getId()
Description copied from interface: StaticAsset
Returns the id of the static asset.

Specified by:
getId in interface StaticAsset
Returns:

setId

public void setId(Long id)
Description copied from interface: StaticAsset
Sets the id of the static asset.

Specified by:
setId in interface StaticAsset

getLockedFlag

public Boolean getLockedFlag()
Specified by:
getLockedFlag in interface StaticAsset

setLockedFlag

public void setLockedFlag(Boolean lockedFlag)
Specified by:
setLockedFlag in interface StaticAsset

getName

public String getName()
Description copied from interface: StaticAsset
The name of the static asset.

Specified by:
getName in interface StaticAsset
Returns:

setName

public void setName(String name)
Description copied from interface: StaticAsset
Sets the name of the static asset. Used primarily for

Specified by:
setName in interface StaticAsset

getSite

public Site getSite()
Specified by:
getSite in interface StaticAsset
Returns:

setSite

public void setSite(Site site)
Specified by:
setSite in interface StaticAsset

cloneEntity

public StaticAsset cloneEntity()
Specified by:
cloneEntity in interface StaticAsset

getStorageType

public StorageType getStorageType()
Description copied from interface: StaticAsset
Returns how the underlying asset is stored. Typically on the FileSystem or the Database. If null, this method returns StorageType.DATABASE for backwards compatibility.

Specified by:
getStorageType in interface StaticAsset
Returns:
See Also:
StaticAssetService}

setStorageType

public void setStorageType(StorageType storageType)
Description copied from interface: StaticAsset
Returns how the asset was stored in the backend (e.g. DATABASE or FILESYSTEM)

Specified by:
setStorageType in interface StaticAsset

getMainEntityName

public String getMainEntityName()
Specified by:
getMainEntityName in interface AdminMainEntity


Copyright © 2013. All Rights Reserved.