|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fatwire.assetapi.data.AssetDataImpl
public class AssetDataImpl
AssetData
interface implementation class
Constructor Summary | |
---|---|
protected |
AssetDataImpl(AssetData copy)
|
|
AssetDataImpl(AssetId id)
Create an AssetData object with asset id |
|
AssetDataImpl(AssetTypeDef assettype,
AssetId id)
Create an AssetData object with AssetTypeDef and asset id |
Method Summary | |
---|---|
void |
addAssociation(java.lang.String associationName,
java.util.List<AssetId> assets)
Adds an associations by a given name |
void |
addAttributeData(AttributeData data)
Adds an attribute data. |
AssetId |
getAssetId()
Returns unique identification of the asset instance AssetId |
AssetTypeDef |
getAssetTypeDef()
Returns AssetTypeDef this instance is based on. |
java.util.List<AssetId> |
getAssociatedAssets(java.lang.String name)
this method is lazy loading associated assets |
java.lang.Iterable<java.lang.String> |
getAssociationNames()
retreive the list of the association names that this asset contains data for |
java.util.List<AttributeData> |
getAttributeData()
Returns a list of all attribute data associated with this instance of asset |
AttributeData |
getAttributeData(java.lang.String attributeName)
Returns data associated with a given attribute. |
java.util.List<java.lang.String> |
getAttributeNames()
Returns List of attribute names contained in this instance of AssetData. |
java.util.List<AssetId> |
getParents()
Returns Asset identifiers of parent assets, if any. |
void |
removeAttributeData(java.lang.String attributeName)
Removes an attribute data from collection |
void |
setAttributeData(java.util.List<AttributeData> data)
Sets data for this instance of AssetData |
void |
setParents(java.util.List<AssetId> id)
Sets parent assets for this instance of AssetData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssetDataImpl(AssetId id)
id
- - AssetId, the type and id of the assetpublic AssetDataImpl(AssetTypeDef assettype, AssetId id)
assettype
- - AssetTypeDef, the asset type definition of the assetid
- - AssetId, the asset type and id of the assetprotected AssetDataImpl(AssetData copy)
Method Detail |
---|
public void setAttributeData(java.util.List<AttributeData> data)
MutableAssetData
setAttributeData
in interface MutableAssetData
data
- data to setpublic void addAttributeData(AttributeData data)
MutableAssetData
addAttributeData
in interface MutableAssetData
data
- data to addpublic void removeAttributeData(java.lang.String attributeName)
MutableAssetData
removeAttributeData
in interface MutableAssetData
attributeName
- attribute to removepublic void setParents(java.util.List<AssetId> id)
MutableAssetData
setParents
in interface MutableAssetData
id
- ids of parentspublic void addAssociation(java.lang.String associationName, java.util.List<AssetId> assets)
MutableAssetData
addAssociation
in interface MutableAssetData
associationName
- name of the association to addassets
- to be added as associations.public AssetId getAssetId()
AssetData
AssetId
getAssetId
in interface AssetData
public java.util.List<java.lang.String> getAttributeNames()
AssetData
getAttributeNames
in interface AssetData
AssetTypeDef
to get to those).public AssetTypeDef getAssetTypeDef()
AssetData
AssetTypeDef
this instance is based on.
getAssetTypeDef
in interface AssetData
public AttributeData getAttributeData(java.lang.String attributeName)
AssetData
getAttributeData
in interface AssetData
attributeName
- name of the attribute
public java.util.List<AttributeData> getAttributeData()
AssetData
getAttributeData
in interface AssetData
public java.util.List<AssetId> getAssociatedAssets(java.lang.String name)
getAssociatedAssets
in interface AssetData
name
- The association name that try to retrieve
public java.util.List<AssetId> getParents() throws AssetAccessException
getParents
in interface AssetData
AssetAccessException
- captures layer specific failures and wraps other internal exceptions.public java.lang.Iterable<java.lang.String> getAssociationNames()
String
list of existed association names
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |