public interface IPropertyBag
Modifier and Type | Method and Description |
---|---|
void |
assignProperties(Object bean)
Assigns properties of the widget using properties values in this property bag.
|
IPropertyBag |
createCopy()
Creates copy (clone) for this property bag.
|
Map<String,Object> |
getProperties()
Returns map of portlet properties
|
Object |
getProperty(String name)
Gets the property of the portlet
|
void |
load(Element storage)
Loads property bag from a DOM element.
|
void |
load(Reader storage)
Loads property bag from a Reader that contains properties data.
|
void |
load(String storage)
Loads property bag from a string that contains properties data.
|
String |
save()
Saves property bag to string representation.
|
void |
save(Writer storage)
Saves property bag to a writer.
|
DifferenceMap |
setProperties(Map<String,? extends Object> propMap)
Sets all properties in the batch from Map
This allows to speed up properties set process
|
void |
setProperty(String name,
Object value)
Sets the property of the portlet
|
void setProperty(String name, Object value) throws PortalException
name
- of the property to be setvalue
- of the propertyPortalException
getProperty(java.lang.String)
DifferenceMap setProperties(Map<String,? extends Object> propMap) throws PortalException
propMap
- Map implementation containing all properties to be setPortalException
Object getProperty(String name) throws PortalException
name
- of the property to be setPortalException
Map<String,Object> getProperties() throws PortalException
PortalException
void load(String storage) throws IOException
storage
- string with all data for the property bagIOException
void load(Reader storage) throws IOException
storage
- reader with all data for the property bagIOException
Reader
void load(Element storage) throws IOException
storage
- DOM element that contains property bag dataIOException
String save() throws IOException
IOException
void save(Writer storage) throws IOException
storage
- writer to save the property bag dataIOException
Writer
void assignProperties(Object bean) throws PortalException
bean
- widget bean to assign propertiesPortalException
IPortletBean
IPropertyBag createCopy()