com.fatwire.cs.ui.model.bo.asset
Interface Asset


public interface Asset

Wrapper interface to encapsulate different properties of an asset.


Nested Class Summary
static class Asset.AttributeType
          Define attribute types used in Content Server.
 
Method Summary
 AssetTypeDef getAssetDef()
          Gets asset definition.
 java.lang.Long getAssetDefintionId()
          Gets the id of this asset definition.
 java.lang.String getAssetDefintionTypeName()
          Gets asset definition type name.
 AssetId getAssetId()
          Gets asset id.
 java.util.Map<java.lang.String,java.lang.String> getAssetIdNameMap()
          Gets asset id name map.
 int getAttributeDataIndex(java.lang.String attrName, boolean metaAttribute)
           
 java.util.Map<java.lang.String,AttributeEditor> getAttributeEditor()
          Gets attribute editor map.
 AttributeEditor getAttributeEditor(java.lang.String attributeName, AttributeTypeEnum type, boolean isMetaAttribute)
          Gets attribute Editor.
 java.util.Map<java.lang.String,java.lang.Object> getAuxiliaryDataMap(java.lang.String attributeName, boolean isMetaAttribute)
          Gets attribute auxiliary data map.
 java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getAuxiliaryDataMaps()
          Gets auxiliary data map.
 AssetData getData()
          Gets asset data.
 java.lang.String getLocale()
          Gets locale.
 java.lang.String getLocaleDesc()
          Gets locale description.
 AttributeEditor getParentAttributeEditor(java.lang.String parentName)
          Gets asset parent attribute editor.
 java.util.Map<java.lang.String,PreSaveProcess> getPreSaveProcess()
          Gets all pre save processes.
 PreSaveProcess getPreSaveProcess(java.lang.String attributeName, boolean isMetaAttribute)
          Gets pre save process.
 java.util.List<RatingData> getRatingData()
          Gets rating data.
 java.util.List<RatingDef> getRatingDefinition()
          Gets rating definition.
 java.util.List<AssetId> getReferencedbyAssets()
          Gets referenced by assets.
 java.util.List<Version> getVersions()
          Gets asset versions.
 Workflow getWorkflow()
          Gets workflow.
 boolean isFlex()
          Indicates whether this asset is a flex asset.
 void setAssetDef(AssetTypeDef assetDef)
          Sets asset definition.
 void setAssetDefintionId(long assetDefintionId)
          Sets asset definition id.
 void setAssetDefintionTypeName(java.lang.String assetDefintionTypeName)
          Sets asset definition type name.
 void setAssetId(AssetId assetId)
          Sets asset id.
 void setAttributeEditor(AttributeDef attributeDef, AttributeEditor editor)
          Sets attribute editor.
 void setAuxiliaryDataMap(AttributeDef attributeDef, java.util.Map<java.lang.String,java.lang.Object> map)
          Sets auxiliary data map.
 void setAuxiliaryDataMap(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> map)
          Sets asset auxiliary data map.
 void setData(AssetData data)
          Sets asset data.
 void setPreSaveProcess(java.lang.String attributeName, boolean isMetaAttribute, PreSaveProcess preSaveProcess)
          Sets pre save process.
 void setRatingData(java.util.List<RatingData> ratingData)
          Sets rating data.
 void setRatingDefinition(java.util.List<RatingDef> ratingDefinition)
          Sets rating definition.
 void setReferencedbyAssets(java.util.List<AssetId> referencedbyAssets)
          Sets referenced by assets.
 void setVersions(java.util.List<Version> versions)
          Sets versions.
 void setWorkflow(Workflow workflow)
          Sets workflow.
 

Method Detail

setData

void setData(AssetData data)
Sets asset data.

Parameters:
data - New Asset data.

getAssetId

AssetId getAssetId()
Gets asset id.

Returns:
asset id object.

setAssetId

void setAssetId(AssetId assetId)
Sets asset id.

Parameters:
assetId - new asset id.

getData

AssetData getData()
Gets asset data.

Returns:
asset data object

setAssetDef

void setAssetDef(AssetTypeDef assetDef)
Sets asset definition.

Parameters:
assetDef - new asset definition.

getAssetDef

AssetTypeDef getAssetDef()
Gets asset definition.

Returns:
asset definition object.

setAssetDefintionId

void setAssetDefintionId(long assetDefintionId)
Sets asset definition id.

Parameters:
assetDefintionId - New asset definition id.

isFlex

boolean isFlex()
Indicates whether this asset is a flex asset.

Returns:
true if this asset is flex; false otherwise.

getAssetDefintionId

java.lang.Long getAssetDefintionId()
Gets the id of this asset definition.

Returns:
this asset definition id.

setAssetDefintionTypeName

void setAssetDefintionTypeName(java.lang.String assetDefintionTypeName)
Sets asset definition type name.

Parameters:
assetDefintionTypeName - New asset definition type name.

getAssetDefintionTypeName

java.lang.String getAssetDefintionTypeName()
Gets asset definition type name.

