1 16 17 package org.apache.jetspeed.portal; 18 19 import org.apache.jetspeed.util.MimeType; 20 import org.apache.turbine.util.RunData; 21 import org.apache.ecs.ConcreteElement; 22 23 import java.io.Serializable ; 24 32 public interface Portlet extends Serializable 33 { 34 35 public int PORTLET_NORMAL = 0; 36 public int PORTLET_MINIMIZED = 1; 37 public int PORTLET_MAXIMIZED = 2; 38 39 43 public String getName(); 44 45 50 public void setName(String name); 51 52 67 public String getTitle(); 68 69 81 public String getTitle( String instanceTitle); 82 83 86 public void setTitle( String title ); 87 88 104 public String getDescription(); 105 106 118 public String getDescription( String instanceDescription); 119 120 123 public void setDescription( String description ); 124 125 129 public String getImage(String instanceImage); 130 131 134 public void setImage(String instanceImage); 135 136 141 public ConcreteElement getContent(RunData rundata); 142 143 144 151 public void init( ) throws PortletException; 152 153 154 157 public void setPortletConfig(PortletConfig pc); 158 159 160 163 public PortletConfig getPortletConfig(); 164 165 171 public boolean getAllowEdit( RunData rundata ); 172 173 179 public boolean getAllowView( RunData rundata ); 180 181 187 public boolean getAllowMaximize( RunData rundata ); 188 189 192 public long getCreationTime(); 193 194 200 public boolean isShowTitleBar(RunData rundata); 201 202 205 public void setCreationTime( long creationTime ); 206 207 210 public boolean supportsType( MimeType mimeType ); 211 212 220 public String getAttribute( String attrName, String attrDefValue, RunData rundata ); 221 222 223 230 public void setAttribute( String attrName, String attrValue, RunData rundata ); 231 232 233 238 public PortletInstance getInstance(RunData rundata); 239 240 243 public String getID(); 244 245 public void setID(String id); 246 247 250 public boolean providesCustomization(); 251 252 } 253 254 | Popular Tags |