lumis.portal.propertybag
Class Property

Package class diagram package Property
java.lang.Object
  extended by lumis.portal.propertybag.Property

@StableMinor(version="5.5",
             sinceVersion="5.0")
public class Property
extends Object

Represents a property of a PropertyBag.

A property has a name, a value that may be a string or array of strings, and a flag that indicates whether the property is read-only or not. A read-only property may not be personalized.

Since:
5.0.0

Method Summary
 List<String> getDefaultValues()
          Returns the list of default values stored for this property.
 String getId()
          Returns the identifier of this property.
 String getName()
          Returns the name of this property.
 PropertyBag getPropertyBag()
          Returns the parent property bag of this property.
 List<String> getValues()
          Returns the values for this property, applying all property values evaluation rules.
 boolean isPrivate()
          Returns whether the property is private or not.
 void setDefaultValues(List<String> values)
          Sets the default values for this property.
 void setPrivate(boolean isPrivate)
          Specifies if this property is private or public.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public String getId()
Returns the identifier of this property.

Returns:
identifier of this property.
Since:
5.0.0

getName

public String getName()
Returns the name of this property.

Returns:
the name of this property.
Since:
5.0.0

getDefaultValues

public List<String> getDefaultValues()
Returns the list of default values stored for this property. Does not take inheritance into account. If this property is inheriting its default values, null is returned.

Returns:
the list of default values. Returns an empty list if this property is set to have no default values, or returns null if this property inherits its default values from a parent property bag.
Since:
5.0.0

setDefaultValues

public void setDefaultValues(List<String> values)
Sets the default values for this property.

Parameters:
values - the list of values to set, an empty list to set this property to have explicitly no value, or null to indicate this property will inherit its default values.
Since:
5.0.0

getPropertyBag

public PropertyBag getPropertyBag()
Returns the parent property bag of this property.

Returns:
the parent property bag.
Since:
5.0.0

getValues

public List<String> getValues()
Returns the values for this property, applying all property values evaluation rules.

Returns:
the values, or an empty list if this property has no value.
Since:
5.0.0

setPrivate

public void setPrivate(boolean isPrivate)
Specifies if this property is private or public. By default private properties should not be directly exposed to the end user.

Parameters:
isPrivate - true if the property is private.
Since:
5.0.0

isPrivate

public boolean isPrivate()
Returns whether the property is private or not.

Returns:
true if the property is private.
Since:
5.0.0


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.