Returns:
asset definition type name.

getAttributeEditor

AttributeEditor getAttributeEditor(java.lang.String attributeName,
                                   AttributeTypeEnum type,
                                   boolean isMetaAttribute)
Gets attribute Editor.

Parameters:
attributeName - - attribute name.
type - - attribute type.
isMetaAttribute - - indicate if the attribute is meta attribute or not.
Returns:
attribute editor based on attribute name, type, and meta flag value.

getAttributeEditor

java.util.Map<java.lang.String,AttributeEditor> getAttributeEditor()
Gets attribute editor map.

Returns:
attribute editor map value for this asset.

getParentAttributeEditor

AttributeEditor getParentAttributeEditor(java.lang.String parentName)
Gets asset parent attribute editor.

Parameters:
parentName - - asset parent name.
Returns:
attribute editor identified by asset parent name.

setAttributeEditor

void setAttributeEditor(AttributeDef attributeDef,
                        AttributeEditor editor)
Sets attribute editor.

Parameters:
attributeDef - - attribute definition.
editor - - new attribute editor.

getAuxiliaryDataMaps

java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getAuxiliaryDataMaps()
Gets auxiliary data map.

Returns:
map contains asset auxiliary data map.

getAssetIdNameMap

java.util.Map<java.lang.String,java.lang.String> getAssetIdNameMap()
Gets asset id name map.

Returns:
map contains asset id and name pairs.

setAuxiliaryDataMap

void setAuxiliaryDataMap(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> map)
Sets asset auxiliary data map.

Parameters:
map - - new auxiliary data map.

getAuxiliaryDataMap

java.util.Map<java.lang.String,java.lang.Object> getAuxiliaryDataMap(java.lang.String attributeName,
                                                                     boolean isMetaAttribute)
Gets attribute auxiliary data map.

Parameters:
attributeName - - attribute name.
isMetaAttribute - - indicate if this attribute is meta attribute or not.
Returns:
map containing attribute auxiliary data info.

setAuxiliaryDataMap

void setAuxiliaryDataMap(AttributeDef attributeDef,
                         java.util.Map<java.lang.String,java.lang.Object> map)
Sets auxiliary data map.

Parameters:
attributeDef - - attribute definition.
map - - map containing attribute auxiliary data info.

getPreSaveProcess

java.util.Map<java.lang.String,PreSaveProcess> getPreSaveProcess()
Gets all pre save processes.

Returns:
map containing all pre save processes.

getPreSaveProcess

PreSaveProcess getPreSaveProcess(java.lang.String attributeName,
                                 boolean isMetaAttribute)
Gets pre save process.

Parameters:
attributeName - - attribute name.
isMetaAttribute - - indicates whether this attribute is meta attribute or not.
Returns:
pre save process indicated by this attribute.

setPreSaveProcess

void setPreSaveProcess(java.lang.String attributeName,
                       boolean isMetaAttribute,
                       PreSaveProcess preSaveProcess)
Sets pre save process.

Parameters:
attributeName - - attribute name.
isMetaAttribute - - indicates whether this attribute is meta attribute or not.
preSaveProcess - - new pre save process.

getRatingData

java.util.List<RatingData> getRatingData()
Gets rating data.

Returns:
list containing asset rating data.

setRatingData

void setRatingData(java.util.List<RatingData> ratingData)
Sets rating data.

Parameters:
ratingData - - new rating data list.

getRatingDefinition

java.util.List<RatingDef> getRatingDefinition()
Gets rating definition.

Returns:
list containing asset rating definition.

setRatingDefinition

void setRatingDefinition(java.util.List<RatingDef> ratingDefinition)
Sets rating definition.

Parameters:
ratingDefinition - - new rating defintion list.

getReferencedbyAssets

java.util.List<AssetId> getReferencedbyAssets()
Gets referenced by assets.

Returns:
asset id list referenced by this asset.

setReferencedbyAssets

void setReferencedbyAssets(java.util.List<AssetId> referencedbyAssets)
Sets referenced by assets.

Parameters:
referencedbyAssets - - list containing asset ids referenced by this asset.

getAttributeDataIndex

int getAttributeDataIndex(java.lang.String attrName,
                          boolean metaAttribute)
Parameters:
attrName -
metaAttribute -
Returns:

getWorkflow

Workflow getWorkflow()
Gets workflow.

Returns:
workflow inside which this asset is.

setWorkflow

void setWorkflow(Workflow workflow)
Sets workflow.

Parameters:
workflow - - workflow this asset is put in.

setVersions

void setVersions(java.util.List<Version> versions)
Sets versions.

Parameters:
versions - - new asset version list.

getVersions

java.util.List<Version> getVersions()
Gets asset versions.

Returns:
list containing asset versions.

getLocale

java.lang.String getLocale()
Gets locale.

Returns:
locale value.

getLocaleDesc

java.lang.String getLocaleDesc()
Gets locale description.

Returns:
locale description.


Copyright (c) 2003 - 2011 FatWire Corporation All Rights Reserved.