Skip navigation links


com.fatwire.services.beans.asset
Class AssetBean

java.lang.Object
  extended by com.fatwire.services.beans.BaseBean
      extended by com.fatwire.services.beans.asset.AssetBean

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DimensionBean, PageBean, SlotBean, TemplateBean

public class AssetBean
extends BaseBean

The AssetBean is the value object for asset model related servcies. It represents an asset and can hold the following information:

The type returned by AssetBean.getType() should match the string returned by the AssetId.getType() method.

See Also:
AssetId, TypeBean, Serialized Form

Nested Class Summary
static class AssetBean.Status
           Enumerated values for asset status.

 

Field Summary
protected  java.util.List<AttributeBean> attributes
          List of attributes
protected  java.lang.String description
          Description of the asset used typically in the UI context.
protected  AssetId id
          Unique identifier for this asset
protected  java.lang.String name
          Name of this asset, a unique value within the same type of assets.
protected  TypeBean type
          Type of this asset.

 

Constructor Summary
AssetBean()
           

 

Method Summary
 java.util.List<AttributeBean> getAttributes()
          Returns the list of attributes for this asset.
 java.lang.String getDescription()
          Returns the description of this asset.
 AssetId getId()
          Returns the identifier for this asset.
 java.lang.String getName()
          Returns the name of this asset.
 TypeBean getType()
          Gets the type of this asset.
 void setDescription(java.lang.String description)
          Sets the description for this asset.
 void setId(AssetId id)
          Sets the identifier for this asset.
 void setName(java.lang.String name)
          Sets the name for this asset.
 void setType(TypeBean type)
          Sets the type for this asset.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

id

protected AssetId id
Unique identifier for this asset

name

protected java.lang.String name
Name of this asset, a unique value within the same type of assets.

description

protected java.lang.String description
Description of the asset used typically in the UI context.

type

protected TypeBean type
Type of this asset.

attributes

protected final java.util.List<AttributeBean> attributes
List of attributes

Constructor Detail

AssetBean

public AssetBean()

Method Detail

getId

public AssetId getId()
Returns the identifier for this asset.
Returns:
the id for this asset.

setId

public void setId(AssetId id)
Sets the identifier for this asset.
Parameters:
id - the id to set for this asset.

getName

public java.lang.String getName()
Returns the name of this asset.
Returns:
the name of this asset.

setName

public void setName(java.lang.String name)
Sets the name for this asset.
Parameters:
name - the name to set for this asset.

getDescription

public java.lang.String getDescription()
Returns the description of this asset.
Returns:
the description of this asset.

setDescription

public void setDescription(java.lang.String description)
Sets the description for this asset.
Parameters:
description - the description to set for this asset.

getType

public TypeBean getType()
Gets the type of this asset.
Returns:
the type of this asset.

setType

public void setType(TypeBean type)
Sets the type for this asset.
Parameters:
type - the type to set for this asset.

getAttributes

public java.util.List<AttributeBean> getAttributes()
Returns the list of attributes for this asset.
Returns:
list of attributes.

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.