|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Property
For use by portlets written to the IBM portlet API.
Encapsulates property information. A property represents a data type which can
be produced or consumed by a portlet. The type information is used by the Property
Broker to determine matches between properties produced by a source portlet and
properties consumed by a target portlet.
If a portlet declares actions in a WSDL file, the Action
objects
and their associated
Parameter
objects and Property
objects
are created and registered automatically by the runtime.
Each Parameter
object is associated with a Property
object.
If actions are not declared in a WSDL file, PropertyFactory
may be used to create
instances of Property
. After instantiation, required fields must be set using
setters. If a portlet does not use Actions
,
it may register Property
objects exclusively. Such
properties are not associated with actions, but are "standalone". In this event, the
portlet must also implement the PropertyListener
interface,
and changes to property values
will be delivered through the setProperties
method of that interface.
PropertyFactory
,
Action
,
Parameter
,
PropertyListener
Field Summary | |
---|---|
static int |
IN
Deprecated. IN indicates that the portlet produces the property. |
static int |
OUT
Deprecated. OUT indicates that the portlet consumes the property. |
Method Summary | |
---|---|
java.lang.String |
getClassname()
Deprecated. Returns the fully qualified java class name for the property object. |
java.lang.String |
getDefaultValue()
Deprecated. Returns a default value for the property. |
java.lang.String |
getDescription()
Deprecated. |
java.lang.String |
getDescription(java.util.Locale locale)
Deprecated. Returns a text description for this property for the provided locale. |
int |
getDirection()
Deprecated. Returns whether the property is produced or consumed. |
java.lang.String |
getName()
Deprecated. Returns the name of the Property . |
java.lang.String |
getNamespace()
Deprecated. Returns a string containing the type namespace. |
java.lang.Object |
getOwnerId()
Deprecated. Returns an Object whose hashcode and equals method may be used
to identify the portlet that registered this property. |
java.lang.String |
getTitle()
Deprecated. |
java.lang.String |
getTitle(java.util.Locale locale)
Deprecated. Returns a short description for this property for the provided locale. |
java.lang.String |
getType()
Deprecated. Returns a string containing the property type. |
boolean |
isImplementedBy(org.apache.jetspeed.portlet.PortletSettings caller)
Deprecated. Returns true if the property was registered by the calling portlet. |
void |
setClassname(java.lang.String classname)
Deprecated. Sets the name of the java class encapsulating the property value. |
void |
setDefaultValue(java.lang.String defaultValue)
Deprecated. Sets a default value for this property. |
void |
setDescription(java.lang.String descriptionKey)
Deprecated. |
void |
setDescriptionKey(java.lang.String descriptionKey)
Deprecated. Sets the key used for retrieving the localized description. |
void |
setDirection(int direction)
Deprecated. Sets the direction of this property, i.e, whether it is produced or consumed. |
void |
setLocalizationInfo(java.lang.String nlsFileName,
org.apache.jetspeed.portlet.PortletContext context,
java.util.Locale[] locales)
Deprecated. This data is used to retrieve internationalized versions of the title and description. |
void |
setName(java.lang.String name)
Deprecated. Sets the name of the property. |
void |
setNamespace(java.lang.String namespace)
Deprecated. Sets the namespace of the property. |
void |
setTitle(java.lang.String titleKey)
Deprecated. |
void |
setTitleKey(java.lang.String titleKey)
Deprecated. Sets the key used for retrieving the localized title. |
void |
setType(java.lang.String type)
Deprecated. Sets the type of the property. |
Field Detail |
---|
static final int IN
static final int OUT
Method Detail |
---|
java.lang.String getName()
Property
.
Property names must be unique within a portlet instance.
The name is a required field (i.e.
must not be null).
String
containing the name of the property.java.lang.String getType()
String
containing the property type.getNamespace()
,
getClassname()
java.lang.String getNamespace()
String
containing the type namespace.getType()
java.lang.String getClassname()
int getDirection()
int
indicating the direction (IN, OUT
constants defined in this class).IN
,
OUT
java.lang.String getTitle()
getTitle(Locale)
java.lang.String getTitle(java.util.Locale locale)
locale
- the current locale
java.lang.String getDescription()
getDescription(Locale)
java.lang.String getDescription(java.util.Locale locale)
locale
- the current locale
java.lang.String getDefaultValue()
java.lang.Object getOwnerId()
Object
whose hashcode and equals method may be used
to identify the portlet that registered this property.
Object
identifying the portlet which registered this propertyboolean isImplementedBy(org.apache.jetspeed.portlet.PortletSettings caller)
caller
- the PortletSettings
object
representing the calling portlet.
void setName(java.lang.String name)
name
- the namegetName()
void setType(java.lang.String type)
type
- the typegetType()
void setNamespace(java.lang.String namespace)
namespace
- the namespacegetNamespace()
void setClassname(java.lang.String classname)
classname
- the name of the java class for the property valuegetClassname()
void setDirection(int direction) throws InvalidPropertyException
direction
- the value of the direction attribute.
The value must be one of IN
or OUT
constants defined in this class
InvalidPropertyException
- is thrown if the direction specifies an invalid value.IN
, OUT
,
getDirection()
void setTitle(java.lang.String titleKey)
setTitleKey
instead.
titleKey
- the key for the titlesetTitleKey(String)
void setTitleKey(java.lang.String titleKey)
setLocalizationInfo
.
titleKey
- the key for the titlesetLocalizationInfo(java.lang.String, org.apache.jetspeed.portlet.PortletContext, java.util.Locale[])
,
getTitle(Locale)
void setDescription(java.lang.String descriptionKey)
setDescriptionKey
instead.
descriptionKey
- the key for the description#setDescriptionKey()
,
getDescription(Locale)
void setDescriptionKey(java.lang.String descriptionKey)
setLocalizationInfo
.
descriptionKey
- the key for the descriptionsetLocalizationInfo(java.lang.String, org.apache.jetspeed.portlet.PortletContext, java.util.Locale[])
void setLocalizationInfo(java.lang.String nlsFileName, org.apache.jetspeed.portlet.PortletContext context, java.util.Locale[] locales)
Property
is set
as a result of registering an Action
,
the localization info for the Action
will be used. This method only needs to be invoked if the Property
is registered standalone, i.e, not associated with an Action
.
nlsFileName
- the base name of the NLS resource file(s)
containing the translated stringscontext
- the PortletContext
for the portlet this property is associated withlocales
- the locales supported by this portletgetTitle(Locale)
,
getDescription(Locale)
void setDefaultValue(java.lang.String defaultValue)
java.lang.String
.
defaultValue
- the default value of the propertygetDefaultValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |