|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.portal.portlets.ContainerTestPortlet
Aggregate Portlet aggregates the content of other portlets. This portlet is a test for an alternate aggregation algorithm UNDER CONSTRUCTION
Field Summary |
Fields inherited from interface org.apache.jetspeed.portal.Portlet |
PORTLET_MAXIMIZED, PORTLET_MINIMIZED, PORTLET_NORMAL |
Constructor Summary | |
ContainerTestPortlet()
|
Method Summary | |
boolean |
getAllowEdit(org.apache.turbine.util.RunData rundata)
Return true if this portlet is allowed to be edited in the rundata's context . |
boolean |
getAllowMaximize(org.apache.turbine.util.RunData rundata)
Return true if this portlets is allowed to be maximized. |
boolean |
getAllowView(org.apache.turbine.util.RunData rundata)
Is the portled viewable. |
java.lang.String |
getAttribute(java.lang.String attrName,
java.lang.String attrDefValue,
org.apache.turbine.util.RunData rundata)
Retrieve a portlet attribute from persistent storage |
org.apache.ecs.ConcreteElement |
getContent(org.apache.turbine.util.RunData rundata)
Returns an HTML representation of this portlet. |
long |
getCreationTime()
Get the creation time for this Portlet |
java.lang.String |
getDescription()
Returns a description of this portlet. |
java.lang.String |
getDescription(java.lang.String instanceDescription)
Provide a Description within PML if the user has specified one. |
java.lang.String |
getID()
Retrieve a unique portlet id |
java.lang.String |
getImage()
Getter for property image. |
java.lang.String |
getImage(java.lang.String instanceImage)
Getter for property image. |
PortletInstance |
getInstance(org.apache.turbine.util.RunData rundata)
Gets the portlet instance associated with this portlet. |
java.lang.String |
getName()
Returns a name for this portlet. |
PortletConfig |
getPortletConfig()
Get the config of this servlet. |
java.lang.String |
getTitle()
Allows a Portlet to define its title. |
java.lang.String |
getTitle(java.lang.String instanceTitle)
t a title for this instance of the portlet. |
void |
init()
All initialization should be performed here. |
boolean |
isShowTitleBar(org.apache.turbine.util.RunData rundata)
Returns TRUE if the title bar in should be displayed. |
boolean |
providesCustomization()
|
void |
setAttribute(java.lang.String attrName,
java.lang.String attrValue,
org.apache.turbine.util.RunData rundata)
Stores a portlet attribute in persistent storage |
void |
setCreationTime(long creationTime)
Set the creation time for this Portlet |
void |
setDescription(java.lang.String description)
Set the description for this Portlet |
void |
setID(java.lang.String id)
|
void |
setImage(java.lang.String image)
Setter for property image. |
void |
setName(java.lang.String name)
Sets the name on this Portlet. |
void |
setPortletConfig(PortletConfig pc)
Set's the configuration of this servlet. |
void |
setTitle(java.lang.String title)
Set the title for this Portlet |
void |
setTitle(java.lang.String title,
org.apache.turbine.util.RunData runData)
|
boolean |
supportsType(MimeType mimeType)
Returns true portlet is able to output content for given mimetype |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContainerTestPortlet()
Method Detail |
public java.lang.String getName()
getName
in interface Portlet
public void setName(java.lang.String name)
setName
in interface Portlet
getName()
public java.lang.String getTitle()
Allows a Portlet to define its title. This can be used by a PortletControl for rendering its content.
In order to define a default title you should not override this but should call setTitle() within your init() method
This should return null if not specified.
getTitle
in interface Portlet
public java.lang.String getTitle(java.lang.String instanceTitle)
getTitle
in interface Portlet
instanceTitle
- Title from PSMLpublic void setTitle(java.lang.String title)
setTitle
in interface Portlet
public java.lang.String getDescription()
Returns a description of this portlet. This should describe what the capabilities of the portlet and how it can help the user.
In order to define a default title you should not override (in the AbstractPortlet implementation) this but should call setDescription() within your init() method
This should return null if not specified.
getDescription
in interface Portlet
public java.lang.String getDescription(java.lang.String instanceDescription)
getDescription
in interface Portlet
instanceDescription
- Description from PSML
public void setDescription(java.lang.String description)
setDescription
in interface Portlet
public java.lang.String getImage()
public java.lang.String getImage(java.lang.String instanceImage)
getImage
in interface Portlet
public void setImage(java.lang.String image)
Portlet
setImage
in interface Portlet
public org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData rundata)
getContent
in interface Portlet
public void init() throws PortletException
init
in interface Portlet
PortletException
public void setPortletConfig(PortletConfig pc)
setPortletConfig
in interface Portlet
public PortletConfig getPortletConfig()
getPortletConfig
in interface Portlet
public boolean getAllowEdit(org.apache.turbine.util.RunData rundata)
Return true if this portlet is allowed to be edited in the rundata's context .
Note: PortletControl implementations should pay attention to this so that they don't allow this option if it returns false.
getAllowEdit
in interface Portlet
public boolean getAllowMaximize(org.apache.turbine.util.RunData rundata)
Return true if this portlets is allowed to be maximized.
Note: PortletControl implementations should pay attention to this so that they don't allow this option if it returns false.
getAllowMaximize
in interface Portlet
public long getCreationTime()
getCreationTime
in interface Portlet
public void setCreationTime(long creationTime)
setCreationTime
in interface Portlet
public boolean supportsType(MimeType mimeType)
supportsType
in interface Portlet
public java.lang.String getAttribute(java.lang.String attrName, java.lang.String attrDefValue, org.apache.turbine.util.RunData rundata)
getAttribute
in interface Portlet
attrName
- The attribute to retrieveattrDefValue
- The value if the attr doesn't existsrundata
- The RunData object for the current request
public void setAttribute(java.lang.String attrName, java.lang.String attrValue, org.apache.turbine.util.RunData rundata)
setAttribute
in interface Portlet
attrName
- The attribute to retrieverundata
- The RunData object for the current requestpublic PortletInstance getInstance(org.apache.turbine.util.RunData rundata)
getInstance
in interface Portlet
public java.lang.String getID()
getID
in interface Portlet
public void setID(java.lang.String id)
setID
in interface Portlet
public boolean providesCustomization()
providesCustomization
in interface Portlet
public boolean isShowTitleBar(org.apache.turbine.util.RunData rundata)
isShowTitleBar
in interface Portlet
rundata
- The RunData object for the current requestpublic boolean getAllowView(org.apache.turbine.util.RunData rundata)
getAllowView
in interface Portlet
rundata
- The RunData object for the current request
true
Viewing is allow
false
Viewing is NOT alowed
Override this method to control your own View behaviorpublic void setTitle(java.lang.String title, org.apache.turbine.util.RunData runData)
setTitle
in interface Portlet
Portlet.setTitle(java.lang.String, org.apache.turbine.util.RunData)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |