org.apache.pluto.om.entity
Interface PortletEntityCtrl

All Superinterfaces:
Controller

public interface PortletEntityCtrl
extends Controller

The PortletEntityCtrl interface represents a single portlet occurance, that can be shown on a single page or on multiple pages.

This interface defines the controller as known from the MVC pattern. Its purpose is to provide write access to the data stored in the model.


Method Summary
 void reset()
          Reset all changes made until the last store call in the persistent store.
 void setId(java.lang.String id)
          binds an identifier to this portlet instance
 void setPortletDefinition(PortletDefinition portletDefinition)
          Sets the portlet definition for this entity.
 void store()
          Stores the object persistently
 

Method Detail

setId

public void setId(java.lang.String id)
binds an identifier to this portlet instance

Parameters:
id - the new identifier

setPortletDefinition

public void setPortletDefinition(PortletDefinition portletDefinition)
Sets the portlet definition for this entity. This value should not be null

Parameters:
portletDefinition - the portlet description

store

public void store()
           throws java.io.IOException
Stores the object persistently

Throws:
java.io.IOException - in case of trouble fulfilling the request

reset

public void reset()
           throws java.io.IOException
Reset all changes made until the last store call in the persistent store.

Throws:
java.io.IOException - in case of trouble fulfilling the request


Copyright © 2003-2005 . All Rights Reserved.