1 54 55 package org.apache.jetspeed.portlet; 56 57 import java.io.IOException ; 58 59 import java.util.Locale ; 60 61 121 public interface Portlet 122 { 123 127 128 public static class Mode implements java.io.Serializable 129 { 130 133 134 public final static Mode VIEW = new Mode ("View", 0); 135 136 141 142 public final static Mode PERSONALIZE = new Mode ("Personalize", 1); 143 144 149 150 public final static Mode HELP = new Mode ("Help", 2); 151 152 157 158 public final static Mode CONFIGURE = new Mode ("Configure", 3); 159 160 private String identifier; 161 162 private int value; 163 164 private Mode (String identifier, int value) 165 { 166 this.identifier = identifier; 167 this.value = value; 168 } 169 170 public int getId() 171 { 172 return value; 173 } 174 175 public String toString () 176 { 177 return (identifier); 178 } 179 } 180 181 209 210 public void init (PortletConfig config) throws UnavailableException; 211 212 225 226 public void destroy (); 227 228 245 246 public void login (PortletRequest request) throws PortletException; 247 248 267 268 public void logout (PortletRequest request) throws PortletException; 269 270 288 289 public void service (PortletRequest request, 290 PortletResponse response) throws PortletException, 291 IOException ; 292 293 } 294 | Popular Tags |