1 16 17 package org.apache.jetspeed.util.template; 18 19 import org.apache.jetspeed.portal.Portlet; 21 import org.apache.jetspeed.om.profile.Entry; 22 import org.apache.jetspeed.om.profile.Portlets; 23 24 import org.apache.turbine.util.DynamicURI; 26 import org.apache.turbine.util.RunData; 27 28 40 public interface JetspeedLink { 41 42 public static int CURRENT = 101; 43 public static int DEFAULT = 102; 44 public static int GROUP = 201; 45 public static int ROLE = 202; 46 public static int USER = 203; 47 public static int PANE_ID = 301; 48 public static int PANE_NAME = 302; 49 public static int PORTLET_ID = 303; 50 public static int PORTLET_NAME = 304; 51 public static int PORTLET_ID_QUERY = 305; 52 53 54 61 public DynamicURI addPathInfo(String name, Object value); 62 63 70 public DynamicURI addQueryData(String name, Object value); 71 72 77 public String getActionKey(); 78 79 85 public DynamicURI getHomePage(); 86 87 93 public void init(RunData rundata); 94 95 101 public DynamicURI getTemplate(); 102 103 108 public boolean getAnonymous(); 109 110 115 public String getCountry(); 116 117 122 public String getGroupName(); 123 124 129 public String getLanguage(); 130 131 136 public String getMediaType(); 137 138 143 public String getPageName(); 144 145 150 public String getRoleName(); 151 152 157 public String getUserName(); 158 159 165 public DynamicURI getAction(String action); 166 167 175 public DynamicURI getAction(String action, Entry entry); 176 177 185 public DynamicURI getAction(String action, Portlet portlet); 186 187 195 public DynamicURI getAction(String action, Portlets portlet); 196 197 205 public DynamicURI getAction(String action, String peid); 206 207 213 public DynamicURI getGroup(String group); 214 215 222 public DynamicURI getGroup(String group, String page); 223 224 230 public DynamicURI getPage(); 231 232 239 public DynamicURI getPage(String page); 240 241 249 public DynamicURI getPage(String page, String paneName); 250 251 258 public DynamicURI getPortletById(String peid); 259 260 271 public DynamicURI getPortletByName(String portletName); 272 273 279 public DynamicURI getRole(String role); 280 281 288 public DynamicURI getRole(String role, String page); 289 290 296 public DynamicURI getTemplate(String template); 297 298 304 public DynamicURI getUser(String user); 305 306 313 public DynamicURI getUser(String user, String page); 314 315 322 public DynamicURI setAction(String action); 323 324 334 public DynamicURI setAction(String action, Entry entry); 335 336 346 public DynamicURI setAction(String action, Portlet portlet); 347 348 358 public DynamicURI setAction(String action, Portlets portlet); 359 360 368 public DynamicURI setGroup(String group); 369 370 379 public DynamicURI setGroup(String group, String page); 380 381 389 public DynamicURI setPage(); 390 391 400 public DynamicURI setPage(String page); 401 402 412 public DynamicURI setPage(String page, String paneName); 413 414 public DynamicURI setMediaType(String mediaType); 415 416 424 public DynamicURI setPortletById(String peid); 425 426 434 public DynamicURI setPortalElement(String peid); 435 436 447 public DynamicURI setPortletByName(String portletName); 448 449 457 public DynamicURI setRole(String role); 458 459 468 public DynamicURI setRole(String role, String page); 469 470 478 public DynamicURI setTemplate(String template); 479 480 488 public DynamicURI setUser(String user); 489 490 499 public DynamicURI setUser(String user, String page); 500 501 506 public String toString(); 507 508 515 public DynamicURI setPaneById(String paneId); 516 517 523 public DynamicURI getPaneById(String paneId); 524 525 531 public DynamicURI getPaneByName(String paneName); 532 533 536 537 548 public void setPortlet(Portlet portlet); 549 550 581 public DynamicURI getLink(int rootType, String rootValue, String pageName, int elementType, String elementValue, String actionName, String templateName, String mediaType, String language, String country); 582 585 public DynamicURI getLink(int rootType, String rootValue, String pageName, int elementType, String elementValue, String actionName, String templateName, String mediaType, String language); 586 public DynamicURI getLink(int rootType, String rootValue, String pageName, int elementType, String elementValue, String actionName, String templateName, String mediaType); 587 public DynamicURI getLink(int rootType, String rootValue, String pageName, int elementType, String elementValue, String actionName, String templateName); 588 public DynamicURI getLink(int rootType, String rootValue, String pageName, int elementType, String elementValue, String actionName); 589 public DynamicURI getLink(int rootType, String rootValue, String pageName, int elementType, String elementValue); 590 591 } 592 | Popular Tags |