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 PropertyDaopublic Collection<String> getPropertyNames()
getPropertyNames in interface PropertyDaopublic void setProperty(String name, String description, String value)
setProperty in interface PropertyDaoname - property namedescription - property description (optional)value - value as a stringpublic void setProperty(Property property)
setProperty in interface PropertyDaoproperty - property object with name and valuepublic void addToSite(String name, String... site)
PropertyDaoaddToSite in interface PropertyDaoname - property namesite - site names to add the property toCopyright © 2016–2017. All rights reserved.