|
|||||||||
| 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)Create an AssetData by copying an existing one |
|
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. |
AttributeData |
getAttributeData(java.lang.String attributeName, boolean isMetaDataAttribute)Returns a 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> |
getImmediateParents()Returns the Asset Identifiers of immediate parents, if any. |
java.util.List<AssetId> |
getImmediateParents(java.lang.String parentDefName)Returns the Asset Identifiers of immediate parents, if any. |
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 |
setAssetId(AssetId assetId)Sets unique identification of the asset instance AssetId |
void |
setAssociation(java.lang.String associationName, java.util.List<AssetId> assets)Sets an associations by a given name. |
void |
setAssociationsLoaded() |
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 asset
public AssetDataImpl(AssetTypeDef assettype,
AssetId id)
assettype - - AssetTypeDef, the asset type definition of the assetid - - AssetId, the asset type and id of the asset
protected AssetDataImpl(AssetData copy)
throws AssetAccessException
copy - the asset data where to copy the data fromAssetAccessException - is thrown when error happens read the data| Method Detail |
|---|
public void setAttributeData(java.util.List<AttributeData> data)
MutableAssetDatasetAttributeData in interface MutableAssetDatadata - data to setpublic void addAttributeData(AttributeData data)
MutableAssetDataaddAttributeData in interface MutableAssetDatadata - data to addpublic void removeAttributeData(java.lang.String attributeName)
MutableAssetDataremoveAttributeData in interface MutableAssetDataattributeName - attribute to remove
public void setParents(java.util.List<AssetId> id)
throws AssetAccessException
MutableAssetDatasetParents in interface MutableAssetDataid - ids of parentsAssetAccessException - throw this Exception if error met
public void addAssociation(java.lang.String associationName,
java.util.List<AssetId> assets)
MutableAssetDataaddAssociation in interface MutableAssetDataassociationName - name of the association to addassets - to be added as associations.
public void setAssociation(java.lang.String associationName,
java.util.List<AssetId> assets)
MutableAssetDatasetAssociation in interface MutableAssetDataassociationName - name of the association to addassets - to be added as associations.public AssetId getAssetId()
AssetDataAssetIdgetAssetId in interface AssetDatapublic void setAssetId(AssetId assetId)
AssetDataAssetIdsetAssetId in interface AssetDataassetId - associated with the instancepublic java.util.List<java.lang.String> getAttributeNames()
AssetDatagetAttributeNames in interface AssetDataAssetTypeDef to get to those).public AssetTypeDef getAssetTypeDef()
AssetDataAssetTypeDef this instance is based on.getAssetTypeDef in interface AssetDatapublic AttributeData getAttributeData(java.lang.String attributeName)
AssetDatagetAttributeData in interface AssetDataattributeName - name of the attributenull if no AttributeData of specified name
public AttributeData getAttributeData(java.lang.String attributeName,
boolean isMetaDataAttribute)
AssetDatagetAttributeData in interface AssetDataattributeName - name of the attributeisMetaDataAttribute - whether attribute is user defined, or it is system defined (for flex asset only)null if no AttributeData of specified name and specified user defined or not property.public java.util.List<AttributeData> getAttributeData()
AssetDatagetAttributeData in interface AssetDatapublic java.util.List<AssetId> getAssociatedAssets(java.lang.String name)
getAssociatedAssets in interface AssetDataname - The association name that try to retrieve
public java.util.List<AssetId> getImmediateParents()
throws AssetAccessException
AssetDatagetImmediateParents in interface AssetDataAssetAccessException - captures layer specific failures and wraps other internal excetpions
public java.util.List<AssetId> getParents()
throws AssetAccessException
getParents in interface AssetDataAssetAccessException - captures layer specific failures and wraps other internal exceptions.
public java.util.List<AssetId> getImmediateParents(java.lang.String parentDefName)
throws AssetAccessException
AssetDatagetImmediateParents in interface AssetDataparentDefName - the name of the parent definitionAssetAccessException - captures layer specific failures and wraps other internal excetpionspublic java.lang.Iterable<java.lang.String> getAssociationNames()
String list of existed association namespublic void setAssociationsLoaded()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.