public final class AssetApiPropertyDao extends Object implements PropertyDao
Adding a new property adds it to the current site, as defined by the pubid session variable.
Constructor and Description |
---|
AssetApiPropertyDao(com.fatwire.assetapi.data.AssetDataManager adm,
com.fatwire.assetapi.site.SiteManager siteManager,
String type,
String flexDefName,
String propNameAttr,
String propDescAttr,
String propValueAttr,
COM.FutureTense.Interfaces.ICS ics)
Property dao backed by a basic or flex asset.
|
Modifier and Type | Method and Description |
---|---|
void |
addToSite(String name,
String... site)
Add the property specified to the sites specified.
|
Property |
getProperty(String name) |
Collection<String> |
getPropertyNames() |
void |
setProperty(Property property)
Set (or re-set) a property value
|
void |
setProperty(String name,
String description,
String value)
Convenience method to set (or re-set) a property value
|
public AssetApiPropertyDao(com.fatwire.assetapi.data.AssetDataManager adm, com.fatwire.assetapi.site.SiteManager siteManager, String type, String flexDefName, String propNameAttr, String propDescAttr, String propValueAttr, COM.FutureTense.Interfaces.ICS ics)
adm
- asset data managersiteManager
- site managertype
- asset type to be usedflexDefName
- flex definition, if using a flex asset; null if using a basic assetpropNameAttr
- attribute name holding property name. Must be a core asset field (i.e. in the main row of the asset) so that lookups can be done properly. Must be a string attribute type.propDescAttr
- attribute name holding the description of the property Must be a string attribute type.propValueAttr
- attribute name holding the property value. Must be a string attribute type.ics
- ics contextpublic Property getProperty(String name)
getProperty
in interface PropertyDao
public Collection<String> getPropertyNames()
getPropertyNames
in interface PropertyDao
public void setProperty(String name, String description, String value)
setProperty
in interface PropertyDao
name
- property namedescription
- property description (optional)value
- value as a stringpublic void setProperty(Property property)
setProperty
in interface PropertyDao
property
- property object with name and valuepublic void addToSite(String name, String... site)
PropertyDao
addToSite
in interface PropertyDao
name
- property namesite
- site names to add the property toCopyright © 2010–2017. All rights reserved.